38 parent::__construct();
44 $this->ctrl->saveParameterByClass(
'ilDclTableViewGUI',
'tableview_id');
49 protected function initForm()
55 $rbacreview = $DIC[
'rbacreview'];
57 $this->
setTitle($this->tableview->getId() ? $this->lng->txt(
'settings') : $this->lng->txt(
'dcl_tableview_add'));
61 $item->
setValue($this->tableview->getTitle());
62 $item->setRequired(
true);
66 $item =
new ilTextInputGUI($this->lng->txt(
'description'),
'description');
67 $item->
setValue($this->tableview->getDescription());
73 foreach ($rbacreview->getParentRoleIds(
$_GET[
'ref_id']) as $role_array) {
75 $option->setValue($role_array[
'obj_id']);
76 $checkbox_group_input_gui->addOption($option);
79 $checkbox_group_input_gui->setValue($this->tableview->getRoles());
80 $this->
addItem($checkbox_group_input_gui);
82 $this->
setFormAction($this->ctrl->getFormAction($this->parent_gui));
83 if ($this->tableview->getId()) {
94 $this->tableview->setTitle($this->
getInput(
'title'));
95 $this->tableview->setDescription($this->
getInput(
'description'));
97 $this->tableview->update();
105 $this->tableview->setTitle($this->
getInput(
'title'));
106 $this->tableview->setDescription($this->
getInput(
'description'));
107 $this->tableview->setRoles((
array) $this->
getInput(
'roles'));
108 $this->tableview->setTableId($this->table->getId());
109 $this->tableview->setOrder($this->table->getNewTableviewOrder());
110 $this->tableview->create();
112 $this->ctrl->setParameterByClass(
'ilDclTableViewGUI',
'tableview_id', $this->tableview->getId());
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
Class ilDclTableViewEditGUI.
This class represents an option in a checkbox group.
Class ilDclBaseFieldModel.
This class represents a text property in a property form.
static _getTranslation($a_role_title)
Create styles array
The data for the language used.
setValue($a_value)
Set Value.