29 $this->entries = array();
31 $this->offline =
false;
41 $this->textonly = $a_textonly;
46 $this->offline = $a_offline;
51 return $this->offline;
61 return $this->textonly;
76 $a_ref_id =
$_GET[
"ref_id"];
79 include_once
'./Services/Container/classes/class.ilMemberViewSettings.php';
86 $a_start = ROOT_FOLDER_ID;
90 if (defined(
"ILIAS_MODULE"))
97 $path = $tree->getPathFull($a_ref_id,$a_start);
102 if (!in_array(
$row[
"type"], array(
"root",
"cat",
"crs",
"fold",
"grp",
"icrs")))
106 if (
$row[
"title"] ==
"ILIAS" &&
$row[
"type"] ==
"root")
108 $row[
"title"] = $this->lng->txt(
"repository");
112 $pre.
"repository.php?cmd=frameset&ref_id=".
$row[
"child"],
130 $a_ref_id =
$_GET[
"ref_id"];
135 $path = $tree->getPathFull($a_ref_id);
140 if (!in_array(
$row[
"type"], array(
"root",
"cat",
"crs",
"fold",
"grp",
"icrs")))
145 if (
$row[
"child"] == ROOT_FOLDER_ID)
147 $row[
"title"] = $lng->txt(
"repository");
150 $class_name = $objDefinition->getClassName(
$row[
"type"]);
151 $class = strtolower(
"ilObj".$class_name.
"GUI");
152 $ilCtrl->setParameterByClass($class,
"ref_id",
$row[
"child"]);
154 $ilCtrl->getLinkTargetbyClass($class,
"view"),
"",
$row[
"child"]);
165 $path = $tree->getPathFull($a_ref_id);
169 $r_path = array_reverse(
$path);
173 foreach ($r_path as $key =>
$row)
177 if (in_array(
$row[
"type"], array(
"root",
"cat",
"grp",
"crs")) &&
178 $row[
"child"] != $a_ref_id)
180 $first =
$row[
"child"];
183 if ($a_stop ==
$row[
"child"])
187 $omit[
$row[
"child"]] = $do_omit;
193 if ($first ==
$row[
"child"])
199 if ($add_it && !$omit[
$row[
"child"]] &&
200 (!$a_omit_node || (
$row[
"child"] != $a_ref_id)))
203 if (
$row[
"title"] ==
"ILIAS" &&
$row[
"type"] ==
"root")
205 $row[
"title"] = $this->lng->txt(
"repository");
208 "./goto.php?client_id=".rawurlencode(CLIENT_ID).
"&target=".
$row[
"type"].
"_".
$row[
"child"],
209 "_top", $row[
"child"], $row[
"type"]);
222 function addItem($a_title, $a_link, $a_frame =
"", $a_ref_id = 0,
$type = null)
224 $this->entries[] = array(
"title" => $a_title,
225 "link" => $a_link,
"frame" => $a_frame,
"ref_id" => $a_ref_id,
"type" =>
$type);
233 $this->entries = array();
253 $loc_tpl =
new ilTemplate(
"tpl.locator_text_only.html",
true,
true,
"Services/Locator");
257 $loc_tpl =
new ilTemplate(
"tpl.locator.html",
true,
true,
"Services/Locator");
263 if (is_array($items))
265 foreach($items as $item)
269 $loc_tpl->touchBlock(
"locator_separator_prefix");
272 if ($item[
"ref_id"] > 0)
283 $loc_tpl->setCurrentBlock(
"locator_img");
284 $loc_tpl->setVariable(
"IMG_SRC", $icon_path);
285 $loc_tpl->setVariable(
"IMG_ALT",
286 $lng->txt(
"obj_".$type));
287 $loc_tpl->parseCurrentBlock();
290 $loc_tpl->setCurrentBlock(
"locator_item");
291 if ($item[
"link"] !=
"")
293 $loc_tpl->setVariable(
"LINK_ITEM", $item[
"link"]);
294 if ($item[
"frame"] !=
"")
296 $loc_tpl->setVariable(
"LINK_TARGET",
' target="'.$item[
"frame"].
'" ');
298 $loc_tpl->setVariable(
"ITEM", $item[
"title"]);
302 $loc_tpl->setVariable(
"PREFIX", $item[
"title"]);
304 $loc_tpl->parseCurrentBlock();
311 $loc_tpl->setVariable(
"NOITEM",
" ");
312 $loc_tpl->touchBlock(
"locator");
314 $loc_tpl->setVariable(
"TXT_BREADCRUMBS", $lng->txt(
"breadcrumb_navigation"));
316 return trim($loc_tpl->get());