$fields
$fields : array
Fields array
Form fields class
__construct(mixed $fields = null, array $attribs = null, array $values = null, mixed $omit = null) : \Pop\Form\Fields
Constructor
Instantiate the fields object
mixed | $fields | |
array | $attribs | |
array | $values | |
mixed | $omit |
factory(string $name, array $field, array $values = null) : \Pop\Form\Element\AbstractElement
Static factory method to create a field element object from a field config array
string | $name | |
array | $field | |
array | $values |
addFieldsFromTable(array $tableInfo, array $attribs = null, array $values = null, mixed $omit = null) : \Pop\Form\Fields
Add form fields from a related database table. The $tableInfo parameter should be the returned array result from calling the static Pop\Db\Record method, Record::getTableInfo();
array | $tableInfo | |
array | $attribs | |
array | $values | |
mixed | $omit |
addFields(array $fields) : \Pop\Form\Fields
Add form fields
array | $fields |
setFieldAttribute(string $field, string $attrib, string $value) : \Pop\Form\Fields
Set form field config attribute
string | $field | |
string | $attrib | |
string | $value |
setFieldAttributes(string $field, array $attribs) : \Pop\Form\Fields
Set form field config attributes
string | $field | |
array | $attribs |