/** * {@inheritDoc} */ public function render(array $attributes = array()) { return parent::render(array_merge(array('type' => 'checkbox'), $attributes)); }
/** * {@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' => 'radio', 'name' => $this->getParent() ? $this->getParent()->getName() : $this->getName()), $attributes)); }