Definition at line 21 of file class.ilDclFieldListGUI.php.
◆ __construct()
Constructor.
Definition at line 39 of file class.ilDclFieldListGUI.php.
References $DIC, checkAccess(), ILIAS\Repository\ctrl(), ilDclTableListGUI\getObjId(), ilDclCache\getTableCache(), ILIAS\GlobalScreen\Scope\Footer\Factory\getTitle(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), renderer(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().
43 $this->
http = $DIC->http();
45 $this->table_id = $this->
http->wrapper()->query()->retrieve(
'table_id', $this->
refinery->kindlyTo()->int());
46 $locator = $DIC[
'ilLocator'];
47 $this->parent_obj = $a_parent_obj;
48 $this->obj_id = $a_parent_obj->
getObjId();
49 $this->
ctrl = $DIC->ctrl();
50 $this->
lng = $DIC->language();
51 $this->tpl = $DIC->ui()->mainTemplate();
52 $this->
tabs = $DIC->tabs();
53 $this->
toolbar = $DIC->toolbar();
54 $this->ui_factory = $DIC->ui()->factory();
55 $this->
renderer = $DIC->ui()->renderer();
57 $DIC->help()->setScreenId(
'dcl_fields');
59 $this->
ctrl->saveParameterByClass(ilDclTableEditGUI::class,
'table_id');
62 $this->
ctrl->getLinkTargetByClass(ilDclTableEditGUI::class,
'edit')
64 $this->tpl->setLocator();
67 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'permission_denied'),
true);
68 $this->
ctrl->redirectByClass(ilDclRecordListGUI::class,
'listRecords');
static http()
Fetches the global http state from ILIAS.
static getTableCache(?int $table_id=null)
◆ checkAccess()
ilDclFieldListGUI::checkAccess |
( |
| ) |
|
|
protected |
◆ deleteFields()
ilDclFieldListGUI::deleteFields |
( |
| ) |
|
◆ executeCommand()
ilDclFieldListGUI::executeCommand |
( |
| ) |
|
◆ getDataCollectionObject()
ilDclFieldListGUI::getDataCollectionObject |
( |
| ) |
|
◆ getTableId()
ilDclFieldListGUI::getTableId |
( |
| ) |
|
◆ listFields()
ilDclFieldListGUI::listFields |
( |
| ) |
|
◆ save()
ilDclFieldListGUI::save |
( |
| ) |
|
Definition at line 140 of file class.ilDclFieldListGUI.php.
References ilDclCache\getTableCache(), ILIAS\FileDelivery\http(), listFields(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
142 $table_id = $this->
http->wrapper()->query()->retrieve(
'table_id', $this->
refinery->kindlyTo()->int());
145 $fields = $table->getFields();
147 $order = $this->
http->wrapper()->post()->retrieve(
153 foreach (array_keys($order) as $field_id) {
154 $order[$field_id] = $val;
159 if ($this->
http->wrapper()->post()->has(
"exportable")) {
160 $exportable = $this->
http->wrapper()->post()->retrieve(
162 $this->
refinery->kindlyTo()->dictOf(
163 $this->
refinery->kindlyTo()->string()
168 foreach ($fields as $field) {
169 $field->setExportable(array_key_exists($field->getId(), $exportable) && $exportable[$field->getId()] ===
"on");
170 $field->setOrder($order[$field->getId()]);
174 $table->reloadFields();
175 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"dcl_table_settings_saved"));
static http()
Fetches the global http state from ILIAS.
static getTableCache(?int $table_id=null)
◆ $ctrl
ilCtrl ilDclFieldListGUI::$ctrl |
|
protected |
◆ $http
ILIAS HTTP Services ilDclFieldListGUI::$http |
|
protected |
◆ $lng
◆ $obj_id
int ilDclFieldListGUI::$obj_id |
|
protected |
◆ $parent_obj
◆ $refinery
ILIAS Refinery Factory ilDclFieldListGUI::$refinery |
|
protected |
◆ $renderer
ILIAS UI Renderer ilDclFieldListGUI::$renderer |
|
protected |
◆ $table_id
int ilDclFieldListGUI::$table_id |
|
protected |
◆ $tabs
◆ $toolbar
◆ $tpl
◆ $ui_factory
ILIAS UI Factory ilDclFieldListGUI::$ui_factory |
|
protected |
The documentation for this class was generated from the following file: