19 declare(strict_types=1);
    46         $this->tree = $DIC->repositoryTree();
    47         $this->
lng = $DIC->language();
    48         $this->
ctrl = $DIC[
'ilCtrl'];
    59     public function getPath(
int $a_startnode, 
int $a_endnode): string
    61         $this->startnode = $a_startnode;
    62         $this->endnode = $a_endnode;
    87         $this->hide_leaf = $a_status;
    97         $this->useImages = $a_status;
   114         $this->display_cut = $a_status;
   131             $tpl = 
new ilTemplate(
'tpl.locator_text_only.html', 
true, 
true, 
"components/ILIAS/Locator");
   137                 $tpl->setCurrentBlock(
'locator_item');
   138                 $tpl->setVariable(
'ITEM', 
"...");
   139                 $tpl->parseCurrentBlock();
   150                         $title = $this->
lng->txt(
'repository');
   153                     $tpl->touchBlock(
'locator_separator_prefix');
   156                 $tpl->setCurrentBlock(
'locator_item');
   157                 $tpl->setVariable(
'ITEM', $title);
   158                 $tpl->parseCurrentBlock();
   165             $tpl = 
new ilTemplate(
'tpl.locator.html', 
true, 
true, 
'components/ILIAS/Locator');
   171                 $tpl->setCurrentBlock(
'locator_item');
   172                 $tpl->setVariable(
'ITEM', 
"...");
   173                 $tpl->parseCurrentBlock();
   185                         $title = $this->
lng->txt(
'repository');
   188                     $tpl->touchBlock(
'locator_separator_prefix');
   191                     $tpl->setCurrentBlock(
'locator_img');
   193                     $tpl->setVariable(
'IMG_ALT', $this->
lng->txt(
'obj_' . $type));
   194                     $tpl->parseCurrentBlock();
   197                 if (!$this->tree->isDeleted($ref_id)) {
   198                     $tpl->setCurrentBlock(
'locator_item');
   199                     $tpl->setVariable(
'LINK_ITEM', $this->
buildLink($ref_id, $type));
   200                     $tpl->setVariable(
'ITEM', $title);
   201                     $tpl->parseCurrentBlock();
   203                     $tpl->setCurrentBlock(
'locator_item');
   204                     $tpl->setVariable(
'ITEM_READ_ONLY', $title);
   205                     $tpl->parseCurrentBlock();
   210             $tpl->setVariable(
"TXT_BREADCRUMBS", $this->
lng->txt(
"breadcrumb_navigation"));
   219             return $this->
lng->txt(
'obj_' . $type);
   227             $current_parameters = $this->
ctrl->getParameterArrayByClass(ilAdministrationGUI::class);
   228             $this->
ctrl->setParameterByClass(ilAdministrationGUI::class, 
'ref_id', $ref_id);
   229             $link = $this->
ctrl->getLinkTargetByClass(ilAdministrationGUI::class, 
'jump');
   230             $this->
ctrl->clearParameterByClass(ilAdministrationGUI::class, 
'ref_id');
   231             if (isset($current_parameters[
'ref_id'])) {
   232                 $this->
ctrl->setParameterByClass(ilAdministrationGUI::class, 
'ref_id', $current_parameters[
'ref_id']);
   236         return $this->
refinery->encode()->htmlAttributeValue()->transform(
   237             ilLink::_getLink($ref_id, $type)
   246         $path = $this->tree->getPathId($this->endnode, $this->startnode);
 
getUseImages()
get use images 
 
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item. 
 
enableTextOnly(bool $a_status)
render path as text only 
 
displayCut()
Display a cut with "...". 
 
setUseImages(bool $a_status)
 
enableDisplayCut(bool $a_status)
Display a cut with "...". 
 
static _lookupObjId(int $ref_id)
 
ilObjectDefinition $objectDefinition
 
static _lookupTitle(int $obj_id)
 
enableHideLeaf(bool $a_status)
Hide leaf node in path. 
 
buildLink(int $ref_id, string $type)
 
ILIAS Refinery Factory $refinery
 
getPath(int $a_startnode, int $a_endnode)
get path 
 
__construct()
Constructor. 
 
buildTitle(int $a_obj_id)
 
static _lookupType(int $id, bool $reference=false)