64 public function getPath($a_startnode,$a_endnode)
66 $this->startnode = $a_startnode;
67 $this->endnode = $a_endnode;
97 $this->hide_leaf = $a_status;
111 $this->useImages = $a_status;
129 $this->display_cut = $a_status;
149 $tpl =
new ilTemplate(
'tpl.locator_text_only.html',
true,
true,
"Services/Locator");
154 if($this->
displayCut() && $this->startnode != ROOT_FOLDER_ID)
156 $tpl->setCurrentBlock(
'locator_item');
157 $tpl->setVariable(
'ITEM',
"...");
158 $tpl->parseCurrentBlock();
170 if($ref_id == ROOT_FOLDER_ID)
172 $title = $this->lng->txt(
'repository');
177 $tpl->touchBlock(
'locator_separator_prefix');
180 $tpl->setCurrentBlock(
'locator_item');
181 $tpl->setVariable(
'ITEM',$title);
182 $tpl->parseCurrentBlock();
190 include_once
'./Services/Link/classes/class.ilLink.php';
192 $tpl =
new ilTemplate(
'tpl.locator.html',
true,
true,
'Services/Locator');
197 if($this->
displayCut() && $this->startnode != ROOT_FOLDER_ID)
199 $tpl->setCurrentBlock(
'locator_item');
200 $tpl->setVariable(
'ITEM',
"...");
201 $tpl->parseCurrentBlock();
214 if($ref_id == ROOT_FOLDER_ID)
216 $title = $this->lng->txt(
'repository');
221 $tpl->touchBlock(
'locator_separator_prefix');
225 $tpl->setCurrentBlock(
'locator_img');
227 $tpl->setVariable(
'IMG_ALT',$this->lng->txt(
'obj_'.$type));
228 $tpl->parseCurrentBlock();
230 $tpl->setCurrentBlock(
'locator_item');
232 $tpl->setVariable(
'ITEM',$title);
233 $tpl->parseCurrentBlock();
247 $path = $this->tree->getPathId($this->endnode,$this->startnode);