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(), renderer(), 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(), 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());
86 switch ($next_class) {
87 case 'ildcltableeditgui':
88 $this->
tabs->clearTargets();
89 if ($cmd !=
'create') {
92 $this->
tabs->setBackTarget(
93 $this->
lng->txt(
'back'),
94 $this->
ctrl->getLinkTarget($this,
'listTables')
98 $this->
ctrl->forwardCommand($ilDclTableEditGUI);
101 case 'ildclfieldlistgui':
102 $this->
tabs->clearTargets();
105 $this->
ctrl->forwardCommand($ilDclFieldListGUI);
108 case "ildclfieldeditgui":
109 $this->
tabs->clearTargets();
112 $this->
ctrl->forwardCommand($ilDclFieldEditGUI);
115 case 'ildcltableviewgui':
116 $this->
tabs->clearTargets();
119 $this->
ctrl->forwardCommand($ilDclTableViewGUI);
123 $this->
ctrl->clearParameterByClass(ilObjDataCollectionGUI::class,
'table_id');
ilDclTableViewGUI: ilDclTableViewEditGUI
static http()
Fetches the global http state from ILIAS.
◆ getActions()
ilDclTableListGUI::getActions |
( |
ilDclTable |
$table | ) |
|
|
protected |
- Returns
- Shy[]
Definition at line 181 of file class.ilDclTableListGUI.php.
References ILIAS\Repository\ctrl(), ilDclTable\getId(), ilDclTable\getOrder(), and ILIAS\Repository\lng().
Referenced by getItems().
183 $this->
ctrl->setParameterByClass(ilObjDataCollectionGUI::class,
'table_id', $table->
getId());
186 $actions[] = $this->ui_factory->button()->shy(
187 $this->
lng->txt(
'settings'),
188 $this->
ctrl->getLinkTargetByClass(ilDclTableEditGUI::class,
'edit'),
191 $actions[] = $this->ui_factory->button()->shy(
192 $this->
lng->txt(
'dcl_list_fields'),
193 $this->
ctrl->getLinkTargetByClass(ilDclFieldListGUI::class,
'listFields')
196 $actions[] = $this->ui_factory->button()->shy(
197 $this->
lng->txt(
'dcl_tableviews'),
198 $this->
ctrl->getLinkTargetByClass(ilDclTableViewGUI::class,
'show')
201 $actions[] = $this->ui_factory->button()->shy(
202 $this->
lng->txt(
'delete'),
203 $this->
ctrl->getLinkTargetByClass(ilDclTableEditGUI::class,
'confirmDelete')
207 $actions[] = $this->ui_factory->button()->shy(
208 $this->
lng->txt(
'set_as_default'),
209 $this->
ctrl->getLinkTargetByClass(ilDclTableEditGUI::class,
'setAsDefault')
◆ getDataCollectionObject()
ilDclTableListGUI::getDataCollectionObject |
( |
| ) |
|
◆ getItems()
ilDclTableListGUI::getItems |
( |
| ) |
|
|
protected |
Definition at line 147 of file class.ilDclTableListGUI.php.
References ILIAS\Repository\ctrl(), getActions(), and ILIAS\Repository\lng().
Referenced by listTables().
150 foreach ($this->parent_obj->getDataCollectionObject()->getTables() as $table) {
152 $this->
ctrl->setParameterByClass(ilObjDataCollectionGUI::class,
'table_id', $table->getId());
153 $item = $this->ui_factory->item()->standard(
154 $this->ui_factory->link()->standard(
156 $this->
ctrl->getLinkTargetByClass(ilDclFieldListGUI::class,
'listFields')
160 $this->
lng->txt(
'visible') => $this->
lng->txt($table->getIsVisible() ?
'yes' :
'no'),
161 $this->
lng->txt(
'comments') => $this->
lng->txt($table->getPublicCommentsEnabled() ?
'active' :
'inactive')
164 $this->ui_factory->dropdown()->standard(
169 if ($table->getOrder() === 10) {
170 $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: