public function __construct($name, $title = '') { parent::__construct('text', $name, $title); $this->settings['size'] = 10; $this->settings['value'] = ''; $this->settings['readonly'] = False; }
/** * Конструктор * * @param type $options */ public function __construct($options) { $options['template'] = 'Form/templates/group'; parent::__construct($options); foreach ($this->options->elements as $key => $element) { $element->render = FALSE; $this->options->form->add($key, $element); } }
/** * Конструктор * * @param type $options */ public function __construct($options) { $options['template'] = 'Form/templates/link'; $options['wrapper'] = FALSE; parent::__construct($options); }
public function __construct($name, $title = '') { parent::__construct('checkbox', $name, $title); $this->settings['value'] = True; $this->settings['checked'] = False; }
/** * Конструктор * * @param type $options */ public function __construct($options) { $options['template'] = 'Form/templates/textarea'; parent::__construct($options); }
public function __construct($name) { parent::__construct('hidden', $name); $this->settings['value'] = ''; }
public function __construct($name, $title = '') { parent::__construct('select', $name, $title); $this->settings['selected'] = ''; $this->settings['size'] = 0; }
/** * Конструктор * * @param type $options */ public function __construct($options) { $options['template'] = 'Form/templates/checkbox'; parent::__construct($options); }