62 public function getPath($a_startnode,$a_endnode)
64 $this->startnode = $a_startnode;
65 $this->endnode = $a_endnode;
96 $this->useImages = $a_status;
116 $tpl =
new ilTemplate(
'tpl.locator_text_only.html',
true,
true,
"Services/Locator");
126 if($ref_id == ROOT_FOLDER_ID)
128 $title = $this->lng->txt(
'repository');
133 $tpl->touchBlock(
'locator_separator_prefix');
136 $tpl->setCurrentBlock(
'locator_item');
138 $tpl->parseCurrentBlock();
146 include_once
'./classes/class.ilLink.php';
159 if($ref_id == ROOT_FOLDER_ID)
161 $title = $this->lng->txt(
'repository');
166 $tpl->touchBlock(
'locator_separator_prefix');
170 $tpl->setCurrentBlock(
'locator_img');
172 $tpl->setVariable(
'IMG_ALT',$this->lng->txt(
'obj_'.$type));
173 $tpl->parseCurrentBlock();
175 $tpl->setCurrentBlock(
'locator_item');
178 $tpl->parseCurrentBlock();
192 $path = $this->tree->getPathId($this->endnode,$this->startnode);
193 unset($path[count($path) - 1]);
194 return $path ? $path : array();