60 public function __construct($a_user_id, $a_parent_obj, $a_parent_cmd, $a_select_gui, $a_select_cmd, $a_select_par =
"sel_wsp_obj")
64 $this->ctrl = $DIC->ctrl();
65 $this->lng = $DIC->language();
67 $this->select_gui = (is_object($a_select_gui))
68 ? strtolower(get_class($a_select_gui))
70 $this->select_cmd = $a_select_cmd;
71 $this->select_par = $a_select_par;
73 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
74 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
77 $this->root_id = $this->tree->readRootId();
95 $this->link_to_node_class = $a_val;
115 $this->activate_highlighting = $a_val;
135 $this->selectable_types = $a_val;
155 $this->custom_link_target = $a_val;
176 if ($this->select_postvar !=
"") {
188 switch ($a_node[
"type"]) {
190 $target_class =
"ilobjworkspacerootfoldergui";
193 $target_class =
"ilobjworkspacefoldergui";
198 if (is_object($this->parent_obj)) {
199 $target_path = [get_class($this->parent_obj)];
203 $target_path = $target_path + [$target_class];
204 $ilCtrl->setParameterByClass($target_class, $this->select_par, $a_node[
"child"]);
206 $ret = $ilCtrl->getLinkTargetByClass($target_path, $this->select_cmd);
207 $ilCtrl->setParameterByClass($target_class, $this->select_par,
$_GET[$this->select_par]);
224 if ($a_node[
"child"] == $this->tree->getRootId()) {
225 return $lng->txt(
"personal_resources");
228 return $a_node[
"title"];
264 $t = $a_node[
"type"];
265 if (in_array($t, array(
"sktr"))) {
280 ($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.
setPathOpen($a_id)
Set node path to be opened.
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.
Explorer class that works on tree objects (Services/Tree)
__construct(Container $dic, ilPlugin $plugin)
getNodeHref($a_node)
Get href for node.
setCustomLinkTarget($a_val)
Set custom link target.
setLinkToNodeClass($a_val)
Set link to node class.