4 require_once
'./Services/Repository/classes/class.ilRepositoryExplorer.php';
33 parent::ilRepositoryExplorer($a_target, $a_top_node);
42 $this->force_open_path = $a_path;
57 return "ilias.php?baseClass=ilshopcontroller&ref_id=".$a_node_id;
60 return "ilias.php?cmd=redirect&baseClass=ilshopcontroller&ref_id=".$a_node_id;
63 return "ilias.php?baseClass=ilshopcontroller&ref_id=".$a_node_id;
66 return "ilias.php?baseClass=ilshopcontroller&ref_id=".$a_node_id;
69 return "ilias.php?cmd=redirect&baseClass=ilshopcontroller&ref_id=".$a_node_id;
72 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $a_node_id);
73 $link = $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"infoScreen");
74 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
78 include_once(
'./Services/Link/classes/class.ilLink.php');
95 $tpl->setCurrentBlock(
"icon");
96 $nd = $tree->getNodeData(ROOT_FOLDER_ID);
97 $title =
$nd[
"title"];
99 if ($title ==
"ILIAS")
101 $title = $lng->txt(
"repository");
105 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt(
"icon").
" ".$title);
106 $tpl->parseCurrentBlock();
108 $tpl->setCurrentBlock(
"link");
109 $tpl->setVariable(
"TITLE", $title);
111 $tpl->setVariable(
"LINK_TARGET",
"ilias.php?baseClass=ilshopcontroller&ref_id=1");
112 $tpl->parseCurrentBlock();
114 $tpl->setCurrentBlock(
"element");
115 $tpl->parseCurrentBlock();
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
formatHeader(&$tpl, $a_obj_id, $a_option)
__construct($a_target, $a_top_node=0)
buildLinkTarget($a_node_id, $a_type)
static _getStaticLink($a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
setForceOpenPath($a_path)
set force open path
Class ilShopRepositoryExplorer.