public function __construct($entity = null, $userOptions = null) { parent::__construct($entity, $userOptions); $this->_setDefaultUserOptions($this->_defaultUserOptions); if (method_exists($this, "onConstruct")) { $this->{"onConstruct"}(); } }
/** * Form constructor. * @param $options */ public function __construct($options) { parent::__construct(); if ($options instanceof \FA\Config\Item) { $options = $options->toArray(); } $this->options = $options; $this->_setUpFields(); }
public function __construct($identifier, $entity = null, array $userOptions = null) { parent::__construct($entity, $userOptions); $this->form = new HtmlForm($identifier); }
/** * Set the config array (config.ini contents) to private variable. * * @param array $config The config array. */ public function __construct($config) { $this->_config = $config; parent::__construct(); }
public function __construct($entity = null, $attrs = null) { parent::__construct($entity, $attrs); $name = new \Phalcon\Forms\Element\Text('name', array('class' => 'form-control')); $this->add($name); }
/** * Set the config array (config.ini contents) to private variable. * Set bool if login already failed on last request. * * @param array $config The config array. * @param bool $loginFailed Whether login failed on last POST. */ public function __construct($config, $loginFailed) { $this->_config = $config; $this->_loginFailed = $loginFailed; parent::__construct(); }
public function __construct($entity = null, \User $user = null) { $this->user = $user; parent::__construct($entity, null); }