2 require_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
36 parent::__construct();
42 $this->ctrl->saveParameterByClass(
'ilDclTableViewGUI',
'tableview_id');
49 $rbacreview = $DIC[
'rbacreview'];
51 $this->
setTitle($this->tableview->getId() ? $this->lng->txt(
'settings') : $this->lng->txt(
'dcl_tableview_add'));
55 $item->
setValue($this->tableview->getTitle());
56 $item->setRequired(
true);
60 $item =
new ilTextInputGUI($this->lng->txt(
'description'),
'description');
61 $item->
setValue($this->tableview->getDescription());
67 foreach ($rbacreview->getParentRoleIds(
$_GET[
'ref_id']) as $role_array) {
69 $option->setValue($role_array[
'obj_id']);
70 $checkbox_group_input_gui->addOption($option);
72 foreach ($rbacreview->getLocalRoles(
$_GET[
'ref_id']) as $role_id) {
74 $option->setValue($role_id);
75 $checkbox_group_input_gui->addOption($option);
78 $checkbox_group_input_gui->setValue($this->tableview->getRoles());
79 $this->
addItem($checkbox_group_input_gui);
81 $this->
setFormAction($this->ctrl->getFormAction($this->parent_gui));
82 if ($this->tableview->getId()) {
92 $this->tableview->setTitle($this->
getInput(
'title'));
93 $this->tableview->setDescription($this->
getInput(
'description'));
95 $this->tableview->update();
102 $this->tableview->setTitle($this->
getInput(
'title'));
103 $this->tableview->setDescription($this->
getInput(
'description'));
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());
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.