ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPCFileItemFileSelectorGUI.php
Go to the documentation of this file.
1<?php
2
25{
30 public function __construct(
31 $a_parent_obj,
32 string $a_parent_cmd,
33 $a_selection_gui = null,
34 string $a_selection_cmd = "selectObject",
35 string $a_selection_par = "sel_ref_id",
36 string $a_id = "rep_exp_sel"
37 ) {
38 parent::__construct($a_parent_obj, $a_parent_cmd, $a_selection_gui, $a_selection_cmd, $a_selection_par, $a_id);
39 $this->setTypeWhiteList(array("root", "cat", "grp", "crs", "file", "fold"));
40 $this->setClickableTypes(array("file"));
41 }
42
46 public function getNodeHref($a_node): string
47 {
49
50 $ctrl->setParameterByClass($this->selection_gui, "subCmd", "selectFile");
51
52 return parent::getNodeHref($a_node);
53 }
54
58 public function isNodeClickable($a_node): bool
59 {
61
62 if (!$access->checkAccess("write", "", $a_node["child"])) {
63 return false;
64 }
65
66 return parent::isNodeClickable($a_node);
67 }
68}
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct( $a_parent_obj, string $a_parent_cmd, $a_selection_gui=null, string $a_selection_cmd="selectObject", string $a_selection_par="sel_ref_id", string $a_id="rep_exp_sel")
Explorer for selecting repository items.
setTypeWhiteList(array $a_val)
Set type white list.
checkAccess(string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc