38 parent::__construct();
44 $this->ctrl->saveParameterByClass(
'ilDclTableViewGUI',
'tableview_id');
52 $rbacreview = $DIC[
'rbacreview'];
54 $this->
setTitle($this->tableview->getId() ? $this->lng->txt(
'settings') : $this->lng->txt(
'dcl_tableview_add'));
58 $item->
setValue($this->tableview->getTitle());
59 $item->setRequired(
true);
63 $item =
new ilTextInputGUI($this->lng->txt(
'description'),
'description');
64 $item->
setValue($this->tableview->getDescription());
70 foreach ($rbacreview->getParentRoleIds(
$_GET[
'ref_id']) as $role_array) {
72 $option->setValue($role_array[
'obj_id']);
73 $checkbox_group_input_gui->addOption($option);
76 $checkbox_group_input_gui->setValue($this->tableview->getRoles());
77 $this->
addItem($checkbox_group_input_gui);
79 $this->
setFormAction($this->ctrl->getFormAction($this->parent_gui));
80 if ($this->tableview->getId()) {
91 $this->tableview->setTitle($this->
getInput(
'title'));
92 $this->tableview->setDescription($this->
getInput(
'description'));
93 $this->tableview->setRoles((array) $this->
getInput(
'roles'));
94 $this->tableview->update();
96 ilUtil::sendSuccess($this->lng->txt(
'dcl_msg_tableview_updated'),
true);
102 $this->tableview->setTitle($this->
getInput(
'title'));
103 $this->tableview->setDescription($this->
getInput(
'description'));
104 $this->tableview->setRoles((array) $this->
getInput(
'roles'));
105 $this->tableview->setTableId($this->table->getId());
106 $this->tableview->setOrder($this->table->getNewTableviewOrder());
107 $this->tableview->create();
109 $this->ctrl->setParameterByClass(
'ilDclTableViewGUI',
'tableview_id', $this->tableview->getId());
111 ilUtil::sendSuccess($this->lng->txt(
'dcl_msg_tableview_created'),
true);
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)
setValue($a_value)
Set Value.