19declare(strict_types=1);
47 $this->tree =
$DIC->repositoryTree();
48 $this->
lng = $DIC->language();
49 $this->
ctrl = $DIC[
'ilCtrl'];
52 $this->
access = $DIC->access();
61 public function getPath(
int $a_startnode,
int $a_endnode): string
63 $this->startnode = $a_startnode;
64 $this->endnode = $a_endnode;
89 $this->hide_leaf = $a_status;
99 $this->useImages = $a_status;
116 $this->display_cut = $a_status;
133 $tpl =
new ilTemplate(
'tpl.locator_text_only.html',
true,
true,
"components/ILIAS/Locator");
139 $tpl->setCurrentBlock(
'locator_item');
140 $tpl->setVariable(
'ITEM',
"...");
141 $tpl->parseCurrentBlock();
152 $title = $this->
lng->txt(
'repository');
155 $tpl->touchBlock(
'locator_separator_prefix');
158 $tpl->setCurrentBlock(
'locator_item');
159 $tpl->setVariable(
'ITEM', $title);
160 $tpl->parseCurrentBlock();
167 $tpl =
new ilTemplate(
'tpl.locator.html',
true,
true,
'components/ILIAS/Locator');
173 $tpl->setCurrentBlock(
'locator_item');
174 $tpl->setVariable(
'ITEM',
"...");
175 $tpl->parseCurrentBlock();
187 $title = $this->
lng->txt(
'repository');
190 $tpl->touchBlock(
'locator_separator_prefix');
193 $tpl->setCurrentBlock(
'locator_img');
195 $tpl->setVariable(
'IMG_ALT', $this->
lng->txt(
'obj_' . $type));
196 $tpl->parseCurrentBlock();
199 if (!$this->tree->isDeleted(
$ref_id) &&
200 ($this->access->checkAccess(
'visible',
'', (
int)
$ref_id)
201 || $this->access->checkAccess(
'read',
'', (
int)
$ref_id))) {
202 $tpl->setCurrentBlock(
'locator_item');
203 $tpl->setVariable(
'LINK_ITEM', $this->
buildLink($ref_id, $type));
204 $tpl->setVariable(
'ITEM', $title);
205 $tpl->parseCurrentBlock();
207 $tpl->setCurrentBlock(
'locator_item');
208 $tpl->setVariable(
'ITEM_READ_ONLY', $title);
209 $tpl->parseCurrentBlock();
214 $tpl->setVariable(
"TXT_BREADCRUMBS", $this->
lng->txt(
"breadcrumb_navigation"));
223 return $this->
lng->txt(
'obj_' . $type);
231 $current_parameters = $this->
ctrl->getParameterArrayByClass(ilAdministrationGUI::class);
232 $this->
ctrl->setParameterByClass(ilAdministrationGUI::class,
'ref_id',
$ref_id);
233 $link = $this->
ctrl->getLinkTargetByClass(ilAdministrationGUI::class,
'jump');
234 $this->
ctrl->clearParameterByClass(ilAdministrationGUI::class,
'ref_id');
235 if (isset($current_parameters[
'ref_id'])) {
236 $this->
ctrl->setParameterByClass(ilAdministrationGUI::class,
'ref_id', $current_parameters[
'ref_id']);
240 return $this->
refinery->encode()->htmlAttributeValue()->transform(
241 ilLink::_getLink(
$ref_id, $type)
250 $path = $this->tree->getPathId($this->endnode, $this->startnode);
parses the objects.xml it handles the xml-description of all ilias objects
static _lookupType(int $id, bool $reference=false)
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
getUseImages()
get use images
getPath(int $a_startnode, int $a_endnode)
get path
displayCut()
Display a cut with "...".
ILIAS Refinery Factory $refinery
setUseImages(bool $a_status)
enableDisplayCut(bool $a_status)
Display a cut with "...".
buildLink(int $ref_id, string $type)
__construct()
Constructor.
enableTextOnly(bool $a_status)
render path as text only
buildTitle(int $a_obj_id)
ilObjectDefinition $objectDefinition
enableHideLeaf(bool $a_status)
Hide leaf node in path.
special template class to simplify handling of ITX/PEAR
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...