public function addControlColumn() { return $this->createColumn('ctrl', Type::create('String'), self::EMPTY_LABEL, array(), function (Entity $entity) { return \Psc\UI\fHTML::checkbox('egp-ctrl[]', FALSE, $entity->getIdentifier())->addClass('\\Psc\\identifier-checkbox'); }); }
public static function checkbox($label, $name = NULL, $checked = FALSE, $id = NULL) { list($label, $name, $id) = self::expand($label, $name, $id); $c = fHTML::checkbox($name, $checked, 'true', array('id' => $id)); // hier ist true fixed, weil wir es eh immer so brauchen self::attachLabel($c, $label, self::LABEL_CHECKBOX); return $c; }