Definition at line 21 of file class.ilDclFieldListGUI.php.
◆ __construct()
Definition at line 36 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().
40 $this->
http = $DIC->http();
42 $this->table_id = $this->
http->wrapper()->query()->retrieve(
'table_id', $this->
refinery->kindlyTo()->int());
43 $locator = $DIC[
'ilLocator'];
44 $this->parent_obj = $a_parent_obj;
45 $this->obj_id = $a_parent_obj->
getObjId();
46 $this->
ctrl = $DIC->ctrl();
47 $this->
lng = $DIC->language();
48 $this->tpl = $DIC->ui()->mainTemplate();
49 $this->
tabs = $DIC->tabs();
50 $this->
toolbar = $DIC->toolbar();
51 $this->ui_factory = $DIC->ui()->factory();
52 $this->
renderer = $DIC->ui()->renderer();
54 $DIC->help()->setScreenId(
'dcl_fields');
56 $this->
ctrl->saveParameterByClass(ilDclTableEditGUI::class,
'table_id');
59 $this->
ctrl->getLinkTargetByClass(ilDclTableEditGUI::class,
'edit')
61 $this->tpl->setLocator();
64 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'permission_denied'),
true);
65 $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 137 of file class.ilDclFieldListGUI.php.
References ilDclCache\getTableCache(), ILIAS\FileDelivery\http(), listFields(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
139 $table_id = $this->
http->wrapper()->query()->retrieve(
'table_id', $this->
refinery->kindlyTo()->int());
142 $fields = $table->getFields();
144 $order = $this->
http->wrapper()->post()->retrieve(
150 foreach (array_keys($order) as $field_id) {
151 $order[$field_id] = $val;
156 if ($this->
http->wrapper()->post()->has(
"exportable")) {
157 $exportable = $this->
http->wrapper()->post()->retrieve(
159 $this->
refinery->kindlyTo()->dictOf(
160 $this->
refinery->kindlyTo()->string()
165 foreach ($fields as $field) {
166 $field->setExportable(array_key_exists($field->getId(), $exportable) && $exportable[$field->getId()] ===
"on");
167 $field->setOrder($order[$field->getId()]);
171 $table->reloadFields();
172 $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: