3 declare(strict_types=1);
38 bool $a_call_by_reference =
true,
39 bool $a_prepare_output =
true 45 $lng = $DIC->language();
52 $this->root_request = $DIC
57 $this->
help = $DIC->help();
68 $this->
ctrl->setParameter($this,
"ref_id", $this->ref_id);
71 $this->tabs_gui->addTab(
74 $this->
ctrl->getLinkTarget($this,
"")
79 $cmd = $this->
ctrl->getCmd();
80 $this->tabs_gui->addTarget(
82 $this->
ctrl->getLinkTarget($this,
"edit"),
96 $next_class = $this->
ctrl->getNextClass($this);
97 $cmd = $this->
ctrl->getCmd();
99 switch ($next_class) {
100 case strtolower(ilRepositoryTrashGUI::class):
102 $this->
ctrl->setReturn($this,
'trash');
103 $this->
ctrl->forwardCommand($ru);
107 case "ilcontainerpagegui":
111 $this->tpl->setContent($ret);
115 case 'ilpermissiongui':
117 $this->tabs_gui->activateTab(
'perm_settings');
119 $ret = $this->
ctrl->forwardCommand($perm_gui);
125 $this->content_style_gui->addCss(
132 case 'ilobjectcopygui':
135 $cp->setType(
'root');
136 $this->
ctrl->forwardCommand($cp);
139 case "ilobjectcontentstylesettingsgui":
143 $settings_gui = $this->content_style_gui
144 ->objectSettingsGUIForRefId(
148 $this->
ctrl->forwardCommand($settings_gui);
151 case "ilcommonactiondispatchergui":
153 $this->
ctrl->forwardCommand($gui);
156 case 'ilobjecttranslationgui':
161 $this->
ctrl->forwardCommand($transgui);
165 if ($cmd ===
"infoScreen") {
171 $this->
ctrl->redirectToURL(
"login.php?client_id=" .
CLIENT_ID .
"&cmd=force_login");
175 $this->content_style_gui->addCss(
198 $this->
ctrl->getLinkTargetByClass([
"ilcommonactiondispatchergui",
"iltagginggui"],
"",
"",
true,
false)
201 $ilTabs->activateTab(
"view_content");
202 parent::renderObject();
212 if (strtolower($this->root_request->getBaseClass()) ===
"iladministrationgui") {
213 parent::viewObject();
224 parent::setTitleAndDescription();
225 $this->tpl->setDescription(
"");
227 if ($this->
object->getTitle() ===
"ILIAS") {
228 $this->tpl->setTitle($lng->txt(
"repository"));
229 } elseif ($this->
object->getDescription() !==
"") {
230 $this->tpl->setDescription($this->
object->getDescription());
236 string $active_tab =
"settings_misc" 238 $this->tabs_gui->addSubTab(
240 $this->
lng->txt(
"settings"),
241 $this->
ctrl->getLinkTarget($this,
"edit")
244 $this->tabs_gui->addSubTab(
246 $this->
lng->txt(
"obj_multilinguality"),
247 $this->
ctrl->getLinkTargetByClass(
"ilobjecttranslationgui",
"")
251 $this->tabs_gui->activateTab(
"settings");
252 $this->tabs_gui->activateSubTab($active_tab);
279 $form = $obj_service->commonSettings()->legacyForm(
$form, $this->
object)->addTitleIconVisibility();
304 if ($form->checkInput()) {
310 if ($ilSetting->get(
'custom_icons')) {
313 $customIconFactory = $DIC[
'object.customicons.factory'];
314 $customIcon = $customIconFactory->getByObjId($this->
object->getId(), $this->
object->getType());
317 $fileData = (array) $form->getInput(
'cont_icon');
318 $item = $form->getItemByPostVar(
'cont_icon');
320 if ($item->getDeletionFlag()) {
321 $customIcon->remove();
324 if ($fileData[
'tmp_name']) {
325 $customIcon->saveFromHttpRequest();
330 $obj_service->commonSettings()->legacyForm($form, $this->
object)->saveTitleIconVisibility();
338 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
339 $this->
ctrl->redirect($this,
"edit");
344 $form->setValuesByPost();
345 $this->tpl->setContent($form->getHTML());
348 public static function _goto(
string $a_target): void
Class ilObjRootFolderGUI.
prepareOutput(bool $show_subobjects=true)
saveSortingSettings(ilPropertyFormGUI $form)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
GUI class for the workflow of copying objects.
__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...
static prepareJsLinks(string $redraw_url, string $notes_url, string $tags_url, ilGlobalTemplateInterface $tpl=null)
Insert js/ajax links into template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
loadLanguageModule(string $a_module)
Load language module.
setEditTabs(string $active_tab="settings_misc")
static _goto(string $a_target)
static _lookupContainerSetting(int $a_id, string $a_keyword, string $a_default_value=null)
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setScreenIdComponent(string $a_comp)
Repository GUI Utilities.
static _recordWriteEvent(int $obj_id, int $usr_id, string $action, ?int $parent_obj_id=null)
Records a write event.
StandardGUIRequest $root_request
saveListPresentation(ilPropertyFormGUI $form)
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
initListPresentationForm(ilPropertyFormGUI $form)
Add list presentation settings to form.
initSortingForm(ilPropertyFormGUI $form, array $a_sorting_settings)
Append sorting settings to property form.
__construct(Container $dic, ilPlugin $plugin)
updateObject()
updates object entry in object_data
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.
static _catchupWriteEvents(int $obj_id, int $usr_id, ?string $timestamp=null)
Catches up with all write events which occured before the specified timestamp.
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
showCustomIconsEditing( $input_colspan=1, ilPropertyFormGUI $form=null, $as_section=true)
show edit section of custom icons for container
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.