コード例 #1
0
ファイル: form.class.php プロジェクト: rhertzog/lcs
 public static function Factory($name, $checkboxList, $label, $required = false, $checked = null)
 {
     $fieldSet = FieldSet::Factory($name . '_list', $label);
     if (is_array($checkboxList) && !empty($checkboxList)) {
         $i = 0;
         foreach ($checkboxList as $value => $label) {
             $id = $name . ++$i;
             $fieldSet->addElement(InputRadio::Factory($name, $value, $label, $id));
         }
     }
     return $fieldSet;
 }
コード例 #2
0
ファイル: FormType.php プロジェクト: rverbrugge/dif
 public function getHtml()
 {
     return parent::getHtml() . " " . $this->extra->getHtml();
 }