19declare(strict_types=1);
45 ->retrieve(
"ref_id",
$container->refinery()->kindlyTo()->int());
50 $language->loadLanguageModule(
"tala");
51 $language->loadLanguageModule(
'etal');
70 $cmd = $this->
ctrl->getCmd();
71 $next_class = $this->
ctrl->getNextClass($this);
74 switch ($next_class) {
75 case 'ilpermissiongui':
76 parent::prepareOutput();
77 $this->tabs_gui->activateTab(
'perm_settings');
79 $this->
ctrl->forwardCommand($ilPermissionGUI);
81 case 'ilinfoscreengui':
82 parent::prepareOutput();
83 $this->tabs_gui->activateTab(
'info_short');
85 $this->
ctrl->forwardCommand($ilInfoScreenGUI);
87 case strtolower(ilObjTalkTemplateGUI::class):
89 $ilTalkTemplateGUI->setAdminMode($this->admin_mode);
90 $this->
ctrl->setParameter(
95 $this->
tabs->setBackTarget(
96 $this->
lng->txt(
'obj_tala'),
97 $this->ctrl->getLinkTarget($this,
'view')
99 $this->
ctrl->clearParameters($this);
100 $this->
ctrl->forwardCommand($ilTalkTemplateGUI);
103 parent::executeCommand();
112 # all possible create permissions
113 parent::setTitleAndDescription();
114 $this->tpl->setTitle($this->
lng->txt(
"objs_tala"));
115 $this->tpl->setDescription($this->
lng->txt(
"objs_tala"));
117 $this->tpl->setTitleIcon(
"", $this->
lng->txt(
"obj_" . $this->object->getType()));
123 if (empty($subtypes)) {
129 array_keys($subtypes),
130 $this->
lng->txt(
'other'),
139 $subtypes = $this->obj_definition->getCreatableSubObjects(
142 $this->object->getRefId()
148 fn($key) => $this->
access->checkAccess(
'create_' . $key,
'', $this->ref_id, $this->type),
155 $this->tabs_gui->activateTab(
'view_content');
157 if (!$this->rbacsystem->checkAccess(
"read", $this->getRefId())) {
158 if ($this->rbacsystem->checkAccess(
"visible", $this->getRefId())) {
159 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"msg_no_perm_read"));
160 $this->
ctrl->redirectByClass(strtolower(ilInfoScreenGUI::class),
'');
163 $this->
ilias->raiseError($this->
lng->txt(
"msg_no_perm_read"), $this->ilias->error_obj->WARNING);
170 if (!in_array(
SYSTEM_ROLE_ID, $this->rbacreview->assignedRoles($this->user->getId()),
true)) {
171 $this->tpl->setOnScreenMessage(
173 $this->
lng->txt(
"tala_no_content_without_admin_info")
177 parent::renderObject();
208 $read_access_ref_id = $this->rbacsystem->checkAccess(
'visible,read', $this->
object->getRefId());
209 if ($read_access_ref_id) {
210 $this->tabs_gui->addTab(
'view_content', $this->
lng->txt(
"content"), $this->ctrl->getLinkTarget($this,
"view"));
211 $this->tabs_gui->addTab(
213 $this->
lng->txt(
'tab_info'),
214 $this->ctrl->getLinkTargetByClass([
215 strtolower(self::class),
216 strtolower(ilInfoScreenGUI::class)
220 if ($this->tree->getSavedNodeData($this->object->getRefId())) {
221 $this->tabs_gui->addTarget(
'trash', $this->
ctrl->getLinkTarget($this,
'trash'),
'trash', get_class($this));
Render add new item selector.
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.
const STD_FIELD_OBJECT_TYPE
Class ilContainerGUI This is a base GUI class for all container objects in ILIAS: root folder,...
ILIAS Container InternalGUIService $gui
getItemPresentation( $include_empty_blocks=true, ?string $lang=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjTalkTemplateAdministrationGUI GUI class.
returnObject()
Not completely sure why this is necessary, after creation of talk templates the redirect leads here.
getContentGUI()
Filter the view by talk templates because the talk series objects are also children of the talk templ...
getCreatableObjectTypes()
isActiveAdministrationPanel()
showPossibleSubObjects()
show possible sub objects (pull down menu)
getTabs()
@abstract overwrite in derived GUI class of your object type
viewObject()
viewObject container presentation for "administration -> repository, trash, permissions"
setTitleAndDescription()
called by prepare output
Class ilObjTalkTemplateGUI.
const MODE_ADMINISTRATION
buildGroup(string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ilObjForumAdministration.