Ejemplo n.º 1
0
 public function __construct($entity = null, $userOptions = null)
 {
     parent::__construct($entity, $userOptions);
     $this->_setDefaultUserOptions($this->_defaultUserOptions);
     if (method_exists($this, "onConstruct")) {
         $this->{"onConstruct"}();
     }
 }
Ejemplo n.º 2
0
 /**
  * Form constructor.
  * @param $options
  */
 public function __construct($options)
 {
     parent::__construct();
     if ($options instanceof \FA\Config\Item) {
         $options = $options->toArray();
     }
     $this->options = $options;
     $this->_setUpFields();
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 /**
  * 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();
 }
Ejemplo n.º 7
0
 public function __construct($entity = null, \User $user = null)
 {
     $this->user = $user;
     parent::__construct($entity, null);
 }