ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilLinkTargetObjectExplorerGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php");
5 
15 {
19  protected $link_type;
20 
24  public function __construct($a_parent_obj, $a_parent_cmd, $a_link_type)
25  {
26  $this->link_type = $a_link_type;
27  parent::__construct($a_parent_obj, $a_parent_cmd, null, "", "");
28  }
29 
35  public function setClickableType($a_val)
36  {
37  $this->clickable_type = $a_val;
38  }
39 
45  public function getClickableType()
46  {
47  return $this->clickable_type;
48  }
49 
53  public function getNodeOnClick($a_node)
54  {
55  return "il.IntLink.selectLinkTargetObject('" . $a_node["type"] . "','" . $a_node["child"] . "','" . $this->link_type . "'); return(false);";
56  }
57 
64  public function isNodeClickable($a_node)
65  {
66  if ($a_node["type"] == $this->getClickableType()) {
67  return true;
68  }
69  return false;
70  }
71 }
Internal Link: Repository Item Selector Explorer.
Explorer for selecting repository items.
getNodeOnClick($a_node)
Get onclick attribute.
__construct($a_parent_obj, $a_parent_cmd, $a_link_type)
Constructor.