43 $this->link_target_script = $a_script;
65 "linktype=RepositoryItem&linktarget=il__" . $a_node[
"type"] .
"_" . $a_node[
"child"]
83 $anchor_str =
" anchor="" . $anchor .
""";
85 return "return il.IntLink.addInternalLink('[iln " . $a_node[
'type'] .
"="" . $ref_id .
""" . $anchor_str .
"]','[/iln]', event);";
93 if (str_contains($a_parent_node_id,
"#")) {
97 $node = $this->tree->getNodeData($ref_id);
99 if (!str_contains($a_parent_node_id,
"#") && in_array($node[
"type"], [
"crs",
"cat",
"grp",
"fold"])) {
102 $anchor_node = $node;
103 $anchor_node[
"child"] = $ref_id .
"#" . $anchor;
104 $anchor_node[
"title"] =
"#" . $anchor;
108 $parent_childs = parent::getChildsOfNode($ref_id);
115 $e = explode(
"#", $node_id);
121 $e = explode(
"#", $node_id);
128 return parent::isNodeVisible($a_node);
133 if (str_contains($a_node[
"child"],
"#")) {
137 return parent::getNodeIcon($a_node);
143 return parent::isNodeClickable($a_node);
148 if (str_contains($a_node[
"child"],
"#")) {
152 return parent::isNodeHighlighted($a_node);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getChildsOfNode($a_parent_node_id)
Get childs of node.
__construct( $a_parent_obj, string $a_parent_cmd)
string $link_target_script
isNodeHighlighted($a_node)
Is node highlighted?
getAnchorFromNodeId(string $node_id)
getNodeIcon($a_node)
Get node icon path.
isNodeClickable($a_node)
Is node clickable?
getSetLinkTargetScript()
Get "set link target" script.
getNodeOnClick($a_node)
get onclick event handling
setSetLinkTargetScript(string $a_script)
Set "set link target" script.
isNodeVisible($a_node)
Is node visible?
getRefIdFromNodeId(string $node_id)
static _lookupObjId(int $ref_id)
static _readAnchors(string $a_parent_type, int $a_page_id, string $a_page_lang="-")
Read anchors of a page.
Explorer for selecting repository items.
getTypeWhiteList()
Get type white list.
setTypeWhiteList(array $a_val)
Set type white list.
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc