ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilPCFileItemFileSelectorGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php");
6 
14 {
18  public function __construct(
19  $a_parent_obj,
20  $a_parent_cmd,
21  $a_selection_gui = null,
22  $a_selection_cmd = "selectObject",
23  $a_selection_par = "sel_ref_id",
24  $a_id = "rep_exp_sel"
25  ) {
26  parent::__construct($a_parent_obj, $a_parent_cmd, $a_selection_gui, $a_selection_cmd, $a_selection_par, $a_id);
27  $this->setTypeWhiteList(array("root", "cat", "grp", "crs", "file", "fold"));
28  $this->setClickableTypes(array("file"));
29  }
30 
31 
35  public function getNodeHref($a_node)
36  {
38 
39  $ctrl->setParameterByClass($this->selection_gui, "subCmd", "selectFile");
40 
41  return parent::getNodeHref($a_node);
42  }
43 
47  public function isNodeClickable($a_node)
48  {
50 
51  if (!$access->checkAccess("write", "", $a_node["child"])) {
52  return false;
53  }
54 
55  return parent::isNodeClickable($a_node);
56  }
57 }
Explorer for selecting repository items.
__construct( $a_parent_obj, $a_parent_cmd, $a_selection_gui=null, $a_selection_cmd="selectObject", $a_selection_par="sel_ref_id", $a_id="rep_exp_sel")
setTypeWhiteList($a_val)
Set type white list.
setClickableTypes($a_types)
set Whitelist for clickable items