public function __construct($name = '', $info = array()) { parent::__construct($name, $info); if (!$this->value) { $this->value = $name; } }
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')); }
public function __construct($name = '', $info = array()) { parent::__construct($name, $info); $this->required = FALSE; if ($this->value == 1) { $this->checked = TRUE; } }
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(); } } }
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); } }
public function __construct($name = '', $info = array()) { parent::__construct($name, $info); }
public function __construct($name = '', $info = array()) { parent::__construct($name, $info); Formo::instance($this->formo_name)->add_function('blank', array($this, 'blank')); }
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)); }