コード例 #1
0
 /**
  * @param Checkbox $checkbox
  */
 protected function buildCheckboxPrototype(Checkbox $checkbox)
 {
     $checkbox->setCssBaseTypeClass('ctrl')->setTranslationKey('control.{name}')->setComponentBaseType('control');
 }
コード例 #2
0
ファイル: DefaultViewHandler.php プロジェクト: zingular/forms
 /**
  * @param Checkbox $input
  * @return string
  */
 protected function renderCheckbox(Checkbox $input)
 {
     return sprintf(self::FORMAT_CHECKBOX, $input->getInputType(), $input->getFullId(), $input->getCssClass(), $input->getFullName(), $input->isChecked() ? 'checked="checked"' : '', $input->getHtmlAttributesAsString());
 }