9 use \ilMainMenuSearchGUI;
10 use \ilUIHookProcessor;
11 use \ilRegistrationSettings;
16 use \ilNotificationOSDHandler;
18 use \ilObjSystemFolder;
21 use \ilMemberViewSettings;
24 include_once(
"Services/Mail/classes/class.ilMailGlobalServices.php");
25 require_once(
"Services/MainMenu/classes/class.ilMainMenuGUI.php");
41 public function __construct($a_target =
"_top", $a_use_start_template =
false, $a_main_tpl = null)
45 if ($a_main_tpl != null) {
46 $this->main_tpl = $a_main_tpl;
48 $this->main_tpl = $DIC[
"tpl"];
51 $this->rbacsystem = $DIC->rbac()->system();
52 $this->
user = $DIC->user();
53 $this->lng = $DIC->language();
54 $this->plugin_admin = $DIC[
"ilPluginAdmin"];
55 $this->tree = $DIC->repositoryTree();
56 $this->access = $DIC->access();
57 $this->nav_history = $DIC[
"ilNavigationHistory"];
59 $this->ctrl = $DIC->ctrl();
60 $this->help = $DIC[
"ilHelp"];
61 $this->ui = $DIC->ui();
62 $rbacsystem = $DIC->rbac()->system();
63 $ilUser = $DIC->user();
72 $this->target = $a_target;
73 $this->start_template = $a_use_start_template;
77 $this->
setMode(self::MODE_FULL);
80 include_once
'./Services/Container/classes/class.ilMemberViewSettings.php';
82 if ($set->isActive()) {
86 $DIC[
"lti"]->member_view =
false;
87 $DIC[
"lti"]->member_view_url =
"";
90 include_once
'./Services/Link/classes/class.ilLink.php';
96 $DIC[
"lti"]->member_view =
true;
97 $DIC[
"lti"]->member_view_url =
$url;
98 $DIC[
"lti"]->member_view_close_txt = $lng->txt(
'mem_view_close');
100 $DIC[
"lti"]->member_view =
false;
101 $DIC[
"lti"]->member_view_url =
"";
108 return "ilFixedTopSpacerBarOnly";
121 if ($this->main_tpl->blockExists(
'view_append_inline_css')) {
123 $css = $view->appendInlineCss();
124 foreach ($css as $cssfile) {
125 $css_html .=
"<style type=\"text/css\">\n";
126 $css_html .= file_get_contents($cssfile);
127 $css_html .=
"</style>\n";
129 $this->main_tpl->setCurrentBlock(
"view_append_inline_css");
130 $this->main_tpl->setVariable(
"APPEND_STYLES", $css_html);
131 $this->main_tpl->parseCurrentBlock();
133 $view->render($this->tpl,
'top_bar_header');
134 if (!$view->member_view) {
135 $view->render($this->tpl,
'view_nav');
136 $view->render($this->tpl,
'user_logged_in');
138 $this->tpl->setVariable(
"TOPBAR_CLASS",
" ilMemberViewMainHeader");
139 $this->tpl->setVariable(
"MEMBER_VIEW_INFO", $lng->txt(
"mem_view_long"));
143 include_once(
"./Modules/SystemFolder/classes/class.ilObjSystemFolder.php");
144 $this->tpl->setVariable(
"TXT_MAIN_MENU", $lng->txt(
"main_menu"));
145 $this->tpl->parseCurrentBlock();
151 $DIC->logger()->lti()->write(
$txt);
setTemplateVars()
set all template variables (images, scripts, target frames, ...)
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
mail($to, $subject, $message, $additional_headers=null, $additional_parameters=null)
static _lookupObjId($a_id)
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
Handles display of the main menu for LTI.
__construct($a_target="_top", $a_use_start_template=false, $a_main_tpl=null)
static getInstance()
Get instance.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
special template class to simplify handling of ITX/PEAR