Forms\Element::addFilter

public addFilter (mixed $filter) Adds a filter to current list of filters

Forms\Element

implements Phalcon\Forms\ElementInterface Source on GitHub This is a base class for form elements Methods public __construct (string $name, [array $attributes]) Phalcon\Forms\Element constructor public setForm (Phalcon\Forms\Form $form) Sets the parent form to the element public getForm () Returns the parent form to the element public setName (mixed $name) Sets the element name public getName () Returns the element name public Phalcon\Forms\ElementInterface setFilters (array | string $filters)

Forms

Phalcon\Forms is a component that aids you in the creation and maintenance of forms in web applications. The following example shows its basic usage: use Phalcon\Forms\Form; use Phalcon\Forms\Element\Text; use Phalcon\Forms\Element\Select; $form = new Form(); $form->add( new Text( "name" ) ); $form->add( new Text( "telephone" ) ); $form->add( new Select( "telephoneType", [ "H" => "Home", "C" => "Cell"

Flash\Session::output

public output ([mixed $remove]) Prints the messages in the session flasher

Flash\Session::message

public message (mixed $type, mixed $message) Adds a message to the session flasher

Flash\Session::has

public has ([mixed $type]) Checks whether there are messages

Flash\Session::getMessages

public getMessages ([mixed $type], [mixed $remove]) Returns the messages in the session flasher

Flash\Session::clear

public clear () Clear messages in the session messenger

Flash\Session

extends abstract class Phalcon\Flash implements Phalcon\Di\InjectionAwareInterface, Phalcon\FlashInterface Source on GitHub Temporarily stores the messages in session, then messages can be printed in the next request Methods protected _getSessionMessages (mixed $remove, [mixed $type]) Returns the messages stored in session protected _setSessionMessages (array $messages) Stores the messages in session public message (mixed $type, mixed $message) Adds a message to the session flasher public has (

Flash\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin