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');
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');
233 $tpl->parseCurrentBlock();
247 $path = $this->tree->getPathId($this->endnode,$this->startnode);
Creates a path for a start and endnode.
getUseImages()
get use images
setUseImages($a_status)
set use images
displayCut()
Display a cut with "...".
static _lookupTitle($a_id)
lookup object title
enableTextOnly($a_status)
render path as text only
static getTypeIconPath($a_type, $a_obj_id, $a_size='small')
Get type icon path path Return image path for icon_xxx.pngs Or (if enabled) path to custom icon Depre...
static _lookupObjId($a_id)
special template class to simplify handling of ITX/PEAR
enableHideLeaf($a_status)
Hide leaf node in path.
enableDisplayCut($a_status)
Display a cut with "...".
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
__construct()
Constructor.
getPath($a_startnode, $a_endnode)
get path
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")