/** * Get all checkboxes * @return string */ private function getCheckboxes() { $Checkboxes = ''; foreach ($this->checkboxes as $key => $label) { $value = isset($this->value[$key]) && $this->value[$key] == 'on' ? 1 : 0; $Checkbox = new FormularCheckbox($this->getNameForKey($key), $label, $value); $Checkbox->setLayout(FormularFieldset::$LAYOUT_FIELD_SMALL_INLINE); $Checkbox->addLayout(FormularFieldset::$LAYOUT_FIELD_W25); $Checkbox->setLabelToRight(); $Checkboxes .= $Checkbox->getCode(); } return $Checkboxes; }