ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilLinkTargetObjectExplorerGUI.php
Go to the documentation of this file.
1 <?php
2 
24 {
25  protected string $clickable_type = "";
26  protected string $link_type = "";
27 
28  public function __construct(
29  object $a_parent_obj,
30  string $a_parent_cmd,
31  string $a_link_type
32  ) {
33  $this->link_type = $a_link_type;
34  parent::__construct($a_parent_obj, $a_parent_cmd, null, "", "");
35  }
36 
41  public function setClickableType(string $a_val): void
42  {
43  $this->clickable_type = $a_val;
44  }
45 
51  public function getClickableType(): string
52  {
53  return $this->clickable_type;
54  }
55 
59  public function getNodeOnClick($a_node): string
60  {
61  return "il.IntLink.selectLinkTargetObject('" . $a_node["type"] . "','" . $a_node["child"] . "','" . $this->link_type . "'); return(false);";
62  }
63 
67  public function getNodeHref($a_node): string
68  {
69  return "#";
70  }
71 
75  public function isNodeClickable($a_node): bool
76  {
77  if ($a_node["type"] === $this->getClickableType()) {
78  return true;
79  }
80  return false;
81  }
82 }
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)
Explorer for selecting repository items.
setClickableType(string $a_val)
Set clickable type.
__construct(Container $dic, ilPlugin $plugin)