Exemplo n.º 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();
     }
 }
Exemplo n.º 2
0
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
 }
Exemplo n.º 3
0
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->attributes['type'] = 'password';
 }
Exemplo n.º 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}';
 }
Exemplo n.º 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';
 }
Exemplo n.º 6
0
 public function __construct($title = '', $options = [])
 {
     parent::__construct($title, $options);
     $this->attributes['type'] = 'number';
 }
Exemplo n.º 7
0
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->hidden = true;
     $this->attributes['type'] = 'hidden';
 }
Exemplo n.º 8
0
 public function __construct($name, $options = [])
 {
     parent::__construct($name, $options);
     $this->attributes['type'] = 'email';
 }
Exemplo n.º 9
0
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->class[] = 'picker';
 }
Exemplo n.º 10
0
 public function __construct($title = '', $options = [])
 {
     parent::__construct($title, $options);
     $this->value = false;
     $this->attributes['type'] = 'checkbox';
 }
Exemplo n.º 11
0
 public function __construct($name, $options)
 {
     $this->options = $options;
     parent::__construct($name);
 }