예제 #1
0
파일: File.php 프로젝트: gsouf/uform
 public function refreshParent()
 {
     parent::refreshParent();
     if ($this->form) {
         $this->form->setEnctype(Form::ENCTYPE_MULTIPART_FORMDATA);
     }
 }
예제 #2
0
 public function __construct($name, $attributes = null, $validators = null, $filters = null)
 {
     parent::__construct("submit", $name, $attributes, $validators, $filters);
 }
예제 #3
0
 public function __construct($name, $value = null, $attributes = null, $validators = null, $filters = null)
 {
     parent::__construct("checkbox", $name, $attributes, $validators, $filters);
     $this->value = $value;
 }
예제 #4
0
파일: Text.php 프로젝트: gsouf/uform
 public function __construct($name)
 {
     parent::__construct('text', $name);
     $this->addSemanticType('input:textfield');
     $this->addSemanticType('input:text');
 }
예제 #5
0
파일: Submit.php 프로젝트: gsouf/uform
 public function __construct($name = null)
 {
     parent::__construct('submit', $name);
     $this->addSemanticType('input:submit');
 }
예제 #6
0
파일: Hidden.php 프로젝트: gsouf/uform
 public function __construct($name)
 {
     parent::__construct('hidden', $name);
     $this->addSemanticType('input:hidden');
 }
예제 #7
0
파일: Check.php 프로젝트: gsouf/uform
 public function __construct($name)
 {
     parent::__construct('checkbox', $name);
     $this->addSemanticType('input:checkbox');
 }
예제 #8
0
파일: Radio.php 프로젝트: gsouf/uform
 public function __construct($name, $value)
 {
     parent::__construct('radio', $name);
     $this->addSemanticType('input:radio');
     $this->value = $value;
 }