63 public function getPath($a_startnode, $a_endnode)
65 $this->startnode = $a_startnode;
66 $this->endnode = $a_endnode;
96 $this->hide_leaf = $a_status;
110 $this->useImages = $a_status;
128 $this->display_cut = $a_status;
147 $tpl =
new ilTemplate(
'tpl.locator_text_only.html',
true,
true,
"Services/Locator");
152 if ($this->
displayCut() && $this->startnode != ROOT_FOLDER_ID) {
153 $tpl->setCurrentBlock(
'locator_item');
154 $tpl->setVariable(
'ITEM',
"...");
155 $tpl->parseCurrentBlock();
165 if ($ref_id == ROOT_FOLDER_ID) {
166 $title = $this->lng->txt(
'repository');
169 $tpl->touchBlock(
'locator_separator_prefix');
172 $tpl->setCurrentBlock(
'locator_item');
174 $tpl->parseCurrentBlock();
180 include_once
'./Services/Link/classes/class.ilLink.php';
182 $tpl =
new ilTemplate(
'tpl.locator.html',
true,
true,
'Services/Locator');
187 if ($this->
displayCut() && $this->startnode != ROOT_FOLDER_ID) {
188 $tpl->setCurrentBlock(
'locator_item');
189 $tpl->setVariable(
'ITEM',
"...");
190 $tpl->parseCurrentBlock();
201 if ($ref_id == ROOT_FOLDER_ID) {
202 $title = $this->lng->txt(
'repository');
205 $tpl->touchBlock(
'locator_separator_prefix');
208 $tpl->setCurrentBlock(
'locator_img');
210 $tpl->setVariable(
'IMG_ALT', $this->lng->txt(
'obj_' .
$type));
211 $tpl->parseCurrentBlock();
213 $tpl->setCurrentBlock(
'locator_item');
216 $tpl->parseCurrentBlock();
230 $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="")