19 declare(strict_types=1);
42 bool $a_call_by_reference =
true,
43 bool $a_prepare_output =
true 49 $lng = $DIC->language();
56 $this->root_request = $DIC
61 $this->
help = $DIC->help();
72 $this->
ctrl->setParameter($this,
"ref_id", $this->ref_id);
75 $this->tabs_gui->addTab(
78 $this->
ctrl->getLinkTarget($this,
"")
83 $cmd = $this->
ctrl->getCmd();
84 $this->tabs_gui->addTarget(
86 $this->
ctrl->getLinkTarget($this,
"edit"),
100 $next_class = $this->
ctrl->getNextClass($this);
101 $cmd = $this->
ctrl->getCmd();
103 switch ($next_class) {
104 case strtolower(ilRepositoryTrashGUI::class):
106 $this->
ctrl->setReturn($this,
'trash');
107 $this->
ctrl->forwardCommand($ru);
111 case "ilcontainerpagegui":
115 $this->tpl->setContent($ret);
119 case 'ilpermissiongui':
121 $this->tabs_gui->activateTab(
'perm_settings');
123 $ret = $this->
ctrl->forwardCommand($perm_gui);
129 $this->content_style_gui->addCss(
136 case 'ilobjectcopygui':
139 $cp->setType(
'root');
140 $this->
ctrl->forwardCommand($cp);
143 case "ilobjectcontentstylesettingsgui":
147 $settings_gui = $this->content_style_gui
148 ->objectSettingsGUIForRefId(
152 $this->
ctrl->forwardCommand($settings_gui);
155 case "ilcommonactiondispatchergui":
160 case strtolower(TranslationGUI::class):
177 $this->
ctrl->forwardCommand($transgui);
181 if ($cmd ===
"infoScreen") {
187 $this->
ctrl->redirectToURL(
"login.php?client_id=" .
CLIENT_ID .
"&cmd=force_login");
191 $this->content_style_gui->addCss(
214 $this->
ctrl->getLinkTargetByClass([
"ilcommonactiondispatchergui",
"iltagginggui"],
"",
"",
true,
false)
217 $ilTabs->activateTab(
"view_content");
218 parent::renderObject();
228 if (strtolower($this->root_request->getBaseClass()) ===
"iladministrationgui") {
229 parent::viewObject();
240 parent::setTitleAndDescription();
241 $this->tpl->setDescription(
"");
243 if ($this->
object->getTitle() ===
"ILIAS") {
244 $this->tpl->setTitle($lng->txt(
"repository"));
245 } elseif ($this->
object->getDescription() !==
"") {
246 $this->tpl->setDescription($this->
object->getDescription());
252 string $active_tab =
"settings_misc" 254 $this->tabs_gui->addSubTab(
256 $this->
lng->txt(
"settings"),
257 $this->
ctrl->getLinkTarget($this,
"edit")
260 $this->tabs_gui->addSubTab(
262 $this->
lng->txt(
"obj_multilinguality"),
263 $this->
ctrl->getLinkTargetByClass(TranslationGUI::class,
"")
267 $this->tabs_gui->activateTab(
"settings");
268 $this->tabs_gui->activateSubTab($active_tab);
293 $form = $obj_service->commonSettings()->legacyForm(
$form, $this->
object)->addIcon();
295 $form = $obj_service->commonSettings()->legacyForm(
$form, $this->
object)->addTitleIconVisibility();
320 if ($form->checkInput()) {
327 $obj_service->commonSettings()->legacyForm($form, $this->
object)->saveIcon();
328 $obj_service->commonSettings()->legacyForm($form, $this->
object)->saveTitleIconVisibility();
336 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
337 $this->
ctrl->redirect($this,
"edit");
342 $form->setValuesByPost();
343 $this->tpl->setContent($form->getHTML());
346 public static function _goto(
string $a_target): void
Class ilObjRootFolderGUI.
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.
prepareOutput(bool $show_sub_objects=true)
GUI class for object translation handling.
Base exception class for object service.
loadLanguageModule(string $a_module)
Load language module.
setEditTabs(string $active_tab="settings_misc")
static _goto(string $a_target)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return 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 ...
static http()
Fetches the global http state from ILIAS.
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.
static prepareJsLinks(string $redraw_url, string $notes_url, string $tags_url, ?ilGlobalTemplateInterface $tpl=null)
Insert js/ajax links into template.
__construct(Container $dic, ilPlugin $plugin)
ILIAS Container InternalGUIService $gui
static _lookupContainerSetting(int $a_id, string $a_keyword, ?string $a_default_value=null)
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)
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.