예제 #1
0
파일: select.php 프로젝트: Jille/dingesform
 function fillAttributes()
 {
     parent::fillAttributes();
     if (isset($this->attributes['multiple'])) {
         $this->setAttribute('name', $this->name . '[]');
     }
 }
예제 #2
0
 function fillAttributes()
 {
     parent::fillAttributes();
     $this->setAttribute('type', 'checkbox');
     if ($this->getEffectiveValue()) {
         $this->setAttribute('checked', 'checked');
     }
 }
예제 #3
0
파일: text.php 프로젝트: Jille/dingesform
 function fillAttributes()
 {
     parent::fillAttributes();
     $this->setAttribute('type', 'text');
     $this->setAttribute('value', $this->getEffectiveValue());
     if (isset($this->maxLength) && $this->maxLength > 0) {
         $this->setAttribute('maxlength', $this->maxLength);
     }
 }
예제 #4
0
파일: file.php 프로젝트: Jille/dingesform
 function fillAttributes()
 {
     parent::fillAttributes();
     $this->setAttribute('type', 'file');
 }