ilDclTableListGUI: ilDclFieldListGUI, ilDclFieldEditGUI, ilDclTableViewGUI, ilDclTableEditGUI
More...
◆ __construct()
Definition at line 39 of file class.ilDclTableListGUI.php.
References $DIC, checkAccess(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().
42 $main_tpl = $DIC->ui()->mainTemplate();
43 $this->
ctrl = $DIC->ctrl();
44 $this->
lng = $DIC->language();
45 $this->tpl = $DIC->ui()->mainTemplate();
46 $this->
tabs = $DIC->tabs();
47 $this->
toolbar = $DIC->toolbar();
48 $this->
http = $DIC->http();
50 $this->ui_factory = $DIC->ui()->factory();
51 $this->renderer = $DIC->ui()->renderer();
53 $this->
tabs->setSetupMode(
true);
54 $DIC->help()->setScreenId(
'dcl_tables');
56 $this->parent_obj = $a_parent_obj;
59 $main_tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'permission_denied'),
true);
60 $this->
ctrl->redirectByClass(ilDclRecordListGUI::class,
'listRecords');
static http()
Fetches the global http state from ILIAS.
◆ checkAccess()
| ilDclTableListGUI::checkAccess |
( |
| ) |
|
|
protected |
◆ executeCommand()
| ilDclTableListGUI::executeCommand |
( |
| ) |
|
execute command
Definition at line 77 of file class.ilDclTableListGUI.php.
References $DIC, $ref_id, ILIAS\Repository\ctrl(), getObjId(), ilDclTableHelper\getRoleTitlesWithoutReadRightOnAnyStandardView(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), setTabs(), and ILIAS\Repository\tabs().
80 $cmd = $this->
ctrl->getCmd(
'listTables');
82 $next_class = $this->
ctrl->getNextClass($this);
84 $ref_id = $this->
http->wrapper()->query()->retrieve(
'ref_id', $this->
refinery->kindlyTo()->int());
89 $DIC->rbac()->review(),
95 if (count($role_titles) > 0) {
96 $this->tpl->setOnScreenMessage(
98 $this->
lng->txt(
'dcl_rbac_roles_without_read_access_on_any_standard_view') .
" " . implode(
105 switch ($next_class) {
106 case 'ildcltableeditgui':
107 $this->
tabs->clearTargets();
108 if ($cmd !=
'create') {
111 $this->
tabs->setBackTarget(
112 $this->
lng->txt(
'back'),
113 $this->
ctrl->getLinkTarget($this,
'listTables')
117 $this->
ctrl->forwardCommand($ilDclTableEditGUI);
120 case 'ildclfieldlistgui':
121 $this->
tabs->clearTargets();
124 $this->
ctrl->forwardCommand($ilDclFieldListGUI);
127 case "ildclfieldeditgui":
128 $this->
tabs->clearTargets();
131 $this->
ctrl->forwardCommand($ilDclFieldEditGUI);
134 case 'ildcltableviewgui':
135 $this->
tabs->clearTargets();
138 $this->
ctrl->forwardCommand($ilDclTableViewGUI);
142 $this->
ctrl->clearParameterByClass(ilObjDataCollectionGUI::class,
'table_id');
ilDclTableViewGUI: ilDclTableViewEditGUI
static http()
Fetches the global http state from ILIAS.
getRoleTitlesWithoutReadRightOnAnyStandardView()
◆ getActions()
| ilDclTableListGUI::getActions |
( |
ilDclTable |
$table | ) |
|
|
protected |
- Returns
- Shy[]
Definition at line 200 of file class.ilDclTableListGUI.php.
References ILIAS\Repository\ctrl(), ilDclTable\getId(), ilDclTable\getOrder(), and ILIAS\Repository\lng().
Referenced by getItems().
202 $this->
ctrl->setParameterByClass(ilObjDataCollectionGUI::class,
'table_id', $table->
getId());
205 $actions[] = $this->ui_factory->button()->shy(
206 $this->
lng->txt(
'settings'),
207 $this->
ctrl->getLinkTargetByClass(ilDclTableEditGUI::class,
'edit'),
210 $actions[] = $this->ui_factory->button()->shy(
211 $this->
lng->txt(
'dcl_list_fields'),
212 $this->
ctrl->getLinkTargetByClass(ilDclFieldListGUI::class,
'listFields')
215 $actions[] = $this->ui_factory->button()->shy(
216 $this->
lng->txt(
'dcl_tableviews'),
217 $this->
ctrl->getLinkTargetByClass(ilDclTableViewGUI::class,
'show')
220 $actions[] = $this->ui_factory->button()->shy(
221 $this->
lng->txt(
'delete'),
222 $this->
ctrl->getLinkTargetByClass(ilDclTableEditGUI::class,
'confirmDelete')
226 $actions[] = $this->ui_factory->button()->shy(
227 $this->
lng->txt(
'set_as_default'),
228 $this->
ctrl->getLinkTargetByClass(ilDclTableEditGUI::class,
'setAsDefault')
◆ getDataCollectionObject()
| ilDclTableListGUI::getDataCollectionObject |
( |
| ) |
|
◆ getItems()
| ilDclTableListGUI::getItems |
( |
| ) |
|
|
protected |
Definition at line 166 of file class.ilDclTableListGUI.php.
References ILIAS\Repository\ctrl(), getActions(), and ILIAS\Repository\lng().
Referenced by listTables().
169 foreach ($this->parent_obj->getDataCollectionObject()->getTables() as $table) {
171 $this->
ctrl->setParameterByClass(ilObjDataCollectionGUI::class,
'table_id', $table->getId());
172 $item = $this->ui_factory->item()->standard(
173 $this->ui_factory->link()->standard(
175 $this->
ctrl->getLinkTargetByClass(ilDclFieldListGUI::class,
'listFields')
179 $this->
lng->txt(
'visible') => $this->
lng->txt($table->getIsVisible() ?
'yes' :
'no'),
180 $this->
lng->txt(
'comments') => $this->
lng->txt($table->getPublicCommentsEnabled() ?
'active' :
'inactive')
183 $this->ui_factory->dropdown()->standard(
188 if ($table->getOrder() === 10) {
189 $item = $item->withDescription($this->
lng->txt(
'default'));
getActions(ilDclTable $table)
◆ getObjId()
| ilDclTableListGUI::getObjId |
( |
| ) |
|
◆ getRefId()
| ilDclTableListGUI::getRefId |
( |
| ) |
|
◆ listTables()
| ilDclTableListGUI::listTables |
( |
| ) |
|
◆ save()
| ilDclTableListGUI::save |
( |
| ) |
|
|
protected |
◆ setTabs()
| ilDclTableListGUI::setTabs |
( |
string |
$active | ) |
|
|
protected |
◆ $ctrl
| ilCtrl ilDclTableListGUI::$ctrl |
|
protected |
◆ $http
| ILIAS HTTP Services ilDclTableListGUI::$http |
|
protected |
◆ $lng
◆ $parent_obj
◆ $refinery
| ILIAS Refinery Factory ilDclTableListGUI::$refinery |
|
protected |
◆ $renderer
| ILIAS UI Renderer ilDclTableListGUI::$renderer |
|
protected |
◆ $tabs
◆ $toolbar
◆ $tpl
◆ $ui_factory
| ILIAS UI Factory ilDclTableListGUI::$ui_factory |
|
protected |
The documentation for this class was generated from the following file: