3declare(strict_types=1);
47 ->retrieve(
"ref_id",
$container->refinery()->kindlyTo()->int());
59 $cmd = $this->
ctrl->getCmd();
60 $next_class = $this->
ctrl->getNextClass($this);
62 if (!$next_class && ($cmd ===
'create' || $cmd ===
'save')) {
66 switch ($next_class) {
67 case 'ilinfoscreengui':
68 parent::prepareOutput();
69 $this->tabs_gui->activateTab(
'info_short');
71 $this->
ctrl->forwardCommand($ilInfoScreenGUI);
74 parent::executeCommand();
80 $this->tabs_gui->activateTab(
'view_content');
86 $this->object->getId(),
91 $md->setPropertyForm(
$form);
97 $item->__call(
'setValue', [
'']);
98 $item->__call(
'setDisabled', [
true]);
100 if (method_exists($item,
'setDisabled')) {
102 $item->setDisabled(
true);
111 $form = parent::initEditForm();
119 $online->setInfo($this->
lng->txt(
'talt_activation_online_info'));
122 parent::initEditCustomForm($a_form);
127 $a_values[
'activation_online'] = !boolval($this->
object->getOfflineStatus());
129 parent::getEditFormCustomValues($a_values);
135 $header->setParentForm(
$form);
136 $header->setTitle(
"Metadata");
141 parent::addExternalEditFormCustom(
$form);
146 $this->
object->setOfflineStatus(!boolval($a_form->
getInput(
'activation_online')));
149 $md->saveSelection();
151 parent::updateCustom($a_form);
159 $this->
ctrl->redirectByClass(strtolower(ilInfoScreenGUI::class),
"showSummary");
164 $read_access_ref_id = $this->rbacsystem->checkAccess(
'visible,read', $this->
object->getRefId());
165 if ($read_access_ref_id) {
166 $this->tabs_gui->addTab(
'view_content', $this->
lng->txt(
"content"), $this->ctrl->getLinkTarget($this,
"view"));
167 $this->tabs_gui->addTab(
"info_short",
"Info", $this->
ctrl->getLinkTargetByClass(strtolower(ilInfoScreenGUI::class),
"showSummary"));
170 if ($this->rbacsystem->checkAccess(
'write', $this->object->getRefId(), $this->type)) {
171 $this->tabs_gui->addTab(
'settings', $this->
lng->txt(
"settings"), $this->ctrl->getLinkTarget($this,
"edit"));
189 parent::addAdminLocatorItems(
true);
191 $this->
ctrl->setParameterByClass(
192 strtolower(ilObjTalkTemplateAdministrationGUI::class),
197 $this->
lng->txt(
'obj_tala'),
198 $this->ctrl->getLinkTargetByClass(
199 ilObjTalkTemplateAdministrationGUI::class,
200 ControlFlowCommand::INDEX
203 $this->
ctrl->clearParameterByClass(
204 strtolower(ilObjTalkTemplateAdministrationGUI::class),
212 $this->ctrl->getLinkTargetByClass([
213 strtolower(ilAdministrationGUI::class),
214 strtolower(ilObjTalkTemplateAdministrationGUI::class),
215 strtolower(self::class),
216 ], ControlFlowCommand::INDEX)
225 $this->object->getId(),
230 $md->setRefId($this->
object->getRefId());
231 $md->setPropertyForm(
$form);
235 public static function _goto(
string $refId): void
244 $container->language()->txt(
"permission_denied"),
247 $container->ctrl()->redirectByClass(ilDashboardGUI::class,
"");
249 $container->ctrl()->setParameterByClass(strtolower(self::class),
'ref_id',
$refId);
251 strtolower(ilAdministrationGUI::class),
252 strtolower(ilObjTalkTemplateAdministrationGUI::class),
253 strtolower(self::class),
254 ], ControlFlowCommand::INDEX);
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Class ilContainerGUI This is a base GUI class for all container objects in ILIAS: root folder,...
loadLanguageModule(string $a_module)
Load language module.
Class ilObjTalkTemplateGUI.
updateCustom(ilPropertyFormGUI $a_form)
Insert custom update form values into object.
infoScreenObject()
infoScreen redirect handling of ObjListGUI
initCreationForms(string $new_type)
Init creation forms.
getAdminTabs()
administration tabs show only permissions and trash folder
initEditCustomForm(ilPropertyFormGUI $a_form)
Add custom fields to update form.
initMetaDataForm(ilPropertyFormGUI $form)
getEditFormCustomValues(array &$a_values)
Add values to custom edit fields.
addAdminLocatorItems(bool $do_not_add_object=false)
should be overwritten to add object specific items (repository items are preloaded)
getTabs()
@abstract overwrite in derived GUI class of your object type
addExternalEditFormCustom(ilPropertyFormGUI $form)
__construct($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
setCreationMode(bool $mode=true)
if true, a creation screen is displayed the current [ref_id] don't belong to the current class!...
viewObject()
viewObject container presentation for "administration -> repository, trash, permissions"
initCreateForm(string $new_type)
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc