ILIAS  release_8 Revision v8.24
class.ilIntLinkRepItemExplorerGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 protected string $link_target_script;
27
31 public function __construct(
32 $a_parent_obj,
33 string $a_parent_cmd
34 ) {
35 parent::__construct($a_parent_obj, $a_parent_cmd, null, "", "");
36
37 // #14587 - ilRepositorySelectorExplorerGUI::__construct() does NOT include side blocks!
38 $list = $this->getTypeWhiteList();
39 $list[] = "poll";
40 $this->setTypeWhiteList($list);
41 }
42
46 public function setSetLinkTargetScript(string $a_script): void
47 {
48 $this->link_target_script = $a_script;
49 }
50
54 public function getSetLinkTargetScript(): string
55 {
57 }
58
62 public function getNodeHref($a_node): string
63 {
64 if ($this->getSetLinkTargetScript() === "") {
65 return "#";
66 }
67
70 "linktype=RepositoryItem&linktarget=il__" . $a_node["type"] . "_" . $a_node["child"]
71 );
72
73 return $link;
74 }
75
80 public function getNodeOnClick($a_node): string
81 {
82 if ($this->getSetLinkTargetScript() === "") {
83 return "return il.IntLink.addInternalLink('[iln " . $a_node['type'] . "=&quot;" . $a_node['child'] . "&quot;]','[/iln]', event);";
84 }
85
86 return "";
87 }
88}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct( $a_parent_obj, string $a_parent_cmd)
getSetLinkTargetScript()
Get "set link target" script.
getNodeOnClick($a_node)
get onclick event handling
setSetLinkTargetScript(string $a_script)
Set "set link target" script.
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