47 $tpl = $DIC->ui()->mainTemplate();
48 $this->
ctrl = $DIC->ctrl();
49 $this->dcl_gui_object = $a_dcl_object;
50 $this->
lng = $DIC->language();
51 $this->
http = $DIC->http();
53 $this->main_tpl = $DIC->ui()->mainTemplate();
54 $this->ui_factory = $DIC->ui()->factory();
55 $this->
renderer = $DIC->ui()->renderer();
58 !$this->
http->wrapper()->query()->has(
'table_id') ||
59 !$this->
http->wrapper()->query()->has(
'tableview_id')
61 $this->main_tpl->setOnScreenMessage($this->main_tpl::MESSAGE_TYPE_FAILURE,
'Table not found',
true);
62 $this->
ctrl->redirectByClass(ilDclRecordListGUI::class,
"show");
65 $this->tableview_id = $this->
http->wrapper()->query()->retrieve(
'tableview_id', $this->
refinery->kindlyTo()->int());
66 $table_id = $this->
http->wrapper()->query()->retrieve(
'table_id', $this->
refinery->kindlyTo()->int());
70 $this->record_id =
null;
71 if ($this->
http->wrapper()->query()->has(
'record_id')) {
72 $this->record_id = $this->
http->wrapper()->query()->retrieve(
76 } elseif ($this->
http->wrapper()->query()->has(
'record_pos')) {
78 $pos = $this->
http->wrapper()->query()->retrieve(
'record_pos', $this->
refinery->kindlyTo()->int());
79 if ($record_ids === [] || !array_key_exists($pos, $record_ids)) {
80 $this->
ctrl->redirectToURL($this->
http->request()->getServerParams()[
'HTTP_REFERER']);
82 $this->record_id = $record_ids[$pos];
84 if ($this->
http->wrapper()->post()->has(
'record_id')) {
85 $this->record_id = $this->
http->wrapper()->post()->retrieve(
91 if ($this->record_id) {
93 if (!$this->record_obj->hasPermissionToView($this->dcl_gui_object->getRefId())) {
94 $this->main_tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'dcl_msg_no_perm_view'),
true);
95 $this->
ctrl->redirectByClass(ilDclRecordListGUI::class,
"show");
100 $tpl->setCurrentBlock(
"SyntaxStyle");
102 $tpl->parseCurrentBlock();
104 $tpl->setCurrentBlock(
"ContentStyle");
106 $tpl->parseCurrentBlock();
109 $repId = $this->dcl_gui_object->getDataCollectionObject()->getId();
112 $this->commentGUI->enablePublicNotes();
113 $this->commentGUI->enablePublicNotesDeletion();
114 $this->
ctrl->setParameterByClass(ilCommentGUI::class,
"record_id", $this->record_id);
115 $this->
ctrl->setParameterByClass(ilCommentGUI::class,
"rep_id", $repId);
119 if ($this->
http->wrapper()->query()->has(
'disable_paging')
120 && $this->
http->wrapper()->query()->retrieve(
'disable_paging', $this->
refinery->kindlyTo()->bool())) {
121 $this->is_enabled_paging =
false;
static get(string $a_var)
loadSession()
If we come from a goto Link we need to build up the session data.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
static getTableCache(?int $table_id=null)
static getSyntaxStylePath()
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
static getRecordCache(?int $record_id)