31 $this->tree =
new ilTree($userId);
32 $this->tree->setTableNames(
'mail_tree',
'mail_obj_data');
48 $folderId = (int) ($this->httpRequest->getParsedBody()[
'mobj_id'] ?? 0);
49 if (0 === $folderId) {
50 $folderId = (int) ($this->httpRequest->getQueryParams()[
'mobj_id'] ?? 0);
53 $this->currentFolderId = (int) $folderId;
61 return $this->lng->txt(
"mail_folders");
69 $f = $this->
ui->factory();
73 ->withData($this->tree->getChilds((
int) $this->tree->readRootId()))
74 ->withHighlightOnNodeClick(
false);
89 return $node->withHighlighted($this->currentFolderId === (
int) $record[
'child']);
107 $content = $node[
'title'];
109 if ($node[
'child'] == $this->getNodeId($this->getRootNode())) {
110 $content = $this->lng->txt(
'mail_folders');
111 } elseif ($node[
'depth'] < 3) {
112 $content = $this->lng->txt(
'mail_' . $node[
'title']);
120 $content = $a_node[
'title'];
122 if ($a_node[
'child'] == $this->getNodeId($this->getRootNode())) {
123 $content = $this->lng->txt(
'mail_folders');
124 } elseif ($a_node[
'depth'] < 3) {
125 $content = $this->lng->txt(
'mail_' . $a_node[
'title']);
136 if ($node[
'child'] == $this->getNodeId($this->getRootNode())) {
139 $iconType = $node[
'm_type'];
140 if ($node[
'm_type'] ===
'user_folder') {
155 if ($node[
'child'] == $this->getNodeId($this->getRootNode())) {
159 $this->ctrl->setParameterByClass(
'ilMailFolderGUI',
'mobj_id', $node[
'child']);
160 $href = $this->ctrl->getLinkTargetByClass([
'ilMailGUI',
'ilMailFolderGUI'],
'',
'',
false,
false);
161 $this->ctrl->clearParametersByClass(
'ilMailFolderGUI');
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.
build(Factory $factory, $record, $environment=null)
@inheritDoc
getNodeIcon($node)
@inheritDoc
getNodeContent($node)
@inheritDoc
getNodeIconAlt($a_node)
Get node icon alt attribute.
getNodeStateToggleCmdClasses($record)
@inheritDoc
getTreeComponent()
@inheritDoc
__construct($parentObject, $userId)
ilMailExplorer constructor.
getNodeHref($node)
@inheritDoc
Explorer class that works on tree objects (Services/Tree)
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)
This describes a Tree Node.
This describes a Tree Control.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc