4require_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->setParameterByClass(
'ilMailFolderGUI',
'mobj_id', $a_node[
'child']);
89 $href = $this->ctrl->getLinkTargetByClass(
'ilMailFolderGUI');
90 $this->ctrl->clearParametersByClass(
'ilMailFolderGUI');
97 if ($a_node[
"child"] ==
$_GET[
"mobj_id"] ||
An exception for terminatinating execution or to throw for unit testing.
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)
ilMailExplorer 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)