Beispiel #1
0
 function fillAttributes()
 {
     parent::fillAttributes();
     if (isset($this->attributes['multiple'])) {
         $this->setAttribute('name', $this->name . '[]');
     }
 }
Beispiel #2
0
 function fillAttributes()
 {
     parent::fillAttributes();
     $this->setAttribute('type', 'checkbox');
     if ($this->getEffectiveValue()) {
         $this->setAttribute('checked', 'checked');
     }
 }
Beispiel #3
0
 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);
     }
 }
Beispiel #4
0
 function fillAttributes()
 {
     parent::fillAttributes();
     $this->setAttribute('type', 'file');
 }