3 declare(strict_types=1);
45 ->retrieve(
"ref_id",
$container->refinery()->kindlyTo()->int());
50 $language->loadLanguageModule(
"tala");
69 $cmd = $this->
ctrl->getCmd();
70 $next_class = $this->
ctrl->getNextClass($this);
73 switch ($next_class) {
74 case 'ilpermissiongui':
75 parent::prepareOutput();
76 $this->tabs_gui->activateTab(
'perm_settings');
78 $this->
ctrl->forwardCommand($ilPermissionGUI);
80 case 'ilinfoscreengui':
81 parent::prepareOutput();
82 $this->tabs_gui->activateTab(
'info_short');
84 $this->
ctrl->forwardCommand($ilInfoScreenGUI);
86 case strtolower(ilObjTalkTemplateGUI::class):
88 $ilTalkTemplateGUI->setAdminMode($this->admin_mode);
89 $this->
ctrl->setParameter(
94 $this->
tabs->setBackTarget(
95 $this->
lng->txt(
'obj_tala'),
96 $this->
ctrl->getLinkTarget($this,
'view')
98 $this->
ctrl->clearParameters($this);
99 $this->
ctrl->forwardCommand($ilTalkTemplateGUI);
102 parent::executeCommand();
111 # all possible create permissions 112 parent::setTitleAndDescription();
113 $this->tpl->setTitle($this->
lng->txt(
"objs_tala"));
114 $this->tpl->setDescription($this->
lng->txt(
"objs_tala"));
116 $this->tpl->setTitleIcon(
"", $this->
lng->txt(
"obj_" . $this->object->getType()));
123 $gui->setCreationUrl($this->
ctrl->getLinkTargetByClass(strtolower(ilObjTalkTemplateGUI::class),
'create'));
130 $this->tabs_gui->activateTab(
'view_content');
132 if (!$this->rbacsystem->checkAccess(
"read", $this->getRefId())) {
133 if ($this->rbacsystem->checkAccess(
"visible", $this->getRefId())) {
134 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"msg_no_perm_read"));
135 $this->
ctrl->redirectByClass(strtolower(ilInfoScreenGUI::class),
'');
138 $this->
ilias->raiseError($this->
lng->txt(
"msg_no_perm_read"), $this->
ilias->error_obj->WARNING);
145 if (!in_array(
SYSTEM_ROLE_ID, $this->rbacreview->assignedRoles($this->user->getId()),
true)) {
146 $this->tpl->setOnScreenMessage(
148 $this->
lng->txt(
"tala_no_content_without_admin_info")
152 parent::renderObject();
174 $read_access_ref_id = $this->rbacsystem->checkAccess(
'visible,read', $this->
object->getRefId());
175 if ($read_access_ref_id) {
176 $this->tabs_gui->addTab(
'view_content', $this->
lng->txt(
"content"), $this->
ctrl->getLinkTarget($this,
"view"));
177 $this->tabs_gui->addTab(
"info_short",
"Info", $this->
ctrl->getLinkTargetByClass(strtolower(ilInfoScreenGUI::class),
"showSummary"));
179 if ($this->tree->getSavedNodeData($this->object->getRefId())) {
180 $this->tabs_gui->addTarget(
'trash', $this->
ctrl->getLinkTarget($this,
'trash'),
'trash', get_class($this));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitleAndDescription()
called by prepare output
__construct($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Parent class of all container content GUIs.
getItemPresentation( $include_empty_blocks=true, ?string $lang=null)
Class ilObjTalkTemplateGUI.
const MODE_ADMINISTRATION
header include for all ilias files.
isActiveAdministrationPanel()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const STD_FIELD_OBJECT_TYPE
getContentGUI()
Filter the view by talk templates because the talk series objects are also children of the talk templ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS Container InternalGUIService $gui
Class ilContainerGUI This is a base GUI class for all container objects in ILIAS: root folder...
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.