setName()
setName(string $name) : \Pop\Form\Element\AbstractElement
Set the name of the form element
Parameters
string | $name |
Form element interface
setName(string $name) : \Pop\Form\Element\AbstractElement
Set the name of the form element
string | $name |
setValue(mixed $value) : \Pop\Form\Element\AbstractElement
Set the value of the form element
mixed | $value |
setMarked(mixed $marked) : \Pop\Form\Element\AbstractElement
Set the marked value(s) of the form element
mixed | $marked |
setLabel(mixed $label) : \Pop\Form\Element\AbstractElement
Set the label of the form element
mixed | $label |
setLabelAttributes(array $attribs) : \Pop\Form\Element\AbstractElement
Set the attributes of the label of the form element
array | $attribs |
setRequired(boolean $required) : \Pop\Form\Element\AbstractElement
Set whether the form element is required
boolean | $required |
setErrorPre(boolean $pre = true) : \Pop\Form\Element\AbstractElement
Set error pre-display
boolean | $pre |
setErrorPost(boolean $post = true) : \Pop\Form\Element\AbstractElement
Set error post-display
boolean | $post |
setErrorDisplay(string $container, array $attribs, boolean $pre = false) : \Pop\Form\Element\AbstractElement
Set error display values
string | $container | |
array | $attribs | |
boolean | $pre |
setValidators(array $validators = array()) : \Pop\Form\Element\AbstractElement
Set validators
array | $validators |
clearErrors() : \Pop\Form\Element\AbstractElement
Clear errors
addValidator(mixed $validator) : \Pop\Form\Element\AbstractElement
Add a validator the form element
mixed | $validator |