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