A group of multiple fields, used as an array ( name[] ).
Methods
Generates a new set of the same fields.
__construct(\WebLab_Form_Field $type, int $size)
Parameters
$size
intThe initial size of the set.
Retrieve the value of an attribute.
__get(string $attribute) : string
Inherited
| inherited_from |
\WebLab_Form_Field::__get() |
Parameters
$attribute
string
Returns
string
Check if an attribute has been set.
__isset(string $attribute) : boolean
Inherited
| inherited_from |
\WebLab_Form_Field::__isset() |
Parameters
$attribute
string
Returns
boolean
Set the value of an attribute.
__set(string $attribute, string $value) : \WebLab_Form_Field
Inherited
| inherited_from |
\WebLab_Form_Field::__set() |
Parameters
$attribute
string
$value
string
Returns
(non-PHPdoc)
__toString() : string
Add an additional field with specified key.
add(string $key)
(non-PHPdoc)
addFilter(\WebLab_Filter $filter, $error_message)
Parameters
$error_message
Shorthand for setAttribute and getAttribute
attr(string $name, string $value) : string
Inherited
| inherited_from |
\WebLab_Form_Field::attr() |
Parameters
$name
string
$value
string
Returns
string
Retrieve the value of an attribute.
getAttribute(string $attribute) : string
Inherited
| inherited_from |
\WebLab_Form_Field::getAttribute() |
Parameters
$attribute
string
Returns
string
Return the label of this field.
getLabel() : string
Inherited
| inherited_from |
\WebLab_Form_Field::getLabel() |
Returns
string
(non-PHPdoc)
getValue() : string
(non-PHPdoc)
isValid() : boolean | array
Returns the keys of the fields
keys()
Remove a field by it's key.
remove(string $key)
Set the value of an attribute.
setAttribute(string $attribute, string $value) : \WebLab_Form_Field
Inherited
| inherited_from |
\WebLab_Form_Field::setAttribute() |
Parameters
$attribute
string
$value
string
Returns
Set the label of this field.
setLabel(string $label)
Inherited
| inherited_from |
\WebLab_Form_Field::setLabel() |
Parameters
$label
string
Returns the size of the set.
size()
Properties
$_attributes : array
Inherited
| inherited_from |
\WebLab_Form_Field::$$_attributes |
$_filters : array
Inherited
| inherited_from |
\WebLab_Form_Field::$$_filters |
$_label : string
Inherited
| inherited_from |
\WebLab_Form_Field::$$_label |