19 declare(strict_types=1);
41 bool $a_call_by_reference =
true,
42 bool $a_prepare_output =
true 48 $lng = $DIC->language();
55 $this->root_request = $DIC
60 $this->
help = $DIC->help();
71 $this->
ctrl->setParameter($this,
"ref_id", $this->ref_id);
74 $this->tabs_gui->addTab(
77 $this->
ctrl->getLinkTarget($this,
"")
82 $cmd = $this->
ctrl->getCmd();
83 $this->tabs_gui->addTarget(
85 $this->
ctrl->getLinkTarget($this,
"edit"),
99 $next_class = $this->
ctrl->getNextClass($this);
100 $cmd = $this->
ctrl->getCmd();
102 switch ($next_class) {
103 case strtolower(ilRepositoryTrashGUI::class):
105 $this->
ctrl->setReturn($this,
'trash');
106 $this->
ctrl->forwardCommand($ru);
110 case "ilcontainerpagegui":
114 $this->tpl->setContent($ret);
118 case 'ilpermissiongui':
120 $this->tabs_gui->activateTab(
'perm_settings');
122 $ret = $this->
ctrl->forwardCommand($perm_gui);
128 $this->content_style_gui->addCss(
135 case 'ilobjectcopygui':
138 $cp->setType(
'root');
139 $this->
ctrl->forwardCommand($cp);
142 case "ilobjectcontentstylesettingsgui":
146 $settings_gui = $this->content_style_gui
147 ->objectSettingsGUIForRefId(
151 $this->
ctrl->forwardCommand($settings_gui);
154 case "ilcommonactiondispatchergui":
159 case 'ilobjecttranslationgui':
164 $this->
ctrl->forwardCommand($transgui);
168 if ($cmd ===
"infoScreen") {
174 $this->
ctrl->redirectToURL(
"login.php?client_id=" .
CLIENT_ID .
"&cmd=force_login");
178 $this->content_style_gui->addCss(
201 $this->
ctrl->getLinkTargetByClass([
"ilcommonactiondispatchergui",
"iltagginggui"],
"",
"",
true,
false)
204 $ilTabs->activateTab(
"view_content");
205 parent::renderObject();
215 if (strtolower($this->root_request->getBaseClass()) ===
"iladministrationgui") {
216 parent::viewObject();
227 parent::setTitleAndDescription();
228 $this->tpl->setDescription(
"");
230 if ($this->
object->getTitle() ===
"ILIAS") {
231 $this->tpl->setTitle($lng->txt(
"repository"));
232 } elseif ($this->
object->getDescription() !==
"") {
233 $this->tpl->setDescription($this->
object->getDescription());
239 string $active_tab =
"settings_misc" 241 $this->tabs_gui->addSubTab(
243 $this->
lng->txt(
"settings"),
244 $this->
ctrl->getLinkTarget($this,
"edit")
247 $this->tabs_gui->addSubTab(
249 $this->
lng->txt(
"obj_multilinguality"),
250 $this->
ctrl->getLinkTargetByClass(
"ilobjecttranslationgui",
"")
254 $this->tabs_gui->activateTab(
"settings");
255 $this->tabs_gui->activateSubTab($active_tab);
280 $form = $obj_service->commonSettings()->legacyForm(
$form, $this->
object)->addIcon();
282 $form = $obj_service->commonSettings()->legacyForm(
$form, $this->
object)->addTitleIconVisibility();
307 if ($form->checkInput()) {
314 $obj_service->commonSettings()->legacyForm($form, $this->
object)->saveIcon();
315 $obj_service->commonSettings()->legacyForm($form, $this->
object)->saveTitleIconVisibility();
323 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
324 $this->
ctrl->redirect($this,
"edit");
329 $form->setValuesByPost();
330 $this->tpl->setContent($form->getHTML());
333 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)
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 ...
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
Class ilContainerGUI This is a base GUI class for all container objects in ILIAS: root folder...
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
GUI class for object translation handling.
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.