14 include_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
23 function __construct($a_target, $a_par_class =
"ilpcfilelistgui")
28 $this->parent_class = $a_par_class;
31 $this->force_open_path = array();
32 if (
$_GET[
"ref_id"] > 0)
34 $this->force_open_path = $tree->getPathId(
$_GET[
"ref_id"]);
41 $this->selectable_types = $a_types;
46 $this->ref_id = $a_ref_id;
53 $ilCtrl->setParameterByClass($this->parent_class,
"subCmd",
"selectFile");
54 $ilCtrl->setParameterByClass($this->parent_class,
"file_ref_id", $a_node_id);
55 $link = $ilCtrl->getLinkTargetByClass($this->parent_class,
$_GET[
"cmd"]);
68 if ($a_type ==
"file" &&
69 $ilAccess->checkAccess(
"write",
"", $a_ref_id))
88 if ($ilAccess->checkAccess(
"read",
"", $a_ref_id))
110 $tpl->setCurrentBlock(
"icon");
112 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt(
"repository"));
113 $tpl->parseCurrentBlock();
115 $tpl->setCurrentBlock(
"text");
116 $tpl->setVariable(
"OBJ_TITLE", $lng->txt(
"repository"));
117 $tpl->parseCurrentBlock();
122 $tpl->touchBlock(
"element");
131 if (in_array($a_obj_id, $this->force_open_path))