31 $lng->loadLanguageModule(
"wsp");
35 $ilCtrl->saveParameter($this,
"wsp_id");
40 $this->node_id = $this->tree->getRootId();
51 $ilCtrl->setReturn($this,
"render");
52 $cmd = $ilCtrl->getCmd();
57 $class_name = $objDefinition->getClassName(
$_REQUEST[
"new_type"]);
65 if (strtolower($ilCtrl->getNextClass($this)) != strtolower(
"ilObj".$class_name.
"GUI"))
67 $ilCtrl->setCmdClass(
"ilObj".$class_name.
"GUI");
72 $next_class = $ilCtrl->getNextClass();
75 $node = $this->tree->getNodeData($this->node_id);
76 $next_class =
"ilObj".$objDefinition->getClassName($node[
"type"]).
"GUI";
77 $ilCtrl->setCmdClass($next_class);
84 $class_path = $ilCtrl->lookupClassPath($next_class);
85 include_once($class_path);
86 $class_name = $ilCtrl->getClassForClasspath($class_path);
90 $gui->setCreationMode();
96 $ilCtrl->forwardCommand($gui);
109 $user_id = $ilUser->getId();
111 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
113 if(!$this->tree->getRootId())
115 $this->tree->createTreeForUser($user_id);
123 $root = $this->tree->getNodeData($this->node_id);
124 if($root[
"type"] !=
"wfld" && $root[
"type"] !=
"wsrt")
127 if(!$ilTabs->back_target)
129 $owner = $this->tree->lookupOwner($this->node_id);
131 if($owner == $ilUser->getId())
133 $parent = $this->tree->getParentNodeData($this->node_id);
134 if($parent[
"wsp_id"])
136 if($parent[
"type"] ==
"wsrt")
138 $class =
"ilobjworkspacerootfoldergui";
142 $class =
"ilobjworkspacefoldergui";
144 $ilCtrl->setParameterByClass($class,
"wsp_id", $parent[
"wsp_id"]);
145 $ilTabs->setBackTarget($lng->txt(
"back"),
146 $ilCtrl->getLinkTargetByClass($class,
""));
152 $ilCtrl->setParameterByClass(
"ilobjworkspacerootfoldergui",
"wsp_id",
"");
153 $ilCtrl->setParameterByClass(
"ilobjworkspacerootfoldergui",
"user", $owner);
154 $ilTabs->setBackTarget($lng->txt(
"back"),
155 $ilCtrl->getLinkTargetByClass(
"ilobjworkspacerootfoldergui",
"share"));
168 $ilLocator->clearItems();
171 $path = $this->tree->getPathFull($this->node_id);
174 foreach(
$path as $node)
176 $obj_class =
"ilObj".$objDefinition->getClassName($node[
"type"]).
"GUI";
178 $ilCtrl->setParameter($this,
"wsp_id", $node[
"wsp_id"]);
180 switch($node[
"type"])
183 $ilLocator->addItem($lng->txt(
"wsp_personal_workspace"), $ilCtrl->getLinkTargetByClass($obj_class,
"render"));
187 case $objDefinition->isContainer($node[
"type"]):
188 $ilLocator->addItem($node[
"title"], $ilCtrl->getLinkTargetByClass($obj_class,
"render"));
192 $ilLocator->addItem($node[
"title"], $ilCtrl->getLinkTargetByClass($obj_class,
"edit"));
198 $ilCtrl->setParameter($this,
"wsp_id", $this->node_id);
GUI class for personal workspace.
initTree()
Init personal tree.
renderLocator()
Build locator for current node.
Tree handler for personal workspace.
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
executeCommand()
execute command