__construct()
__construct(string $name, integer $type, string $label = "", array $validationRules = array(), array $errorHandlers = array(), array $meta = array())
Create new element
Parameters
string | $name | Field name |
integer | $type | Field type |
string | $label | Field label |
array | $validationRules | Validation rules |
array | $errorHandlers | Error rules |
array | $meta | The meta array |