4 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
5 include_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);
98 $this->link_to_node_class = $a_val;
118 $this->activate_highlighting = $a_val;
138 $this->selectable_types = $a_val;
158 $this->custom_link_target = $a_val;
188 switch ($a_node[
"type"]) {
190 $target_class =
"ilobjworkspacerootfoldergui";
193 $target_class =
"ilobjworkspacefoldergui";
198 $ilCtrl->setParameterByClass($target_class, $this->select_par, $a_node[
"child"]);
199 $ret =
$ilCtrl->getLinkTargetByClass($target_class, $this->select_cmd);
200 $ilCtrl->setParameterByClass($target_class, $this->select_par,
$_GET[$this->select_par]);
215 if ($a_node[
"child"] == $this->tree->getRootId()) {
216 return $lng->txt(
"wsp_personal_workspace");
219 return $a_node[
"title"];
255 $t = $a_node[
"type"];
256 if (in_array(
$t,
array(
"sktr"))) {
271 ($a_node[
"child"] ==
$_GET[
"wsp_id"] ||
$_GET[
"wsp_id"] ==
"" && $a_node[
"child"] == $this->
getRootId())) {
isNodeClickable($a_node)
Is clickable.
setSelectableTypes($a_val)
Set selectable types.
getCustomLinkTarget()
Get custom link target.
getNodeIcon($a_node)
get image path (may be overwritten by derived classes)
setSkipRootNode($a_val)
Set skip root node.
Access handler for personal workspace.
getActivateHighlighting()
Get activate highlighting.
Tree handler for personal workspace.
setTypeWhiteList($a_val)
Set type white list.
getLinkToNodeClass()
Get link to node class.
isNodeHighlighted($a_node)
Is node highlighted?
isNodeSelectable($a_node)
Is selectable.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getNodeContent($a_node)
Get node content.
getSelectableTypes()
Get selectable types.
Explorer for selecting a personal workspace item.
__construct($a_user_id, $a_parent_obj, $a_parent_cmd, $a_select_gui, $a_select_cmd, $a_select_par="sel_wsp_obj")
Constructor.
setActivateHighlighting($a_val)
Set activate highlighting.
Create styles array
The data for the language used.
Explorer class that works on tree objects (Services/Tree)
getNodeHref($a_node)
Get href for node.
setCustomLinkTarget($a_val)
Set custom link target.
setLinkToNodeClass($a_val)
Set link to node class.