Exemplo n.º 1
0
 /**
  * Sets the value of the checkbox
  *
  * @param mixed $value
  *
  * @return mixed
  */
 public function setValue($value)
 {
     $this->checked = null;
     return parent::setValue($value);
 }
Exemplo n.º 2
0
 /**
  * Adds the value to the select
  *
  * Mainly it removes the entry in the attributes list
  *
  * @param mixed $value
  *
  * @return $this|self|Select
  */
 public function setValue($value)
 {
     parent::setValue($value);
     $this->getAttributes()->remove('value');
     return $this;
 }