Ejemplo n.º 1
0
 public function setValue($value)
 {
     if ($value == 1) {
         $this->addAttributes('checked', 'checked');
     }
     return parent::setValue($value);
 }
Ejemplo n.º 2
0
 public function addField(Field $fields)
 {
     $this->fields[$fields->getName()] = $fields;
     return $this;
 }
Ejemplo n.º 3
0
 public function __construct($name, $type = null, $value = null)
 {
     parent::__construct($name, null, $value);
     $this->type = $type != null ? $type : $this->type;
 }