Ejemplo n.º 1
0
 function fillRestrictions()
 {
     parent::fillRestrictions();
     if ($this->min !== NULL) {
         $this->setRestriction('min', $this->min);
     }
     if ($this->max !== NULL) {
         $this->setRestriction('max', $this->max);
     }
 }
Ejemplo n.º 2
0
 function fillAttributes()
 {
     parent::fillAttributes();
     $this->setAttribute('type', 'password');
 }
Ejemplo n.º 3
0
 function fillAttributes()
 {
     parent::fillAttributes();
     $this->setAttribute('cols', $this->cols);
     $this->setAttribute('rows', $this->rows);
 }