示例#1
0
 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');
     });
 }
示例#2
0
文件: Form.php 项目: pscheit/psc-cms
 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;
 }