ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
class.ilLinkTargetObjectExplorerGUI.php
Go to the documentation of this file.
1<?php
2
20{
21 protected string $clickable_type = "";
22 protected string $link_type = "";
23
24 public function __construct(
25 object $a_parent_obj,
26 string $a_parent_cmd,
27 string $a_link_type
28 ) {
29 $this->link_type = $a_link_type;
30 parent::__construct($a_parent_obj, $a_parent_cmd, null, "", "");
31 }
32
37 public function setClickableType(string $a_val): void
38 {
39 $this->clickable_type = $a_val;
40 }
41
47 public function getClickableType(): string
48 {
50 }
51
55 public function getNodeOnClick($a_node): string
56 {
57 return "il.IntLink.selectLinkTargetObject('" . $a_node["type"] . "','" . $a_node["child"] . "','" . $this->link_type . "'); return(false);";
58 }
59
63 public function getNodeHref($a_node): string
64 {
65 return "#";
66 }
67
71 public function isNodeClickable($a_node): bool
72 {
73 if ($a_node["type"] === $this->getClickableType()) {
74 return true;
75 }
76 return false;
77 }
78}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(object $a_parent_obj, string $a_parent_cmd, string $a_link_type)
setClickableType(string $a_val)
Set clickable type.
Explorer for selecting repository items.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc