4require_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
15 public function __construct($a_parent_obj, $a_parent_cmd, $a_user_id)
17 $this->tree =
new ilTree($a_user_id);
18 $this->tree->setTableNames(
'mail_tree',
'mail_obj_data');
20 parent::__construct(
"mail_exp", $a_parent_obj, $a_parent_cmd, $this->tree);
33 return $lng->txt(
"mail_folders");
36 if($a_node[
"depth"] < 3)
38 return $lng->txt(
"mail_".$a_node[
"title"]);
41 return $a_node[
"title"];
52 $icon_type = ($a_node[
"m_type"] ==
"user_folder")
65 return $lng->txt(
"icon").
" ".
$lng->txt(
"mail_folders");
69 return $lng->txt(
"icon").
" ".
$lng->txt($a_node[
"m_type"]);
82 $ilCtrl->setParameter($this->parent_obj,
"mobj_id", $a_node[
"child"]);
83 $href =
$ilCtrl->getLinkTargetByClass(
"ilMailFolderGUI");
84 $ilCtrl->setParameter($this->parent_obj,
"mobj_id",
$_GET[
"mobj_id"]);
91 if ($a_node[
"child"] ==
$_GET[
"mobj_id"] ||
setSkipRootNode($a_val)
Set skip root node.
Class Mail Explorer class for explorer view for mailboxes.
getNodeHref($a_node)
Get href for node.
__construct($a_parent_obj, $a_parent_cmd, $a_user_id)
Constructor.
getNodeIcon($a_node)
Get node icon path.
getNodeContent($a_node)
Get content of a node.
getNodeIconAlt($a_node)
Get node icon alt attribute.
isNodeHighlighted($a_node)
Is node highlighted?
Explorer class that works on tree objects (Services/Tree)
getRootNode()
Get root node.
getNodeId($a_node)
Get id for node.
setOrderField($a_val, $a_numeric=false)
Set order field.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)