A group of multiple fields, used as an array ( name[] ).

author Jorgen Evens
package WebLab
subpackage Form

 Methods

Generates a new set of the same fields.

__construct(\WebLab_Form_Field $type, int $size) 

Parameters

$type

\WebLab_Form_Field

The reference field.

$size

int

The 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) 

Parameters

$key

string

(non-PHPdoc)

addFilter(\WebLab_Filter $filter, $error_message) 
see \WebLab_Form_Field::addFilter()

Parameters

$filter

\WebLab_Filter

$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 form to which this field belongs.

getForm() : \WebLab_Form
Inherited
inherited_from \WebLab_Form_Field::getForm()

Returns

Return the label of this field.

getLabel() : string
Inherited
inherited_from \WebLab_Form_Field::getLabel()

Returns

string

(non-PHPdoc)

getValue() : string
see \WebLab_Form_Field::getValue()

Returns

string

(non-PHPdoc)

isValid() : boolean | array
see \WebLab_Form_Field::isValid()

Returns

booleanarray

Returns the keys of the fields

keys() 

Remove a field by it's key.

remove(string $key) 

Parameters

$key

string

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 to which this field belongs.

setForm(\WebLab_Form $form) : \WebLab_Form_Field

Parameters

$form

\WebLab_Form

Returns

Set the label of this field.

setLabel(string $label) 
Inherited
inherited_from \WebLab_Form_Field::setLabel()

Parameters

$label

string

(non-PHPdoc)

setValue($values) : \WebLab_Form_Field
see \WebLab_Form_Field::setValue()

Parameters

$values

Returns

Returns the size of the set.

size() 

(non-PHPdoc)

update() 

 Properties

 

$fields : array
 

$_attributes : array
Inherited
inherited_from \WebLab_Form_Field::$$_attributes
 

$_filters : array
Inherited
inherited_from \WebLab_Form_Field::$$_filters
 

$_form : \WebLab_Form
Inherited
inherited_from \WebLab_Form_Field::$$_form
 

$_label : string
Inherited
inherited_from \WebLab_Form_Field::$$_label
 

$_type : \WebLab_Form_Field