19 declare(strict_types=1);
55 $this->
renderer = $DIC->ui()->renderer();
56 $this->ui_factory = $DIC->ui()->factory();
58 $this->
lng = $DIC->language();
59 $this->
access = $DIC->access();
60 $this->
ctrl = $DIC->ctrl();
61 $this->
http = $DIC->http();
66 protected function createTable(
69 $this->
lng->loadLanguageModule(
'search');
70 $this->
lng->loadLanguageModule(
'meta');
73 'icon' => $this->ui_factory->table()->column()->statusIcon(($this->
lng->txt(
'icon')))
74 ->withIsSortable(
false)
75 ->withIsOptional(
true),
76 'title' => $this->ui_factory->table()->column()->text($this->
lng->txt(
'search_title_description')),
77 'applicable' => $this->ui_factory->table()->column()->text($this->
lng->txt(
'didactic_applicable_for')),
78 'scope' => $this->ui_factory->table()->column()->text($this->
lng->txt(
'didactic_scope')),
79 'enabled' => $this->ui_factory->table()->column()->statusIcon($this->
lng->txt(
'active'))
87 $query_params_namespace = [
'didactic_template'];
90 ILIAS_HTTP_PATH .
'/' . $this->
ctrl->getLinkTargetByClass(
91 ilDidacticTemplateSettingsGUI::class,
96 list($url_builder, $action_parameter_token, $row_id_token) = $url_builder->acquireParameters(
97 $query_params_namespace,
103 if ($this->
access->checkAccess(
'write',
'', $this->ref_id)) {
105 'settings' => $this->ui_factory->table()->action()->single(
106 $this->
lng->txt(
'settings'),
107 $url_builder->withParameter($action_parameter_token,
'editTemplate'),
110 'copy' => $this->ui_factory->table()->action()->single(
111 $this->
lng->txt(
'copy'),
112 $url_builder->withParameter($action_parameter_token,
'copyTemplate'),
115 'didactic_do_export' => $this->ui_factory->table()->action()->single(
116 $this->
lng->txt(
'didactic_do_export'),
117 $url_builder->withParameter($action_parameter_token,
'exportTemplate'),
120 'confirmDelete' => $this->ui_factory->table()->action()->multi(
121 $this->
lng->txt(
'delete'),
122 $url_builder->withParameter($action_parameter_token,
'confirmDelete'),
126 'activateTemplates' => $this->ui_factory->table()->action()->multi(
127 $this->
lng->txt(
'activate'),
128 $url_builder->withParameter($action_parameter_token,
'activateTemplates'),
131 'deactivateTemplates' => $this->ui_factory->table()->action()->multi(
132 $this->
lng->txt(
'deactivate'),
133 $url_builder->withParameter($action_parameter_token,
'deactivateTemplates'),
139 return $this->ui_factory->table()->data(
141 $this->
lng->txt(
'didactic_available_templates'),
144 ->withActions($actions)
145 ->withRequest($this->
http->request());
152 $this->createTable($data_retrieval)
Description of ilDidacticTemplateSettingsTableGUI.
RefineryFactory $refinery
DataFactory $data_factory
static http()
Fetches the global http state from ILIAS.
__construct(ilDidacticTemplateSettingsGUI $didactic_template_settings_gui, int $ref_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getHTML(ilDidacticTemplateSettingsTableDataRetrieval $data_retrieval)
Settings for a single didactic template.
ilDidacticTemplateSettingsGUI $didactic_template_settings_gui