/** * {@inheritDoc} */ public function render(array $attributes = array()) { return parent::render(array_merge(array('type' => 'radio', 'name' => $this->getParent() ? $this->getParent()->getName() : $this->getName()), $attributes)); }
/** * {@inheritDoc} */ protected function configure() { $this->addOption('value', '1'); parent::configure(); }
/** * {@inheritDoc} */ public function getAttributes() { return array_merge(parent::getAttributes(), array('type' => 'checkbox')); }
/** * {@inheritDoc} */ public function getAttributes() { return array_merge(parent::getAttributes(), array('type' => 'radio', 'name' => $this->getParent() ? $this->getParent()->getName() : $this->getName())); }
/** * {@inheritDoc} */ public function __construct($key, array $options = array()) { $options['type'] = 'checkbox'; parent::__construct($key, $options); }
/** * {@inheritDoc} */ public function render(array $attributes = array()) { return parent::render(array_merge(array('type' => 'checkbox'), $attributes)); }
/** * {@inheritDoc} */ public function getName() { // TESTME return $this->getParent() ? $this->getParent()->getName() : parent::getName(); }