Exemplo n.º 1
0
 /**
  * @param Checkbox $checkbox
  */
 protected function buildCheckboxPrototype(Checkbox $checkbox)
 {
     $checkbox->setCssBaseTypeClass('ctrl')->setTranslationKey('control.{name}')->setComponentBaseType('control');
 }
Exemplo n.º 2
0
 /**
  * @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());
 }