66 public function getPath($a_startnode, $a_endnode)
68 $this->startnode = $a_startnode;
69 $this->endnode = $a_endnode;
99 $this->hide_leaf = $a_status;
113 $this->useImages = $a_status;
131 $this->display_cut = $a_status;
150 $tpl =
new ilTemplate(
'tpl.locator_text_only.html',
true,
true,
"Services/Locator");
155 if ($this->
displayCut() && $this->startnode != ROOT_FOLDER_ID) {
156 $tpl->setCurrentBlock(
'locator_item');
157 $tpl->setVariable(
'ITEM',
"...");
158 $tpl->parseCurrentBlock();
168 if ($ref_id == ROOT_FOLDER_ID) {
169 $title = $this->lng->txt(
'repository');
172 $tpl->touchBlock(
'locator_separator_prefix');
175 $tpl->setCurrentBlock(
'locator_item');
177 $tpl->parseCurrentBlock();
183 include_once
'./Services/Link/classes/class.ilLink.php';
185 $tpl =
new ilTemplate(
'tpl.locator.html',
true,
true,
'Services/Locator');
190 if ($this->
displayCut() && $this->startnode != ROOT_FOLDER_ID) {
191 $tpl->setCurrentBlock(
'locator_item');
192 $tpl->setVariable(
'ITEM',
"...");
193 $tpl->parseCurrentBlock();
204 if ($ref_id == ROOT_FOLDER_ID) {
205 $title = $this->lng->txt(
'repository');
208 $tpl->touchBlock(
'locator_separator_prefix');
211 $tpl->setCurrentBlock(
'locator_img');
213 $tpl->setVariable(
'IMG_ALT', $this->lng->txt(
'obj_' .
$type));
214 $tpl->parseCurrentBlock();
216 $tpl->setCurrentBlock(
'locator_item');
219 $tpl->parseCurrentBlock();
242 $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 "...".
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="")