ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilIntLinkRepItemExplorerGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php");
6 
16 {
20  public function __construct($a_parent_obj, $a_parent_cmd)
21  {
22  parent::__construct($a_parent_obj, $a_parent_cmd, null, "", "");
23 
24  // #14587 - ilRepositorySelectorExplorerGUI::__construct() does NOT include side blocks!
25  $list = $this->getTypeWhiteList();
26  $list[] = "poll";
27  $this->setTypeWhiteList($list);
28  }
29 
35  public function setSetLinkTargetScript($a_script)
36  {
37  $this->link_target_script = $a_script;
38  }
39 
43  public function getSetLinkTargetScript()
44  {
45  return $this->link_target_script;
46  }
47 
48  public function getNodeHref($a_node)
49  {
50  if ($this->getSetLinkTargetScript() == "") {
51  return "#";
52  } else {
53  $link =
55  $this->getSetLinkTargetScript(),
56  "linktype=RepositoryItem" .
57  "&linktarget=il__" . $a_node["type"] . "_" . $a_node["child"]
58  );
59 
60  return ($link);
61  }
62  }
63 
67  public function getNodeOnClick($a_node)
68  {
69  if ($this->getSetLinkTargetScript() == "") {
70  return "return il.IntLink.addInternalLink('[iln " . $a_node['type'] . "=&quot;" . $a_node['child'] . "&quot;]','[/iln]', event);";
71  }
72  return "";
73  }
74 }
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
Internal Link: Repository Item Selector Explorer.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
Explorer for selecting repository items.
setTypeWhiteList($a_val)
Set type white list.
setSetLinkTargetScript($a_script)
Set "set link target" script.
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
getNodeOnClick($a_node)
get onclick event handling
getSetLinkTargetScript()
Get "set link target" script.
getTypeWhiteList()
Get type white list.