Example #1
0
 /**
  * @param $value
  * @return AbstractElement|CheckboxField
  */
 public function setValue($value)
 {
     if ($value !== FALSE) {
         parent::setValue($value);
         $this->setChecked();
     }
     return $this;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('sSize', $this->getOption('size')));
     $collection->add(new Attribute('sSuffix', $this->getOption('suffix')));
 }