GUI class for personal workspace.  
 More...
◆ executeCommand()
      
        
          | ilPersonalWorkspaceGUI::executeCommand  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 86 of file class.ilPersonalWorkspaceGUI.php.
References $ctrl, $obj_definition, $tpl, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), renderLocator(), ilGlobalTemplateInterface\setLocator(), ILIAS\Repository\settings(), ilWorkspaceGSToolProvider\SHOW_WS_TREE, and ilObject2GUI\WORKSPACE_NODE_ID.
   92         if ($this->
settings->get(
"disable_personal_workspace")) {
    96         $ilCtrl->setReturn($this, 
"render");
    98         if (!in_array($ilCtrl->getCmd(), [
"shareFilter"]) &&
    99             !in_array(strtolower($ilCtrl->getCmdClass()), [
"ilobjectownershipmanagementgui"])
   105         if ($this->std_request->getNewType()) {
   106             $class_name = $objDefinition->getClassName(
   107                 $this->std_request->getNewType()
   116             if (strtolower($ilCtrl->getNextClass($this)) !== strtolower(
"ilObj" . $class_name . 
"GUI")) {
   117                 $this->
ctrl->setParameterByClass(
"ilObj" . $class_name . 
"GUI", 
"new_type", $this->std_request->getNewType());
   118                 $ilCtrl->redirectByClass(
"ilObj" . $class_name . 
"GUI", $ilCtrl->getCmd());
   123         $next_class = $ilCtrl->getNextClass();
   125             $node = $this->tree->getNodeData($this->node_id);
   126             $next_class = 
"ilObj" . $objDefinition->getClassName($node[
"type"]) . 
"GUI";
   127             $ilCtrl->redirectByClass($next_class, $ilCtrl->getCmd());
   134         $class_path = $ilCtrl->lookupClassPath($next_class);
   135         $class_name = $ilCtrl->getClassForClasspath($class_path);
   136         if ($this->std_request->getNewType()) {
   138             $gui->setCreationMode();
   142         $ilCtrl->forwardCommand($gui);
 setLocator()
Insert locator. 
 
renderLocator()
Build locator for current node. 
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
 
 
 
◆ initTree()
  
  
      
        
          | ilPersonalWorkspaceGUI::initTree  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 149 of file class.ilPersonalWorkspaceGUI.php.
References $user, and $user_id.
  156         if (!$this->tree->getRootId()) {
   157             $this->tree->createTreeForUser(
$user_id);
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ renderBack()
  
  
      
        
          | ilPersonalWorkspaceGUI::renderBack  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 161 of file class.ilPersonalWorkspaceGUI.php.
References $ctrl, $lng, $tabs, $user, and ilLanguage\txt().
  168         $root = $this->tree->getNodeData($this->node_id);
   169         if ($root[
"type"] != 
"wfld" && $root[
"type"] != 
"wsrt") {
   171             if (!$ilTabs->back_target) {
   172                 $owner = $this->tree->lookupOwner($this->node_id);
   174                 if ($owner == $ilUser->getId()) {
   175                     $parent = $this->tree->getParentNodeData($this->node_id);
   176                     if ($parent[
"wsp_id"]) {
   177                         if ($parent[
"type"] == 
"wsrt") {
   178                             $class = 
"ilobjworkspacerootfoldergui";
   180                             $class = 
"ilobjworkspacefoldergui";
   182                         $ilCtrl->setParameterByClass($class, 
"wsp_id", $parent[
"wsp_id"]);
   183                         $ilTabs->setBackTarget(
   185                             $ilCtrl->getLinkTargetByClass($class, 
"")
   191                     $ilCtrl->setParameterByClass(
"ilobjworkspacerootfoldergui", 
"wsp_id", 
"");
   192                     $ilCtrl->setParameterByClass(
"ilobjworkspacerootfoldergui", 
"user", $owner);
   193                     $ilTabs->setBackTarget(
   195                         $ilCtrl->getLinkTargetByClass(
"ilobjworkspacerootfoldergui", 
"share")
 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...
 
 
 
 
◆ renderLocator()
  
  
      
        
          | ilPersonalWorkspaceGUI::renderLocator  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Build locator for current node. 
Definition at line 205 of file class.ilPersonalWorkspaceGUI.php.
References $ctrl, $lng, $locator, $obj_definition, $path, and ilLanguage\txt().
Referenced by executeCommand().
  212         $ilLocator->clearItems();
   215         $path = $this->tree->getPathFull($this->node_id);
   217             foreach (
$path as $node) {
   218                 $obj_class = 
"ilObj" . $objDefinition->getClassName($node[
"type"]) . 
"GUI";
   220                 $ilCtrl->setParameter($this, 
"wsp_id", $node[
"wsp_id"]);
   222                 switch ($node[
"type"]) {
   224                         $ilLocator->addItem(
$lng->
txt(
"mm_personal_and_shared_r"), $ilCtrl->getLinkTargetByClass($obj_class, 
"render"));
   228                     case $objDefinition->isContainer($node[
"type"]):
   229                         $ilLocator->addItem($node[
"title"], $ilCtrl->getLinkTargetByClass($obj_class, 
"render"));
   233                         $ilLocator->addItem($node[
"title"], $ilCtrl->getLinkTargetByClass($obj_class, 
"edit"));
   239         $ilCtrl->setParameter($this, 
"wsp_id", $this->node_id);
 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...
 
ilObjectDefinition $obj_definition
 
 
 
 
◆ $ctrl
  
  
      
        
          | ilCtrl ilPersonalWorkspaceGUI::$ctrl | 
         
       
   | 
  
protected   | 
  
 
 
◆ $help
◆ $lng
◆ $locator
◆ $node_id
  
  
      
        
          | int ilPersonalWorkspaceGUI::$node_id | 
         
       
   | 
  
protected   | 
  
 
 
◆ $obj_definition
◆ $settings
◆ $std_request
◆ $tabs
◆ $tool_context
◆ $tpl
◆ $tree
  
  
      
        
          | ilTree ilPersonalWorkspaceGUI::$tree | 
         
       
   | 
  
protected   | 
  
 
 
◆ $user
The documentation for this class was generated from the following file: