Exemplo n.º 1
0
 /**
  * Get the attributes map collection
  *
  * @return AttributesMapInterface
  */
 public function getAttributes()
 {
     $attributes = parent::getAttributes();
     if ($this->isChecked()) {
         $attributes->set('checked', null);
     }
     return $attributes;
 }
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;
 }