50 $ilTabs = $DIC[
'ilTabs'];
51 $ilToolbar = $DIC[
'ilToolbar'];
54 $this->parent_obj = $a_parent_obj;
55 $this->obj_id = $a_parent_obj->obj_id;
59 $this->tabs = $ilTabs;
60 $this->toolbar = $ilToolbar;
64 $this->ctrl->redirectByClass(
'ildclrecordlistgui',
'listRecords');
74 $cmd = $this->ctrl->getCmd(
'listTables');
76 $next_class = $this->ctrl->getNextClass($this);
81 $tableHelper =
new ilDclTableHelper((
int) $this->obj_id, (
int)
$_GET[
'ref_id'], $DIC->rbac()->review(), $DIC->user(), $DIC->database());
85 if (count($role_titles) > 0) {
86 ilUtil::sendInfo($DIC->language()->txt(
'dcl_rbac_roles_without_read_access_on_any_standard_view') .
" " . implode(
", ", $role_titles));
89 switch ($next_class) {
90 case 'ildcltableeditgui':
91 $this->tabs->clearTargets();
92 if ($cmd !=
'create') {
95 $this->tabs->setBackTarget($this->lng->txt(
'back'), $this->ctrl->getLinkTarget($this,
'listTables'));
97 require_once
'Modules/DataCollection/classes/Table/class.ilDclTableEditGUI.php';
99 $this->ctrl->forwardCommand($ilDclTableEditGUI);
102 case 'ildclfieldlistgui':
103 $this->tabs->clearTargets();
105 require_once
'Modules/DataCollection/classes/Fields/class.ilDclFieldListGUI.php';
107 $this->ctrl->forwardCommand($ilDclFieldListGUI);
110 case "ildclfieldeditgui":
111 $this->tabs->clearTargets();
113 require_once
"Modules/DataCollection/classes/Fields/class.ilDclFieldEditGUI.php";
115 $this->ctrl->forwardCommand($ilDclFieldEditGUI);
118 case 'ildcltableviewgui':
119 $this->tabs->clearTargets();
121 require_once
'Modules/DataCollection/classes/TableView/class.ilDclTableViewGUI.php';
123 $this->ctrl->forwardCommand($ilDclTableViewGUI);
138 $add_new->setPrimary(
true);
139 $add_new->setCaption(
"dcl_add_new_table");
140 $add_new->setUrl($this->ctrl->getLinkTargetByClass(
'ilDclTableEditGUI',
'create'));
141 $this->toolbar->addStickyItem($add_new);
144 $this->tpl->setContent($table_gui->getHTML());
149 $this->tabs->setBackTarget($this->lng->txt(
'dcl_tables'), $this->ctrl->getLinkTarget($this,
'listTables'));
150 $this->tabs->addTab(
'settings', $this->lng->txt(
'settings'), $this->ctrl->getLinkTargetByClass(
'ilDclTableEditGUI',
'edit'));
151 $this->tabs->addTab(
'fields', $this->lng->txt(
'dcl_list_fields'), $this->ctrl->getLinkTargetByClass(
'ilDclFieldListGUI',
'listFields'));
152 $this->tabs->addTab(
'tableviews', $this->lng->txt(
'dcl_tableviews'), $this->ctrl->getLinkTargetByClass(
'ilDclTableViewGUI'));
153 $this->tabs->setTabActive($active);
161 $comments =
$_POST[
'comments'];
162 $visible =
$_POST[
'visible'];
163 $orders =
$_POST[
'order'];
166 foreach (array_keys($orders) as $table_id) {
169 $table->setPublicCommentsEnabled(isset($comments[$table_id]));
170 $table->setIsVisible(isset($visible[$table_id]));
174 $this->ctrl->redirect($this);
186 $this->tabs->clearSubTabs();
188 $conf->setFormAction($this->ctrl->getFormAction($this));
189 $conf->setHeaderText($this->lng->txt(
'dcl_tables_confirm_delete'));
191 foreach ($tables as $table_id) {
194 $conf->setConfirm($this->lng->txt(
'delete'),
'deleteTables');
195 $conf->setCancel($this->lng->txt(
'cancel'),
'listTables');
196 $this->tpl->setContent($conf->getHTML());
205 foreach ($tables as $table_id) {
209 $this->ctrl->redirect($this,
'listTables');
221 $this->ctrl->redirect($this,
'listTables');
240 return $this->parent_obj->getDataCollectionObject();
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
getDataCollectionObject()
static getTableCache($table_id=0)
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
Class ilObjDataCollectionGUI.
__construct(ilObjDataCollectionGUI $a_parent_obj)
ilDclTableListGUI constructor.
executeCommand()
execute command
getRoleTitlesWithoutReadRightOnAnyStandardView()
static hasWriteAccess($ref, $user_id=0)
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Class ilDclTableListTableGUI.
checkTablesLeft($delete_count)
redirects if there are no tableviews left after deletion of {$delete_count} tableviews ...
confirmDeleteTables()
Confirm deletion of multiple fields.
if(empty($password)) $table
Class ilDclBaseFieldModel.
Confirmation screen class.