Example #1
0
 public function get_html()
 {
     if (!$this->hidden) {
         $attributes = $this->attributes;
         $this->set_standard_attributes($attributes);
         return '<select ' . static::get_attributes($attributes) . '>' . $this->get_options() . '</select>' . "\n";
     } else {
         return parent::get_html();
     }
 }
Example #2
0
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
 }
Example #3
0
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->attributes['type'] = 'password';
 }
Example #4
0
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->attributes['pattern'] = '[0-9]{2}/[0-9]{2}/[0-9]{4} [0-9]{2}:[0-9]{2}:[0-9]{2}';
 }
Example #5
0
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     //$this->attributes['pattern'] = '[0-9]{2}/[0-9]{2}/[0-9]{4}';
     $this->attributes['type'] = 'date';
 }
Example #6
0
 public function __construct($title = '', $options = [])
 {
     parent::__construct($title, $options);
     $this->attributes['type'] = 'number';
 }
Example #7
0
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->hidden = true;
     $this->attributes['type'] = 'hidden';
 }
Example #8
0
 public function __construct($name, $options = [])
 {
     parent::__construct($name, $options);
     $this->attributes['type'] = 'email';
 }
Example #9
0
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->class[] = 'picker';
 }
Example #10
0
 public function __construct($title = '', $options = [])
 {
     parent::__construct($title, $options);
     $this->value = false;
     $this->attributes['type'] = 'checkbox';
 }
Example #11
0
 public function __construct($name, $options)
 {
     $this->options = $options;
     parent::__construct($name);
 }