4include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
 
    5include_once(
"./Services/Skill/classes/class.ilSkillTreeNode.php");
 
   64    public function __construct($a_user_id, $a_parent_obj, $a_parent_cmd, $a_select_gui, $a_select_cmd, $a_select_par = 
"sel_wsp_obj")
 
   68        $this->ctrl = 
$DIC->ctrl();
 
   69        $this->lng = 
$DIC->language();
 
   71        $this->select_gui = (is_object($a_select_gui))
 
   72            ? strtolower(get_class($a_select_gui))
 
   74        $this->select_cmd = $a_select_cmd;
 
   75        $this->select_par = $a_select_par;
 
   77        include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
 
   78        include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
 
   81        $this->root_id = $this->tree->readRootId();
 
   84        parent::__construct(
"wsp_sel", $a_parent_obj, $a_parent_cmd, $this->tree);
 
   99        $this->link_to_node_class = $a_val;
 
  119        $this->activate_highlighting = $a_val;
 
  139        $this->selectable_types = $a_val;
 
  159        $this->custom_link_target = $a_val;
 
  180        if ($this->select_postvar != 
"") {
 
  192            switch ($a_node[
"type"]) {
 
  194                    $target_class = 
"ilobjworkspacerootfoldergui";
 
  197                    $target_class = 
"ilobjworkspacefoldergui";
 
  202        $ilCtrl->setParameterByClass($target_class, $this->select_par, $a_node[
"child"]);
 
  203        $ret = 
$ilCtrl->getLinkTargetByClass($target_class, $this->select_cmd);
 
  204        $ilCtrl->setParameterByClass($target_class, $this->select_par, 
$_GET[$this->select_par]);
 
  219        if ($a_node[
"child"] == $this->tree->getRootId()) {
 
  220            return $lng->txt(
"wsp_personal_workspace");
 
  223        return $a_node[
"title"];
 
  259        $t = $a_node[
"type"];
 
  260        if (in_array(
$t, array(
"sktr"))) {
 
  275            ($a_node[
"child"] == 
$_GET[
"wsp_id"] || 
$_GET[
"wsp_id"] == 
"" && $a_node[
"child"] == $this->
getRootId())) {
 
An exception for terminatinating execution or to throw for unit testing.
setSkipRootNode($a_val)
Set skip root node.
Explorer class that works on tree objects (Services/Tree)
setTypeWhiteList($a_val)
Set type white list.
setPathOpen($a_id)
Set node path to be opened.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Access handler for personal workspace.
Explorer for selecting a personal workspace item.
getNodeContent($a_node)
Get node content.
getNodeHref($a_node)
Get href for node.
__construct($a_user_id, $a_parent_obj, $a_parent_cmd, $a_select_gui, $a_select_cmd, $a_select_par="sel_wsp_obj")
Constructor.
isNodeClickable($a_node)
Is clickable.
setSelectableTypes($a_val)
Set selectable types.
setLinkToNodeClass($a_val)
Set link to node class.
isNodeSelectable($a_node)
Is selectable.
getActivateHighlighting()
Get activate highlighting.
isNodeHighlighted($a_node)
Is node highlighted?
getLinkToNodeClass()
Get link to node class.
getCustomLinkTarget()
Get custom link target.
getSelectableTypes()
Get selectable types.
setCustomLinkTarget($a_val)
Set custom link target.
setActivateHighlighting($a_val)
Set activate highlighting.
getNodeIcon($a_node)
get image path (may be overwritten by derived classes)
Tree handler for personal workspace.