33 include_once
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php";
34 include_once
"./Modules/Test/classes/inc.AssessmentConstants.php";
62 $this->target_class = $a_target_class;
65 $this->root_id = $this->tree->readRootId();
66 $this->order_column =
"title";
84 public function expandPathByRefId(
$ref_id)
97 foreach((array)
$path as $node_id)
99 if(!in_array($node_id,
$_SESSION[$this->expand_variable]))
108 $this->selectable_type = $a_type;
112 $this->ref_id = $a_ref_id;
118 if($a_type == $this->selectable_type)
120 $this->ctrl->setParameterByClass($this->target_class,
'source_id',$a_node_id);
121 return $this->ctrl->getLinkTargetByClass($this->target_class,
'linkChilds');
125 $this->ctrl->setParameterByClass($this->target_class,
"ref_id",$this->ref_id);
126 return $this->ctrl->getLinkTargetByClass($this->target_class,
'addSolutionHint');
138 return $a_type == $this->selectable_type and $a_ref_id !=
$this->ref_id;
150 if ($rbacsystem->checkAccess(
"read", $a_ref_id))
172 include_once
"./Services/UICore/classes/class.ilTemplate.php";
173 $tpl =
new ilTemplate(
"tpl.tree.html",
true,
true,
"Services/UIComponent/Explorer");
175 $tpl->setCurrentBlock(
"text");
176 $tpl->setVariable(
"OBJ_TITLE", $lng->txt(
"repository"));
177 $tpl->parseCurrentBlock();
179 $tpl->setCurrentBlock(
"row");
180 $tpl->parseCurrentBlock();
182 $this->output[] =
$tpl->get();