70    public function getPath($a_startnode, $a_endnode)
 
   72        $this->startnode = $a_startnode;
 
   73        $this->endnode = $a_endnode;
 
  103        $this->hide_leaf = $a_status;
 
  117        $this->useImages = $a_status;
 
  135        $this->display_cut = $a_status;
 
  154            $tpl = 
new ilTemplate(
'tpl.locator_text_only.html', 
true, 
true, 
"Services/Locator");
 
  160                $tpl->setCurrentBlock(
'locator_item');
 
  161                $tpl->setVariable(
'ITEM', 
"...");
 
  162                $tpl->parseCurrentBlock();
 
  173                        $title = $this->lng->txt(
'repository');
 
  176                    $tpl->touchBlock(
'locator_separator_prefix');
 
  179                $tpl->setCurrentBlock(
'locator_item');
 
  180                $tpl->setVariable(
'ITEM', $title);
 
  181                $tpl->parseCurrentBlock();
 
  187            include_once 
'./Services/Link/classes/class.ilLink.php';
 
  189            $tpl = 
new ilTemplate(
'tpl.locator.html', 
true, 
true, 
'Services/Locator');
 
  195                $tpl->setCurrentBlock(
'locator_item');
 
  196                $tpl->setVariable(
'ITEM', 
"...");
 
  197                $tpl->parseCurrentBlock();
 
  209                        $title = $this->lng->txt(
'repository');
 
  212                    $tpl->touchBlock(
'locator_separator_prefix');
 
  215                    $tpl->setCurrentBlock(
'locator_img');
 
  217                    $tpl->setVariable(
'IMG_ALT', $this->lng->txt(
'obj_' . 
$type));
 
  218                    $tpl->parseCurrentBlock();
 
  221                if (!$this->tree->isDeleted($ref_id)) {
 
  222                    $tpl->setCurrentBlock(
'locator_item');
 
  224                    $tpl->setVariable(
'ITEM', $title);
 
  225                    $tpl->parseCurrentBlock();
 
  227                    $tpl->setCurrentBlock(
'locator_item');
 
  228                    $tpl->setVariable(
'ITEM_READ_ONLY', $title);
 
  229                    $tpl->parseCurrentBlock();
 
  234            $tpl->setVariable(
"TXT_BREADCRUMBS", $this->lng->txt(
"breadcrumb_navigation"));
 
  255        $path = $this->tree->getPathId($this->endnode, $this->startnode);
 
  262            unset($path[count($path) - 1]);
 
  264        return $path ? $path : array();
 
An exception for terminatinating execution or to throw for unit testing.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
static getLogger($a_component_id)
Get component logger.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static _lookupType($a_id, $a_reference=false)
lookup object type
Creates a path for a start and endnode.
getUseImages()
get use images
setUseImages($a_status)
set use images
displayCut()
Display a cut with "...".
__construct()
Constructor.
getPath($a_startnode, $a_endnode)
get path
enableDisplayCut($a_status)
Display a cut with "...".
enableHideLeaf($a_status)
Hide leaf node in path.
enableTextOnly($a_status)
render path as text only
special template class to simplify handling of ITX/PEAR
static secureLink($a_str)
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...
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl