ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjWorkspaceRootFolderGUI.php
Go to the documentation of this file.
1 <?php
2 
26 {
27  public function __construct(
28  int $a_id = 0,
29  int $a_id_type = self::REPOSITORY_NODE_ID,
30  int $a_parent_node_id = 0
31  ) {
32  parent::__construct($a_id, $a_id_type, $a_parent_node_id);
33  global $DIC;
34 
35  $this->help = $DIC["ilHelp"];
36  $this->tpl = $DIC["tpl"];
37  $this->lng = $DIC->language();
38  }
39 
40  public function getType(): string
41  {
42  return "wsrt";
43  }
44 
45  protected function setTabs(bool $a_show_settings = false): void
46  {
47  $ilHelp = $this->help;
48 
49  parent::setTabs(false);
50  $ilHelp->setScreenIdComponent("wsrt");
51  }
52 
53  protected function setTitleAndDescription(): void
54  {
55  $tpl = $this->tpl;
56  $lng = $this->lng;
57 
58  $title = $lng->txt("mm_personal_and_shared_r");
59  $tpl->setTitle($title);
60  $tpl->setTitleIcon(ilUtil::getImagePath("icon_wsrt.svg"), $title);
61  $tpl->setDescription($lng->txt("wsp_personal_resources_description"));
62  }
63 }
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...
Class ilObjWorkspaceFolderGUI.
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
global $DIC
Definition: feed.php:28
ilGlobalTemplateInterface $tpl
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
setDescription(string $a_descr)
Sets description below title in standard template.
__construct(int $a_id=0, int $a_id_type=self::REPOSITORY_NODE_ID, int $a_parent_node_id=0)