setName()
setName(string $name) : \Pop\Form\Element\ElementInterface
Set the name of the form element
Parameters
string | $name |
Form element interface
setName(string $name) : \Pop\Form\Element\ElementInterface
Set the name of the form element
string | $name |
setValue(mixed $value) : \Pop\Form\Element\ElementInterface
Set the value of the form element
mixed | $value |
resetValue() : \Pop\Form\Element\ElementInterface
Reset the value of the form element
setLabel(mixed $label) : \Pop\Form\Element\ElementInterface
Set the label of the form element
mixed | $label |
setLabelAttributes(array $attribs) : \Pop\Form\Element\ElementInterface
Set the attributes of the label of the form element
array | $attribs |
setErrorPre(boolean $pre) : \Pop\Form\Element\ElementInterface
Set error to display before the element
boolean | $pre |
setValidators(array $validators = array()) : \Pop\Form\Element\ElementInterface
Set validators
array | $validators |
clearErrors() : \Pop\Form\Element\ElementInterface
Clear errors
addValidator(mixed $validator) : \Pop\Form\Element\ElementInterface
Add a validator the form element
mixed | $validator |