Class Phalcon\Forms\Element\Hidden

extends abstract class Phalcon\Forms\Element

implements Phalcon\Forms\ElementInterface

Component INPUT[type=hidden] for forms

Methods

public string render ([array $attributes])

Renders the element widget returning html

public __construct (string $name, [array $attributes]) inherited from Phalcon\Forms\Element

Phalcon\Forms\Element constructor

public Phalcon\Forms\ElementInterface setForm (Phalcon\Forms\Form $form) inherited from Phalcon\Forms\Element

Sets the parent form to the element

public Phalcon\Forms\ElementInterface getForm () inherited from Phalcon\Forms\Element

Returns the parent form to the element

public Phalcon\Forms\ElementInterface setName (string $name) inherited from Phalcon\Forms\Element

Sets the element’s name

public string getName () inherited from Phalcon\Forms\Element

Returns the element’s name

public Phalcon\Forms\ElementInterface setFilters (array|string $filters) inherited from Phalcon\Forms\Element

Sets the element’s filters

public Phalcon\Forms\ElementInterface addFilter (string $filter) inherited from Phalcon\Forms\Element

Adds a filter to current list of filters

public mixed getFilters () inherited from Phalcon\Forms\Element

Returns the element’s filters

public Phalcon\Forms\ElementInterface addValidators (unknown $validators, [unknown $merge]) inherited from Phalcon\Forms\Element

Adds a group of validators

public Phalcon\Forms\ElementInterface addValidator (unknown $validator) inherited from Phalcon\Forms\Element

Adds a validator to the element

public Phalcon\Validation\ValidatorInterface [] getValidators () inherited from Phalcon\Forms\Element

Returns the validators registered for the element

public array prepareAttributes ([array $attributes], [boolean $useChecked]) inherited from Phalcon\Forms\Element

Returns an array of prepared attributes for Phalcon\Tag helpers according to the element’s parameters

public Phalcon\Forms\ElementInterface setAttribute (string $attribute, mixed $value) inherited from Phalcon\Forms\Element

Sets a default attribute for the element

public mixed getAttribute (string $attribute, [mixed $defaultValue]) inherited from Phalcon\Forms\Element

Returns the value of an attribute if present

public Phalcon\Forms\ElementInterface setAttributes (array $attributes) inherited from Phalcon\Forms\Element

Sets default attributes for the element

public array getAttributes () inherited from Phalcon\Forms\Element

Returns the default attributes for the element

public Phalcon\Forms\ElementInterface setUserOption (string $option, mixed $value) inherited from Phalcon\Forms\Element

Sets an option for the element

public mixed getUserOption (string $option, [mixed $defaultValue]) inherited from Phalcon\Forms\Element

Returns the value of an option if present

public Phalcon\Forms\ElementInterface setUserOptions (array $options) inherited from Phalcon\Forms\Element

Sets options for the element

public array getUserOptions () inherited from Phalcon\Forms\Element

Returns the options for the element

public Phalcon\Forms\ElementInterface setLabel (string $label) inherited from Phalcon\Forms\Element

Sets the element label

public string getLabel () inherited from Phalcon\Forms\Element

Returns the element’s label

public string label (unknown $attributes) inherited from Phalcon\Forms\Element

Generate the HTML to label the element

public Phalcon\Forms\ElementInterface setDefault (mixed $value) inherited from Phalcon\Forms\Element

Sets a default value in case the form does not use an entity or there is no value available for the element in $_POST

public mixed getDefault () inherited from Phalcon\Forms\Element

Returns the default value assigned to the element

public mixed getValue () inherited from Phalcon\Forms\Element

Returns the element’s value

public Phalcon\Validation\Message\Group getMessages () inherited from Phalcon\Forms\Element

Returns the messages that belongs to the element The element needs to be attached to a form

public boolean hasMessages () inherited from Phalcon\Forms\Element

Checks whether there are messages attached to the element

public Phalcon\Forms\ElementInterface setMessages (Phalcon\Validation\Message\Group $group) inherited from Phalcon\Forms\Element

Sets the validation messages related to the element

public Phalcon\Forms\ElementInterface appendMessage (Phalcon\Validation\Message $message) inherited from Phalcon\Forms\Element

Appends a message to the internal message list

public Phalcon\Forms\Element clear () inherited from Phalcon\Forms\Element

Clears every element in the form to its default value

public string __toString () inherited from Phalcon\Forms\Element

Magic method __toString renders the widget without attributes

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Forms_Element_Hidden.html