Esempio n. 1
0
 public function __construct($name = '', $info = array())
 {
     parent::__construct($name, $info);
     if (!$this->value) {
         $this->value = $name;
     }
 }
Esempio n. 2
0
 public function __construct($name = '', $info = array())
 {
     parent::__construct($name, $info);
     if (!$this->value) {
         $this->value = $name;
     }
     Formo::instance($this->formo_name)->add_function('check', array($this, 'check'))->add_function('uncheck', array($this, 'uncheck'));
 }
Esempio n. 3
0
 public function __construct($name = '', $info = array())
 {
     parent::__construct($name, $info);
     $this->required = FALSE;
     if ($this->value == 1) {
         $this->checked = TRUE;
     }
 }
Esempio n. 4
0
 public function __construct($name = '', $info = array())
 {
     parent::__construct($name, $info);
     if (request::is_ajax() and isset($_GET['query'])) {
         if (!$this->data) {
             $this->data = call_user_func($this->source, $_GET['query']);
             $this->get_results();
         }
     }
 }
Esempio n. 5
0
 public function __construct($name = '', $info = array())
 {
     parent::__construct($name, $info);
     // load the config file
     $_config = Kohana::config('captcha');
     // get default if no group specified, group if it is
     $config = ($this->group and isset($_config[$this->group])) ? $_config[$this->group] : $_config['default'];
     // create the captcha object here if it's a riddle
     if (in_array($config['style'], $this->non_images)) {
         $this->captcha = Captcha::factory($this->group);
     }
 }
Esempio n. 6
0
 public function __construct($name = '', $info = array())
 {
     parent::__construct($name, $info);
 }
Esempio n. 7
0
 public function __construct($name = '', $info = array())
 {
     parent::__construct($name, $info);
     Formo::instance($this->formo_name)->add_function('blank', array($this, 'blank'));
 }
Esempio n. 8
0
 public function __construct($name = '', $info = array())
 {
     parent::__construct($name, $info);
     $form = Formo::instance($this->formo_name);
     $form->set('open', preg_replace('/>/', ' enctype="multipart/form-data">', $form->_open));
 }