ILIAS  release_7 Revision v7.30-3-g800a261c036
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
4include_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 getNodeHref($a_node)
65 {
66 return "#";
67 }
68
75 public function isNodeClickable($a_node)
76 {
77 if ($a_node["type"] == $this->getClickableType()) {
78 return true;
79 }
80 return false;
81 }
82}
An exception for terminatinating execution or to throw for unit testing.
Internal Link: Repository Item Selector Explorer.
__construct($a_parent_obj, $a_parent_cmd, $a_link_type)
Constructor.
Explorer for selecting repository items.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc