ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilLinkTargetObjectExplorerGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 protected string $clickable_type = "";
27 protected string $link_type = "";
28
29 public function __construct(
30 object $a_parent_obj,
31 string $a_parent_cmd,
32 string $a_link_type
33 ) {
34 $this->link_type = $a_link_type;
35 parent::__construct($a_parent_obj, $a_parent_cmd, null, "", "");
36 }
37
42 public function setClickableType(string $a_val): void
43 {
44 $this->clickable_type = $a_val;
45 }
46
52 public function getClickableType(): string
53 {
55 }
56
60 public function getNodeOnClick($a_node): string
61 {
62 return "il.IntLink.selectLinkTargetObject('" . $a_node["type"] . "','" . $a_node["child"] . "','" . $this->link_type . "'); return(false);";
63 }
64
68 public function getNodeHref($a_node): string
69 {
70 return "#";
71 }
72
76 public function isNodeClickable($a_node): bool
77 {
78 if ($a_node["type"] === $this->getClickableType()) {
79 return true;
80 }
81 return false;
82 }
83}
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