37 $ilCtrl = $DIC[
'ilCtrl'];
40 $this->ctrl = $ilCtrl;
44 $this->ctrl->saveParameterByClass(
'ilDclTableViewGUI',
'tableview_id');
52 $rbacreview = $DIC[
'rbacreview'];
54 $this->
setTitle($this->tableview->getId() ? $this->lng->txt(
'dcl_view_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->setStepVs(
true);
107 $this->tableview->setStepE(
false);
108 $this->tableview->setStepC(
false);
109 $this->tableview->setStepO(
false);
110 $this->tableview->setStepS(
false);
111 $this->tableview->setOrder($this->table->getNewTableviewOrder());
112 $this->tableview->create();
114 $this->ctrl->setParameterByClass(
'ilDclTableViewGUI',
'tableview_id', $this->tableview->getId());
116 ilUtil::sendSuccess($this->lng->txt(
'dcl_msg_tableview_created'),
true);
Class ilDclTableViewEditGUI.
This class represents an option in a checkbox group.
Class ilDclBaseFieldModel.
static _getTranslation($a_role_title)
__construct(Container $dic, ilPlugin $plugin)