Méthode |
Description |
|
__construct ( mixed $fields = null, array $attribs = null, array $values = null, mixed $omit = null ) : Fields |
Constructor |
|
__get ( string $name ) : mixed |
Get method to return the value of fields[$name]. |
|
__isset ( string $name ) : boolean |
Return the isset value of fields[$name]. |
|
__set ( string $name, mixed $value ) : void |
Set method to set the property to the value of fields[$name]. |
|
__unset ( string $name ) : void |
Unset fields[$name]. |
|
addFields ( array $fields ) : Fields |
Add form fields |
|
addFieldsFromTable ( array $tableInfo, array $attribs = null, array $values = null, mixed $omit = null ) : 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(); |
|
factory ( mixed $fields = null, array $attribs = null, array $values = null, mixed $omit = null ) : Fields |
Static method to instantiate the fields object and return itself
to facilitate chaining methods together. |
|
getFields ( ) : array |
Get the form fields |
|
setField ( string $field, mixed $attrib, mixed $value = null ) : Fields |
Set form field |
|