private function AddModules() { $bundles = $this->Bundles(); foreach ($bundles as $bundle) { $this->AddField(new Checkbox($bundle, 1, $this->HasLock($bundle)), false, $bundle); $columnizer = new FieldColumnizer($this, 3); $modules = $this->Modules($bundle); foreach ($modules as $module) { $this->AddField(new Checkbox($this->FieldName($bundle, $module), 1, $this->HasLock($bundle, $module)), false, $module); $columnizer->AddField($this->FieldName($bundle, $module)); } $this->fieldsets[$bundle] = $columnizer; } }
private function AddGroupCheckBoxes() { $this->currentGroups = array(); $this->groupCheckBoxes = new FieldColumnizer($this); foreach ($this->groups as $group) { $name = 'Usergroup_' . $group->GetID(); $cb = new Checkbox($name, $group->GetID()); if ($this->HasGroup($group)) { $this->currentGroups[] = $group; $cb->SetChecked(); } $this->AddField($cb, false, $group->GetName()); $this->groupCheckBoxes->AddField($name); } }