ILIAS  release_7 Revision v7.30-3-g800a261c036
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
5include_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}
An exception for terminatinating execution or to throw for unit testing.
__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")
Constructor.
isNodeClickable($a_node)
Is node clickable?boolean node clickable true/false
getNodeHref($a_node)
Get href for node.string href attribute
Explorer for selecting repository items.
setClickableTypes($a_types)
set Whitelist for clickable items
setTypeWhiteList($a_val)
Set type white list.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc