/** * @param $value * @return AbstractElement|CheckboxField */ public function setValue($value) { if ($value !== FALSE) { parent::setValue($value); $this->setChecked(); } return $this; }
/** * {@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'))); }