Exemplo n.º 1
0
 public function __construct($name, $label)
 {
     parent::__construct($name, false);
     $this->label = false;
     $this->setAttribute("value", $label);
     $this->setAttribute("type", "submit");
 }
Exemplo n.º 2
0
 public function __toString()
 {
     if (!is_null($this->getValue())) {
         $this->setAttribute('checked', 'checked');
     }
     return parent::__toString();
 }
Exemplo n.º 3
0
 public function __construct($name, $label)
 {
     parent::__construct($name, $label);
     $this->setAttribute("type", "file");
 }