예제 #1
0
파일: Submit.php 프로젝트: rezon/sugi
 public function __construct($name, $label)
 {
     parent::__construct($name, false);
     $this->label = false;
     $this->setAttribute("value", $label);
     $this->setAttribute("type", "submit");
 }
예제 #2
0
파일: Checkbox.php 프로젝트: rezon/sugi
 public function __toString()
 {
     if (!is_null($this->getValue())) {
         $this->setAttribute('checked', 'checked');
     }
     return parent::__toString();
 }
예제 #3
0
파일: Upload.php 프로젝트: rezon/sugi
 public function __construct($name, $label)
 {
     parent::__construct($name, $label);
     $this->setAttribute("type", "file");
 }