Forms\ElementInterface

Source on GitHub Methods abstract public setForm (Phalcon\Forms\Form $form) ... abstract public getForm () ... abstract public setName (mixed $name) ... abstract public getName () ... abstract public setFilters (mixed $filters) ... abstract public addFilter (mixed $filter) ... abstract public getFilters () ... abstract public addValidators (array $validators, [mixed $merge]) ... abstract public addValidator (Phalcon\Validation\ValidatorInterface $validator) ... abstract public getValidators ()

Forms\Element::setUserOptions

public setUserOptions (array $options) Sets options for the element

Forms\Element::setUserOption

public Phalcon\Forms\ElementInterface setUserOption (string $option, mixed $value) Sets an option for the element

Forms\Element::setName

public setName (mixed $name) Sets the element name

Forms\Element::setMessages

public setMessages (Phalcon\Validation\Message\Group $group) Sets the validation messages related to the element

Forms\Element::setLabel

public setLabel (mixed $label) Sets the element label

Forms\Element::setForm

public setForm (Phalcon\Forms\Form $form) Sets the parent form to the element

Forms\Element::setFilters

public Phalcon\Forms\ElementInterface setFilters (array | string $filters) Sets the element filters

Forms\Element::setDefault

public Phalcon\Forms\ElementInterface setDefault (mixed $value) Sets a default value in case the form does not use an entity or there is no value available for the element in _POST

Forms\Element::setAttributes

public setAttributes (array $attributes) Sets default attributes for the element