49 string $a_select_par =
"sel_wsp_obj"
53 $this->
ctrl = $DIC->ctrl();
54 $this->
lng = $DIC->language();
56 $this->select_gui = (is_object($a_select_gui))
57 ? strtolower(get_class($a_select_gui))
59 $this->select_cmd = $a_select_cmd;
60 $this->select_par = $a_select_par;
68 $this->root_id = $this->tree->readRootId();
81 $this->link_to_node_class = $a_val;
91 $this->activate_highlighting = $a_val;
101 $this->selectable_types = $a_val;
111 $this->custom_link_target = $a_val;
124 if ($this->select_postvar !=
"") {
134 if (is_object($this->parent_obj)) {
135 $target_path = [get_class($this->parent_obj)];
139 $target_path = $target_path + [$target_class];
142 switch ($a_node[
"type"]) {
144 $target_class =
"ilobjworkspacerootfoldergui";
145 $target_path = [
"ilDashboardGUI",
"ilPersonalWorkspaceGUI",
"ilobjworkspacerootfoldergui"];
148 $target_class =
"ilobjworkspacefoldergui";
157 $ilCtrl->setParameterByClass($target_class, $this->select_par, $a_node[
"child"]);
158 $ret = $ilCtrl->getLinkTargetByClass($target_path, $this->select_cmd);
161 $ilCtrl->setParameterByClass($target_class, $this->select_par, $this->request->getSelectPar());
172 if ($a_node[
"child"] == $this->tree->getRootId()) {
173 return $lng->
txt(
"personal_resources");
176 return $a_node[
"title"];
206 $t = $a_node[
"type"];
207 if (in_array($t, array(
"sktr"))) {
218 $wsp_id = $this->request->getWspId();
220 ((
int) $a_node[
"child"] == $wsp_id || $wsp_id == 0 && $a_node[
"child"] == $this->
getRootId())) {
setSkipRootNode(bool $a_val)
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...
Explorer class that works on tree objects (Services/Tree)
setPathOpen($a_id)
Set node path to be opened.
setTypeWhiteList(array $a_val)
Set type white list.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Explorer for selecting a personal workspace item.
getNodeContent($a_node)
@inheritcoc
getNodeHref($a_node)
@inheritcoc
ilWorkspaceAccessHandler $access_handler
setSelectableTypes(array $a_val)
isNodeClickable($a_node)
@inheritcoc
bool $activate_highlighting
string $custom_link_target
__construct(int $a_user_id, $a_parent_obj, string $a_parent_cmd, $a_select_gui, string $a_select_cmd, string $a_select_par="sel_wsp_obj")
ilWorkspaceExplorerGUI constructor.
isNodeSelectable($a_node)
@inheritcoc
object string null $select_gui
getActivateHighlighting()
isNodeHighlighted($a_node)
@inheritcoc
StandardGUIRequest $request
setCustomLinkTarget(string $a_val)
setLinkToNodeClass(bool $a_val)
setActivateHighlighting(bool $a_val)
getNodeIcon($a_node)
@inheritcoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc