예제 #1
0
파일: Radio.php 프로젝트: sqrt-pro/form
 function __construct($field, array $options = null, $name = null, Form $form = null)
 {
     parent::__construct($field, $name, $form);
     if ($options) {
         $this->setOptions($options);
     }
 }
예제 #2
0
파일: Checkbox.php 프로젝트: sqrt-pro/form
 public function setOptions(array $options, $add_filter = true, $ignore_keys = null)
 {
     parent::setOptions($options, $add_filter, $ignore_keys);
     $this->setMultipleChoiceAllowed();
     return $this;
 }