19 declare(strict_types=1);
48 if ($rn[
"child"] == $a_node[
"child"]) {
51 $title = $a_node[
"title"];
58 $f = $this->
ui->factory();
74 $tree =
$f->tree()->expandable($label, $this)
76 ->withHighlightOnNodeClick(
true);
88 if ($nodeIconPath !==
'') {
96 ->withOnLoadCode(
function (
$id) use ($record) {
98 "$(\"#$id a\").click(function(ev) { ev.preventDefault(); " . $this->
getNodeOnClick($record) .
"; return false;});";
100 ->withLink(
new \
ILIAS\Data\URI(ILIAS_HTTP_PATH .
"/#tax_node_" . $record[
"child"]));
101 if (in_array($this->
getNodeId($record), $this->selected_nodes)) {
102 $node = $node->withHighlighted(
true);
getNodeData(int $a_node_id, ?int $a_tree_pk=null)
get all information of a node.
Class ChatMainBarProvider .
getChilds(int $a_node_id, string $a_order="", string $a_direction="ASC")
get child nodes of given node
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
createNode(\ILIAS\UI\Component\Tree\Node\Factory $factory, $record)
static _lookupTitle(int $obj_id)
getNodeIconAlt($a_node)
Get node icon alt attribute.
getNodeId($a_node)
Get id for node.
__construct( $parent_obj, string $parent_cmd, int $tax_id, string $target_gui, string $target_cmd, string $id="")
getRootNode()
Get root node.
This describes a Tree Control.
__construct(Container $dic, ilPlugin $plugin)