Inheritance diagram for CollectionField:

Definition at line 8 of file collection-field.inc.php.
Public Member Functions | |
| __construct ($name, Form &$parentForm, array $attribs=array()) | |
| Constructor. | |
| __set ($name, $value) | |
| Magic setter. | |
| & | add ($type, $name, array $options=array()) |
| Add field to collection. | |
| hasField ($name) | |
| Tells us if we have a field or not. | |
| setFieldsData ($data) | |
| Sets the data on our fields in our collection. | |
| drawInput () | |
| Draw the fields. | |
| setDataFromRequest () | |
| Set the field data from the $_REQUEST array. | |
| validate () | |
| Validate all fields in the collection. | |
| hasError () | |
| Check to see if any fields in the collection have an error. | |
| getSqlImpl () | |
| Get SQL for all fields in the collection. | |
| getJs () | |
| Get a string of JavaScript needed for this field. | |
| getCss () | |
| Get the CSS for all subfields. | |
| allFieldsHaveData () | |
| Check to see if all fields in the collection have a data value. | |
| noFieldsHaveData () | |
| Check to see if none of the fields in the collection have a non-null value. | |
| getData () | |
| Get the data value. | |
Protected Attributes | |
| $fields | |
| Array of Field objects that make up the collection. | |
| $autoAdvance | |
Boolean flag, if true then the user will be automatically advanced through the fields. | |
| $arrangement | |
Mode to use for arranging the sub fields, either horizontal (default) or vertical. | |
Static Protected Attributes | |
| $jsDrawn | |
| Boolean flag if the drawJs method had been called yet. | |
Private Member Functions | |
| getNextFieldId ($num) | |
| Get the ID of the next field. | |
| getPrevFieldId ($num) | |
| Get the ID of the previous field for auto advance purposes. | |
Static Private Attributes | |
| $skipFieldTypes = array('HiddenField', 'LabelField') | |
| Array of field types to skip over when auto advancing. | |
|
||||||||||||||||
|
Constructor.
Reimplemented from AbstractField. Reimplemented in CityStateZipField, ConditionalField, DateTimeField, IpAddressField, NameField, PasswordChangeField, PhoneNumberField, and SSNField. Definition at line 22 of file collection-field.inc.php. |
|
||||||||||||
|
Magic setter.
Reimplemented from AbstractField. Reimplemented in ConditionalField, and PasswordChangeField. Definition at line 36 of file collection-field.inc.php. References add(). |
|
||||||||||||||||
|
Add field to collection.
Definition at line 71 of file collection-field.inc.php. References Form::hasField(). Referenced by PhoneNumberField::__construct(), and __set(). |
|
|
Check to see if all fields in the collection have a data value.
Definition at line 290 of file collection-field.inc.php. Referenced by SSNField::validate(), and IpAddressField::validate(). |
|
|
Draw the fields.
Implements Field. Reimplemented in ConditionalField, and PasswordChangeField. Definition at line 114 of file collection-field.inc.php. References getNextFieldId(). |
|
|
Get the CSS for all subfields.
Reimplemented from AbstractField. Reimplemented in PasswordChangeField. Definition at line 275 of file collection-field.inc.php. References Form::getCss(). |
|
|
Get the data value.
Reimplemented from AbstractField. Reimplemented in DateTimeField, IpAddressField, PasswordChangeField, PhoneNumberField, and SSNField. Definition at line 319 of file collection-field.inc.php. References Form::getData(). |
|
|
Get a string of JavaScript needed for this field.
Reimplemented from AbstractField. Reimplemented in ConditionalField, and PasswordChangeField. Definition at line 217 of file collection-field.inc.php. |
|
|
Get the ID of the next field.
Definition at line 186 of file collection-field.inc.php. Referenced by drawInput(). |
|
|
Get the ID of the previous field for auto advance purposes.
Definition at line 202 of file collection-field.inc.php. |
|
|
Get SQL for all fields in the collection.
Reimplemented from AbstractField. Reimplemented in CityStateZipField, DateTimeField, IpAddressField, NameField, PasswordChangeField, PhoneNumberField, and SSNField. Definition at line 171 of file collection-field.inc.php. |
|
|
Check to see if any fields in the collection have an error.
Reimplemented from AbstractField. Definition at line 158 of file collection-field.inc.php. |
|
|
Tells us if we have a field or not.
Definition at line 88 of file collection-field.inc.php. |
|
|
Check to see if none of the fields in the collection have a non-null value.
Definition at line 307 of file collection-field.inc.php. Referenced by SSNField::validate(), and IpAddressField::validate(). |
|
|
Set the field data from the $_REQUEST array.
Reimplemented from AbstractField. Definition at line 139 of file collection-field.inc.php. |
|
|
Sets the data on our fields in our collection.
Definition at line 102 of file collection-field.inc.php. References Form::setData(). |
|
|
Validate all fields in the collection.
Reimplemented from AbstractField. Reimplemented in IpAddressField, PasswordChangeField, and SSNField. Definition at line 148 of file collection-field.inc.php. References Form::validate(). |
|
|
Mode to use for arranging the sub fields, either
Definition at line 14 of file collection-field.inc.php. |
|
|
Boolean flag, if
Definition at line 11 of file collection-field.inc.php. |
|
|
Array of Field objects that make up the collection.
Definition at line 10 of file collection-field.inc.php. |
|
|
Boolean flag if the drawJs method had been called yet.
Reimplemented in ConditionalField. Definition at line 13 of file collection-field.inc.php. |
|
|
Array of field types to skip over when auto advancing.
Definition at line 12 of file collection-field.inc.php. |
1.3.9.1