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\ElementInterface::addFilter

abstract public addFilter (mixed $filter) ...

Forms\Element::setUserOption

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

Forms\Element::setLabel

public setLabel (mixed $label) Sets the element label

Forms\Element::setMessages

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

Forms\Element::setAttribute

public Phalcon\Forms\ElementInterface setAttribute (string $attribute, mixed $value) Sets a default attribute for the element

Forms\Element::setName

public setName (mixed $name) Sets the element name

Forms\Element::setAttributes

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

Forms\Element::setFilters

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

Forms\Element::setForm

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