Exemple #1
0
 /**
  * Constructor
  * 
  * @param string $type text, url, number, email, image, submit, date, search, etc.
  */
 public function __construct($type)
 {
     parent::__construct('input');
     $this->setAttribute('type', $type);
 }
Exemple #2
0
 /**
  * Constructor
  */
 public function __construct($method = 'post')
 {
     parent::__construct('form');
     $this->setAttribute('method', $method);
 }
Exemple #3
0
 /**
  * Constructor
  */
 public function __construct($type = 'submit')
 {
     parent::__construct('button');
     $this->setAttribute('type', $type);
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct('select');
 }
Exemple #5
0
 public function __construct()
 {
     parent::__construct('textarea');
 }