4 require_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
31 public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id)
35 $this->lng = $DIC->language();
36 $this->ctrl = $DIC->ctrl();
38 $this->tree =
new ilTree($a_user_id);
39 $this->tree->setTableNames(
'mail_tree',
'mail_obj_data');
41 parent::__construct(
"mail_exp", $a_parent_obj, $a_parent_cmd, $this->tree);
51 return $this->lng->txt(
"mail_folders");
54 if ($a_node[
"depth"] < 3) {
55 return $this->lng->txt(
"mail_" . $a_node[
"title"]);
58 return $a_node[
"title"];
66 $icon_type = ($a_node[
"m_type"] ==
"user_folder")
76 return $this->lng->txt(
"icon") .
" " . $this->lng->txt(
"mail_folders");
78 return $this->lng->txt(
"icon") .
" " . $this->lng->txt($a_node[
"m_type"]);
88 $this->ctrl->setParameter($this->parent_obj,
"mobj_id", $a_node[
"child"]);
89 $href = $this->ctrl->getLinkTargetByClass(
"ilMailFolderGUI");
90 $this->ctrl->setParameter($this->parent_obj,
"mobj_id",
$_GET[
"mobj_id"]);
97 if ($a_node[
"child"] ==
$_GET[
"mobj_id"] ||
setSkipRootNode($a_val)
Set skip root node.
Class Mail Explorer class for explorer view for mailboxes.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getNodeId($a_node)
Get id for node.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
getRootNode()
Get root node.
Explorer class that works on tree objects (Services/Tree)
setOrderField($a_val, $a_numeric=false)
Set order field.
__construct($a_parent_obj, $a_parent_cmd, $a_user_id)
ilMailExplorer constructor.
isNodeHighlighted($a_node)