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;
91 $path = $tree->getPathFull($a_ref_id,$a_start);
96 if (!in_array(
$row[
"type"], array(
"root",
"cat",
"crs",
"fold",
"grp",
"icrs")))
100 if (
$row[
"title"] ==
"ILIAS" &&
$row[
"type"] ==
"root")
102 $row[
"title"] = $this->lng->txt(
"repository");
105 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$row[
"child"]);
107 $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"frameset"),
109 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
126 $a_ref_id =
$_GET[
"ref_id"];
131 $path = $tree->getPathFull($a_ref_id);
136 if (!in_array(
$row[
"type"], array(
"root",
"cat",
"crs",
"fold",
"grp",
"icrs")))
141 if (
$row[
"child"] == ROOT_FOLDER_ID)
143 $row[
"title"] = $lng->txt(
"repository");
146 $class_name = $objDefinition->getClassName(
$row[
"type"]);
147 $class = strtolower(
"ilObj".$class_name.
"GUI");
148 $ilCtrl->setParameterByClass($class,
"ref_id",
$row[
"child"]);
150 $ilCtrl->getLinkTargetbyClass($class,
"view"),
"",
$row[
"child"]);
161 $path = $tree->getPathFull($a_ref_id);
165 $r_path = array_reverse(
$path);
169 foreach ($r_path as $key =>
$row)
173 if (in_array(
$row[
"type"], array(
"root",
"cat",
"grp",
"crs")) &&
174 $row[
"child"] != $a_ref_id)
176 $first =
$row[
"child"];
179 if ($a_stop ==
$row[
"child"])
183 $omit[
$row[
"child"]] = $do_omit;
189 if ($first ==
$row[
"child"])
195 if ($add_it && !$omit[
$row[
"child"]] &&
196 (!$a_omit_node || (
$row[
"child"] != $a_ref_id)))
199 if (
$row[
"title"] ==
"ILIAS" &&
$row[
"type"] ==
"root")
201 $row[
"title"] = $this->lng->txt(
"repository");
204 "./goto.php?client_id=".rawurlencode(CLIENT_ID).
"&target=".
$row[
"type"].
"_".
$row[
"child"],
205 "_top", $row[
"child"], $row[
"type"]);
218 function addItem($a_title, $a_link, $a_frame =
"", $a_ref_id = 0, $type = null)
220 $this->entries[] = array(
"title" => $a_title,
221 "link" => $a_link,
"frame" => $a_frame,
"ref_id" => $a_ref_id,
"type" => $type);
229 $this->entries = array();
249 $loc_tpl =
new ilTemplate(
"tpl.locator_text_only.html",
true,
true,
"Services/Locator");
253 $loc_tpl =
new ilTemplate(
"tpl.locator.html",
true,
true,
"Services/Locator");
259 if (is_array($items))
261 foreach($items as $item)
265 $loc_tpl->touchBlock(
"locator_separator_prefix");
268 if ($item[
"ref_id"] > 0)
279 $loc_tpl->setCurrentBlock(
"locator_img");
280 $loc_tpl->setVariable(
"IMG_SRC", $icon_path);
281 $loc_tpl->setVariable(
"IMG_ALT",
282 $lng->txt(
"obj_".$type));
283 $loc_tpl->parseCurrentBlock();
286 $loc_tpl->setCurrentBlock(
"locator_item");
287 if ($item[
"link"] !=
"")
289 $loc_tpl->setVariable(
"LINK_ITEM", $item[
"link"]);
290 if ($item[
"frame"] !=
"")
292 $loc_tpl->setVariable(
"LINK_TARGET",
' target="'.$item[
"frame"].
'" ');
294 $loc_tpl->setVariable(
"ITEM", $item[
"title"]);
298 $loc_tpl->setVariable(
"PREFIX", $item[
"title"]);
300 $loc_tpl->parseCurrentBlock();
307 $loc_tpl->setVariable(
"NOITEM",
" ");
308 $loc_tpl->touchBlock(
"locator");
310 $loc_tpl->setVariable(
"TXT_BREADCRUMBS", $lng->txt(
"breadcrumb_navigation"));
312 return trim($loc_tpl->get());
326 if (is_array($items))
328 foreach($items as $item)
335 $str.= $item[
"title"];