ILIAS  release_8 Revision v8.24
ilGlobalTemplate Class Reference

special template class to simplify handling of ITX/PEAR More...

+ Inheritance diagram for ilGlobalTemplate:
+ Collaboration diagram for ilGlobalTemplate:

Public Member Functions

 __construct (string $file, bool $flag1, bool $flag2, string $in_module='', string $vars=self::DEFAULT_BLOCK, bool $plugin=false, bool $a_use_cache=true)
 
 printToString (string $part=self::DEFAULT_BLOCK)
 
 hideFooter ()
 Make the template hide the footer. More...
 
 setOnScreenMessage (string $a_type, string $a_txt, bool $a_keep=false)
 Set a message to be displayed to the user. More...
 
 addJavaScript (string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
 Add a javascript file that should be included in the header. More...
 
 addOnLoadCode (string $a_code, int $a_batch=2)
 Add on load code. More...
 
 getOnLoadCodeForAsynch ()
 Get js onload code for ajax calls. More...
 
 resetJavascript ()
 Reset javascript files. More...
 
 fillJavaScriptFiles (bool $a_force=false)
 Probably adds javascript files. More...
 
 fillOnLoadCode ()
 
 addCss (string $a_css_file, string $media="screen")
 Add a css file that should be included in the header. More...
 
 addInlineCss (string $a_css, string $media="screen")
 Add a css file that should be included in the header. More...
 
 fillCssFiles (bool $a_force=false)
 
 setBodyClass (string $a_class="")
 Sets the body-tags class. More...
 
 fillBodyClass ()
 
 renderPage (string $part, bool $a_fill_tabs, bool $a_skip_main_menu, Container $DIC)
 
 loadStandardTemplate ()
 This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STATUSLINE placeholders if they are not already loaded. More...
 
 setTitle (string $a_title, bool $hidden=false)
 Sets title in standard template. More...
 
 setDescription (string $a_descr)
 Sets descripton below title in standard template. More...
 
 setTitleIcon (string $a_icon_path, string $a_icon_desc="")
 set title icon More...
 
 setAlertProperties (array $a_props)
 Set alert properties. More...
 
 clearHeader ()
 Clear header. More...
 
 setHeaderActionMenu (string $a_header)
 Set header action menu. More...
 
 setHeaderPageTitle (string $a_title)
 Sets the title of the page (for browser window). More...
 
 setLocator ()
 Insert locator. More...
 
 setTabs (string $a_tabs_html)
 
 setSubTabs (string $a_tabs_html)
 sets subtabs in standard template More...
 
 fillTabs ()
 
 setContent (string $a_html)
 Sets content for standard template. More...
 
 setLeftContent (string $a_html)
 Sets content of left column. More...
 
 setLeftNavContent (string $a_content)
 Sets content of left navigation column. More...
 
 setRightContent (string $a_html)
 Sets content of right column. More...
 
 fillContentLanguage ()
 
 fillWindowTitle ()
 
 setPageFormAction (string $a_action)
 Sets the pages form action. More...
 
 setLoginTargetPar (string $a_val)
 Set target parameter for login (public sector). More...
 
 getSpecial (string $part=self::DEFAULT_BLOCK, bool $add_error_mess=false, bool $handle_referer=false, bool $add_ilias_footer=false, bool $add_standard_elements=false, bool $a_main_menu=true, bool $a_tabs=true)
 
 printToStdout (string $part=self::DEFAULT_BLOCK, bool $a_fill_tabs=true, bool $a_skip_main_menu=false)
 
 fillScreenReaderFocus ()
 
 setTreeFlatIcon (string $a_link, string $a_mode)
 Sets a tree or flat icon. More...
 
 addLightbox (string $a_html, string $a_id)
 Add lightbox html. More...
 
 addAdminPanelToolbar (ilToolbarGUI $toolb, bool $a_bottom_panel=true, bool $a_arrow=false)
 Add admin panel commands as toolbar. More...
 
 setPermanentLink (string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
 Generates and sets a permanent ilias link. More...
 
 resetHeaderBlock (bool $a_reset_header_action=true)
 Reset all header properties: title, icon, description, alerts, action menu. More...
 
 setFileUploadRefId (int $a_ref_id)
 Enables the file upload into this object by dropping a file. More...
 
 get (string $part=self::DEFAULT_BLOCK)
 
 setVariable (string $variable, $value='')
 Sets the given variable to the given value. More...
 
 setCurrentBlock (string $part=self::DEFAULT_BLOCK)
 
 touchBlock (string $block)
 
 parseCurrentBlock (string $part=self::DEFAULT_BLOCK)
 
 addBlockFile (string $var, string $block, string $template_name, string $in_module=null)
 
 blockExists (string $a_blockname)
 check if block exists in actual template More...
 
 getJSFiles ()
 
 getCSSFiles ()
 
- Public Member Functions inherited from ilGlobalTemplateInterface
 hideFooter ()
 Make the template hide the footer. More...
 
 setOnScreenMessage (string $type, string $a_txt, bool $a_keep=false)
 Set a message to be displayed to the user. More...
 
 addJavaScript (string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
 Add a javascript file that should be included in the header. More...
 
 addOnLoadCode (string $a_code, int $a_batch=2)
 Add on load code. More...
 
 getOnLoadCodeForAsynch ()
 Get js onload code for ajax calls. More...
 
 resetJavascript ()
 Reset javascript files. More...
 
 fillJavaScriptFiles (bool $a_force=false)
 Probably adds javascript files. More...
 
 addCss (string $a_css_file, string $media="screen")
 Add a css file that should be included in the header. More...
 
 addInlineCss (string $a_css, string $media="screen")
 Add a css file that should be included in the header. More...
 
 setBodyClass (string $a_class="")
 Sets the body-tags class. More...
 
 loadStandardTemplate ()
 This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STATUSLINE placeholders if they are not already loaded. More...
 
 setTitle (string $a_title, bool $hidden=false)
 Sets title in standard template. More...
 
 setDescription (string $a_descr)
 Sets description below title in standard template. More...
 
 setTitleIcon (string $a_icon_path, string $a_icon_desc="")
 set title icon More...
 
 setAlertProperties (array $alerts)
 Set alert properties. More...
 
 clearHeader ()
 Clear header. More...
 
 setHeaderActionMenu (string $a_header)
 Set header action menu. More...
 
 setHeaderPageTitle (string $a_title)
 Sets the title of the page (for browser window). More...
 
 setLocator ()
 Insert locator. More...
 
 setTabs (string $a_tabs_html)
 sets tabs in standard template More...
 
 setSubTabs (string $a_tabs_html)
 sets subtabs in standard template More...
 
 setContent (string $a_html)
 Sets content for standard template. More...
 
 setLeftContent (string $a_html)
 Sets content of left column. More...
 
 setLeftNavContent (string $a_content)
 Sets content of left navigation column. More...
 
 setRightContent (string $a_html)
 Sets content of right column. More...
 
 setPageFormAction (string $a_action)
 Sets the pages form action. More...
 
 setLoginTargetPar (string $a_val)
 Set target parameter for login (public sector). More...
 
 getSpecial (string $part=self::DEFAULT_BLOCK, bool $add_error_mess=false, bool $handle_referer=false, bool $add_ilias_footer=false, bool $add_standard_elements=false, bool $a_main_menu=true, bool $a_tabs=true)
 Renders the page with specific elements enabled. More...
 
 printToStdout (string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
 
 printToString ()
 Use this method to get the finally rendered page as string. More...
 
 setTreeFlatIcon (string $a_link, string $a_mode)
 Sets a tree or flat icon. More...
 
 addLightbox (string $a_html, string $a_id)
 Add a lightbox html to the template. More...
 
 addAdminPanelToolbar (ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false)
 Add admin panel commands as toolbar. More...
 
 setPermanentLink (string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
 Generates and sets a permanent ilias link. More...
 
 resetHeaderBlock (bool $a_reset_header_action=true)
 Reset all header properties: title, icon, description, alerts, action menu. More...
 
 setFileUploadRefId (int $a_ref_id)
 Enables the file upload into this object by dropping a file. More...
 
 get (string $part=self::DEFAULT_BLOCK)
 Renders the given block and returns the html string. More...
 
 setVariable (string $variable, $value='')
 Sets the given variable to the given value. More...
 
 setCurrentBlock (string $part=self::DEFAULT_BLOCK)
 Sets the template to the given block. More...
 
 parseCurrentBlock (string $block_name=self::DEFAULT_BLOCK)
 Parses the given block. More...
 
 touchBlock (string $block)
 overwrites ITX::touchBlock. More...
 
 addBlockFile (string $var, string $block, string $template_name, string $in_module=null)
 overwrites ITX::addBlockFile More...
 
 blockExists (string $block_name)
 check if block exists in actual template More...
 

Protected Member Functions

 fillFooter ()
 
 getMainMenu ()
 
 fillMainMenu ()
 
 initHelp ()
 
 fillMessage ()
 
 getMessageTextForType (string $type)
 
 fillJavascriptFile (string $file, string $vers)
 
 resetCss ()
 
 fillInlineCss ()
 
 fillNewContentStyle ()
 
 fillHeader ()
 
 getHeaderActionMenu ()
 
 getTabsHTML ()
 
 fillLeftNav ()
 
 setCenterColumnClass ()
 
 fillMainContent ()
 
 fillLeftContent ()
 
 fillRightContent ()
 
 fillToolbar ()
 
 fillPageFormAction ()
 
 getLoginTargetPar ()
 
 fillSideIcons ()
 
 fillLightbox ()
 
 fillAdminPanel ()
 
 fillPermanentLink ()
 
 variableExists (string $a_variablename)
 

Protected Attributes

ilTemplate $template
 
ilToolbarGUI $admin_panel_commands_toolbar = null
 
array $js_files
 
array $js_files_vp
 
array $js_files_batch
 
array $css_files = []
 
array $inline_css = []
 
string $in_module
 
string $template_name
 
string $body_class = ''
 
string $tree_flat_link = ""
 
string $page_form_action = ""
 
array $permanent_link = []
 
string $main_content = ""
 
array $lightbox = []
 
bool $standard_template_loaded = false
 
string $main_menu = ''
 
string $main_menu_spacer = ''
 
array $messages = []
 
bool $show_footer = true
 
array $on_load_code = []
 
string $left_nav_content = ''
 
string $tree_flat_mode = ''
 
bool $admin_panel_arrow = false
 
bool $admin_panel_bottom = false
 
int $enable_fileupload = null
 
string $header_page_title = ""
 
string $title = ""
 
string $title_desc = ""
 
array $title_alerts = []
 
string $header_action = ''
 
string $icon_desc = ''
 
string $icon_path = ''
 
string $tabs_html = ""
 
string $sub_tabs_html = ""
 
string $left_content = ''
 
string $right_content = ''
 
string $login_target_par = ''
 

Additional Inherited Members

- Data Fields inherited from ilGlobalTemplateInterface
const MESSAGE_TYPE_FAILURE = 'failure'
 
const MESSAGE_TYPE_SUCCESS = "success"
 
const MESSAGE_TYPE_QUESTION = "question"
 
const MESSAGE_TYPE_INFO = "info"
 
const MESSAGE_TYPES
 
const DEFAULT_BLOCK = 'DEFAULT'
 

Detailed Description

special template class to simplify handling of ITX/PEAR

Author
Stefan Kesseler skess.nosp@m.eler.nosp@m.@data.nosp@m.bay..nosp@m.de
Sascha Hofmann shofm.nosp@m.ann@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Thibeau Fuhrer thibe.nosp@m.au@s.nosp@m.r.sol.nosp@m.utio.nosp@m.ns

Definition at line 15 of file class.ilGlobalTemplate.php.

Constructor & Destructor Documentation

◆ __construct()

ilGlobalTemplate::__construct ( string  $file,
bool  $flag1,
bool  $flag2,
string  $in_module = '',
string  $vars = self::DEFAULT_BLOCK,
bool  $plugin = false,
bool  $a_use_cache = true 
)
Exceptions
ilTemplateException|ilSystemStyleException

Reimplemented in LTI\ilGlobalTemplate.

Definition at line 91 of file class.ilGlobalTemplate.php.

99 {
100 $this->setBodyClass("std");
101 $this->template_name = $file;
102 $this->in_module = $in_module;
103 $this->template = new ilTemplate(
104 $file,
105 $flag1,
106 $flag2,
108 $vars,
109 $plugin,
110 $a_use_cache
111 );
112 }
setBodyClass(string $a_class="")
Sets the body-tags class.
special template class to simplify handling of ITX/PEAR

References $in_module, XapiProxy\$plugin, and setBodyClass().

+ Here is the call graph for this function:

Member Function Documentation

◆ addAdminPanelToolbar()

ilGlobalTemplate::addAdminPanelToolbar ( ilToolbarGUI  $toolbar,
bool  $is_bottom_panel = true,
bool  $has_arrow = false 
)

Add admin panel commands as toolbar.

Parameters
bool$is_bottom_panelif the panel should be rendered at the bottom of the page as well.
bool$has_arrowif the panel should be rendered with an arrow icon.

Implements ilGlobalTemplateInterface.

Definition at line 1227 of file class.ilGlobalTemplate.php.

1227 : void
1228 {
1229 $this->admin_panel_commands_toolbar = $toolb;
1230 $this->admin_panel_arrow = $a_arrow;
1231 $this->admin_panel_bottom = $a_bottom_panel;
1232 }

◆ addBlockFile()

ilGlobalTemplate::addBlockFile ( string  $var,
string  $block,
string  $template_name,
string  $in_module = null 
)
Exceptions
ilTemplateException

Implements ilGlobalTemplateInterface.

Definition at line 1370 of file class.ilGlobalTemplate.php.

1370 : bool
1371 {
1372 return $this->template->addBlockFile($var, $block, $template_name, $in_module);
1373 }

◆ addCss()

ilGlobalTemplate::addCss ( string  $a_css_file,
string  $media = "screen" 
)

Add a css file that should be included in the header.

Implements ilGlobalTemplateInterface.

Definition at line 454 of file class.ilGlobalTemplate.php.

454 : void
455 {
456 if (!array_key_exists($a_css_file . $media, $this->css_files)) {
457 $this->css_files[$a_css_file . $media] = [
458 "file" => $a_css_file,
459 "media" => $media,
460 ];
461 }
462 }

◆ addInlineCss()

ilGlobalTemplate::addInlineCss ( string  $a_css,
string  $media = "screen" 
)

Add a css file that should be included in the header.

Implements ilGlobalTemplateInterface.

Definition at line 464 of file class.ilGlobalTemplate.php.

464 : void
465 {
466 $this->inline_css[] = [
467 "css" => $a_css,
468 "media" => $media,
469 ];
470 }

◆ addJavaScript()

ilGlobalTemplate::addJavaScript ( string  $a_js_file,
bool  $a_add_version_parameter = true,
int  $a_batch = 2 
)

Add a javascript file that should be included in the header.

Implements ilGlobalTemplateInterface.

Definition at line 329 of file class.ilGlobalTemplate.php.

329 : void
330 {
331 // three batches currently
332 if ($a_batch < 1 || $a_batch > 3) {
333 $a_batch = 2;
334 }
335
336 // ensure jquery files being loaded first
337 if (is_int(strpos($a_js_file, "Services/jQuery")) ||
338 is_int(strpos($a_js_file, "/jquery.js")) ||
339 is_int(strpos($a_js_file, "/jquery/")) ||
340 is_int(strpos($a_js_file, "/jquery-ui/")) ||
341 is_int(strpos($a_js_file, "/jquery-min.js"))
342 ) {
343 $a_batch = 0;
344 }
345
346 if (!in_array($a_js_file, $this->js_files, true)) {
347 $this->js_files[] = $a_js_file;
348 $this->js_files_vp[$a_js_file] = $a_add_version_parameter;
349 $this->js_files_batch[$a_js_file] = $a_batch;
350 }
351 }

◆ addLightbox()

ilGlobalTemplate::addLightbox ( string  $a_html,
string  $a_id 
)

Add lightbox html.

Implements ilGlobalTemplateInterface.

Definition at line 1217 of file class.ilGlobalTemplate.php.

1217 : void
1218 {
1219 $this->lightbox[$a_id] = $a_html;
1220 }

◆ addOnLoadCode()

ilGlobalTemplate::addOnLoadCode ( string  $a_code,
int  $a_batch = 2 
)

Add on load code.

Implements ilGlobalTemplateInterface.

Definition at line 353 of file class.ilGlobalTemplate.php.

353 : void
354 {
355 // three batches currently
356 if ($a_batch < 1 || $a_batch > 3) {
357 $a_batch = 2;
358 }
359
360 $this->on_load_code[$a_batch][] = $a_code;
361 }

◆ blockExists()

ilGlobalTemplate::blockExists ( string  $block_name)

check if block exists in actual template

Parameters
string$block_name

Implements ilGlobalTemplateInterface.

Definition at line 1375 of file class.ilGlobalTemplate.php.

1375 : bool
1376 {
1377 return $this->template->blockExists($a_blockname);
1378 }

Referenced by fillBodyClass(), fillCssFiles(), and fillJavaScriptFiles().

+ Here is the caller graph for this function:

◆ clearHeader()

ilGlobalTemplate::clearHeader ( )

Clear header.

Implements ilGlobalTemplateInterface.

Definition at line 710 of file class.ilGlobalTemplate.php.

710 : void
711 {
712 $this->setTitle("");
713 $this->setTitleIcon("");
714 $this->setDescription("");
715 $this->setAlertProperties([]);
716 }
setDescription(string $a_descr)
Sets descripton below title in standard template.
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
setAlertProperties(array $a_props)
Set alert properties.

◆ fillAdminPanel()

ilGlobalTemplate::fillAdminPanel ( )
protected
Exceptions
ilTemplateException

Definition at line 1237 of file class.ilGlobalTemplate.php.

1237 : void
1238 {
1239 global $DIC;
1240 $lng = $DIC->language();
1241
1242 if ($this->admin_panel_commands_toolbar === null) {
1243 return;
1244 }
1245
1247
1248 // Add arrow if desired.
1249 if ($this->admin_panel_arrow) {
1250 $toolb->setLeadingImage(ilUtil::getImagePath("arrow_upright.svg"), $lng->txt("actions"));
1251 }
1252
1253 $this->fillPageFormAction();
1254
1255 // Add top admin bar.
1256 $this->setCurrentBlock("adm_view_components");
1257 $this->setVariable("ADM_PANEL1", $toolb->getHTML());
1258 $this->parseCurrentBlock();
1259
1260 // Add bottom admin bar if user wants one.
1261 if ($this->admin_panel_bottom) {
1262 $this->setCurrentBlock("adm_view_components2");
1263
1264 // Replace previously set arrow image.
1265 if ($this->admin_panel_arrow) {
1266 $toolb->setLeadingImage(ilUtil::getImagePath("arrow_downright.svg"), $lng->txt("actions"));
1267 }
1268
1269 $this->setVariable("ADM_PANEL2", $toolb->getHTML());
1270 $this->parseCurrentBlock();
1271 }
1272 }
ilToolbarGUI $admin_panel_commands_toolbar
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
setVariable(string $variable, $value='')
Sets the given variable to the given value.
setLeadingImage(string $a_img, string $a_alt)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
global $DIC
Definition: feed.php:28
$lng

References $DIC, $lng, ilUtil\getImagePath(), and setVariable().

+ Here is the call graph for this function:

◆ fillBodyClass()

ilGlobalTemplate::fillBodyClass ( )
Exceptions
ilTemplateException

Definition at line 502 of file class.ilGlobalTemplate.php.

502 : void
503 {
504 if ($this->body_class !== "" && $this->blockExists("body_class")) {
505 $this->setCurrentBlock("body_class");
506 $this->setVariable("BODY_CLASS", $this->body_class);
507 $this->parseCurrentBlock();
508 }
509 }
blockExists(string $a_blockname)
check if block exists in actual template

References blockExists(), parseCurrentBlock(), setCurrentBlock(), and setVariable().

+ Here is the call graph for this function:

◆ fillContentLanguage()

ilGlobalTemplate::fillContentLanguage ( )

Definition at line 998 of file class.ilGlobalTemplate.php.

998 : void
999 {
1000 global $DIC;
1001 $lng = $DIC->language();
1002
1003 if (is_object($lng)) {
1004 $this->setVariable('META_CONTENT_LANGUAGE', $lng->getContentLanguage());
1005 $this->setVariable('LANGUAGE_DIRECTION', $lng->getTextDirection());
1006 }
1007 }

References $DIC, $lng, and setVariable().

+ Here is the call graph for this function:

◆ fillCssFiles()

ilGlobalTemplate::fillCssFiles ( bool  $a_force = false)
Exceptions
ilTemplateException

Definition at line 475 of file class.ilGlobalTemplate.php.

475 : void
476 {
477 if (!$this->blockExists("css_file")) {
478 return;
479 }
480 foreach ($this->css_files as $css) {
481 $filename = $css["file"];
482 if (strpos($filename, "?") > 0) {
483 $filename = substr($filename, 0, strpos($filename, "?"));
484 }
485 if ($a_force || is_file($filename)) {
486 $this->setCurrentBlock("css_file");
487 $this->setVariable("CSS_FILE", $css["file"]);
488 $this->setVariable("CSS_MEDIA", $css["media"]);
489 $this->parseCurrentBlock();
490 }
491 }
492 }
$filename
Definition: buildRTE.php:78

References $filename, blockExists(), parseCurrentBlock(), setCurrentBlock(), and setVariable().

+ Here is the call graph for this function:

◆ fillFooter()

ilGlobalTemplate::fillFooter ( )
protected
Exceptions
ilTemplateException
ilCtrlException

Definition at line 130 of file class.ilGlobalTemplate.php.

130 : void
131 {
132 if (!$this->show_footer) {
133 return;
134 }
135
136 global $DIC;
137
138 $ilSetting = $DIC->settings();
139 $lng = $DIC->language();
140 $ilCtrl = $DIC->ctrl();
141 $ilDB = $DIC->database();
142
143 $ftpl = new ilTemplate("tpl.footer.html", true, true, "Services/UICore");
144
145 $php = "";
146 if (DEVMODE) {
147 $php = ", PHP " . PHP_VERSION;
148 }
149 $ftpl->setVariable("ILIAS_VERSION", ILIAS_VERSION . $php);
150
151 $link_items = [];
152
153 // imprint
154 $call_history = $ilCtrl->getCallHistory();
155 if (isset($call_history[0][ilCtrlInterface::PARAM_CMD_CLASS]) &&
156 $call_history[0][ilCtrlInterface::PARAM_CMD_CLASS] !== "ilImprintGUI" &&
158 ) {
159 $link_items[ilLink::_getStaticLink(0, "impr")] = [$lng->txt("imprint"), true];
160 }
161
162 // system support contacts
163 if (($l = ilSystemSupportContactsGUI::getFooterLink()) !== "") {
164 $link_items[$l] = [ilSystemSupportContactsGUI::getFooterText(), false];
165 }
166
167 if (DEVMODE && function_exists("tidy_parse_string")) {
168 // I think $_SERVER in dev mode is ok.
170 $_SERVER["REQUEST_URI"],
171 "do_dev_validate=xhtml"
172 )] = ["Validate", true];
174 $_SERVER["REQUEST_URI"],
175 "do_dev_validate=accessibility"
176 )] = ["Accessibility", true];
177 }
178
179 // output translation link
181 $link_items[ilObjLanguageAccess::_getTranslationLink()] = [$lng->txt('translation'), true];
182 }
183
184 $cnt = 0;
185 foreach ($link_items as $url => $caption) {
186 $cnt++;
187 if ($caption[1]) {
188 $ftpl->touchBlock("blank");
189 }
190 if ($cnt < count($link_items)) {
191 $ftpl->touchBlock("item_separator");
192 }
193
194 $ftpl->setCurrentBlock("items");
195 $ftpl->setVariable("URL_ITEM", ilUtil::secureUrl($url));
196 $ftpl->setVariable("TXT_ITEM", $caption[0]);
197 $ftpl->parseCurrentBlock();
198 }
199
200 if (DEVMODE) {
201 // execution time
202 $t1 = explode(" ", $GLOBALS['ilGlobalStartTime']);
203 $t2 = explode(" ", microtime());
204 $diff = $t2[0] - $t1[0] + $t2[1] - $t1[1];
205
206 $mem_usage = [];
207 if (function_exists("memory_get_usage")) {
208 $mem_usage[] =
209 "Memory Usage: " . memory_get_usage() . " Bytes";
210 }
211 if (function_exists("xdebug_peak_memory_usage")) {
212 $mem_usage[] =
213 "XDebug Peak Memory Usage: " . xdebug_peak_memory_usage() . " Bytes";
214 }
215 $mem_usage[] = round($diff, 4) . " Seconds";
216
217 if (count($mem_usage)) {
218 $ftpl->setVariable("MEMORY_USAGE", "<br>" . implode(" | ", $mem_usage));
219 }
220
221 // controller history
222 if (is_object($ilCtrl) && $ftpl->blockExists("c_entry") &&
223 $ftpl->blockExists("call_history")) {
224 $hist = $ilCtrl->getCallHistory();
225 foreach ($hist as $entry) {
226 $ftpl->setCurrentBlock("c_entry");
227 $ftpl->setVariable("C_ENTRY", $entry["class"]);
228 if (is_object($ilDB)) {
229 $file = $ilCtrl->lookupClassPath($entry["class"]);
230 $add = $entry["mode"] . " - " . $entry["cmd"];
231 if ($file !== "") {
232 $add .= " - " . $file;
233 }
234 $ftpl->setVariable("C_FILE", $add);
235 }
236 $ftpl->parseCurrentBlock();
237 }
238 $ftpl->setCurrentBlock("call_history");
239 $ftpl->parseCurrentBlock();
240 }
241
242 // included files
243 if (is_object($ilCtrl) && $ftpl->blockExists("i_entry") &&
244 $ftpl->blockExists("included_files")) {
245 $fs = get_included_files();
246 $ifiles = [];
247 $total = 0;
248 foreach ($fs as $f) {
249 $ifiles[] = [
250 "file" => $f,
251 "size" => filesize($f),
252 ];
253 $total += filesize($f);
254 }
255 $ifiles = ilArrayUtil::sortArray($ifiles, "size", "desc", true);
256 foreach ($ifiles as $f) {
257 $ftpl->setCurrentBlock("i_entry");
258 $ftpl->setVariable(
259 "I_ENTRY",
260 $f["file"] . " (" . $f["size"] . " Bytes, " . round(100 / $total * $f["size"], 2) . "%)"
261 );
262 $ftpl->parseCurrentBlock();
263 }
264 $ftpl->setCurrentBlock("i_entry");
265 $ftpl->setVariable("I_ENTRY", "Total (" . $total . " Bytes, 100%)");
266 $ftpl->parseCurrentBlock();
267 $ftpl->setCurrentBlock("included_files");
268 $ftpl->parseCurrentBlock();
269 }
270 }
271
272 $this->setVariable("FOOTER", $ftpl->get());
273 }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
static isActive()
static _checkTranslate()
Permission check for translations.
static _isPageTranslation()
Check if the current request is a page translation.
static _getTranslationLink()
Get the link to translate the current page.
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)
static secureUrl(string $url)
const ILIAS_VERSION
global $ilSetting
Definition: privfeed.php:17
$url
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10

References $_SERVER, $DIC, Vendor\Package\$f, $GLOBALS, $ilDB, $ilSetting, $lng, $url, ilObjLanguageAccess\_checkTranslate(), ilLink\_getStaticLink(), ilObjLanguageAccess\_getTranslationLink(), ilObjLanguageAccess\_isPageTranslation(), ilUtil\appendUrlParameterString(), ilSystemSupportContactsGUI\getFooterLink(), ilSystemSupportContactsGUI\getFooterText(), ILIAS_VERSION, ilImprint\isActive(), ilCtrlInterface\PARAM_CMD_CLASS, ilUtil\secureUrl(), setVariable(), and ilArrayUtil\sortArray().

Referenced by renderPage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillHeader()

ilGlobalTemplate::fillHeader ( )
protected
Exceptions
ilTemplateException

Definition at line 731 of file class.ilGlobalTemplate.php.

731 : void
732 {
733 global $DIC;
734
735 $lng = $DIC->language();
736 $header = $this->getHeaderActionMenu();
737
738 $header_tpl = new ilTemplate('tpl.il_header.html', true, true);
739
740 if ($this->icon_path !== "") {
741 $header_tpl->setCurrentBlock("header_image");
742 $header_tpl->setVariable("IMG_HEADER", $this->icon_path);
743 $header_tpl->parseCurrentBlock();
744 $header = true;
745 }
746
747 if ($this->title !== "") {
748 $title = ilUtil::stripScriptHTML($this->title);
749 $header_tpl->setVariable("HEADER", $title);
750
751 $header = true;
752 }
753
754 if ($header !== '') {
755 $header_tpl->setCurrentBlock("header_image");
756 $header_tpl->parseCurrentBlock();
757 }
758
759 if ($this->title_desc !== "") {
760 $header_tpl->setCurrentBlock("header_desc");
761 $header_tpl->setVariable("H_DESCRIPTION", $this->title_desc);
762 $header_tpl->parseCurrentBlock();
763 }
764
765 if ($header !== '') {
766 $header_tpl->setCurrentBlock("head_action_inner");
767 $header_tpl->setVariable("HEAD_ACTION", $header);
768 $header_tpl->parseCurrentBlock();
769 }
770
771 foreach ($this->title_alerts as $alert) {
772 $header_tpl->setCurrentBlock('header_alert');
773 if (!($alert['propertyNameVisible'] === false)) {
774 $header_tpl->setVariable('H_PROP', $alert['property'] . ':');
775 }
776 $header_tpl->setVariable('H_VALUE', $alert['value']);
777 $header_tpl->parseCurrentBlock();
778 }
779
780 // add file upload drop zone in header
781 if ($this->enable_fileupload !== null) {
782 $file_upload = new ilObjFileUploadDropzone(
783 $this->enable_fileupload,
784 $header_tpl->get()
785 );
786
787 $this->setVariable(
788 "IL_DROPZONE_HEADER",
789 $file_upload->getDropzoneHtml()
790 );
791 } else {
792 $this->setVariable("IL_HEADER", $header_tpl->get());
793 }
794 }
static stripScriptHTML(string $a_str, string $a_allow="", bool $a_rm_js=true)

References $DIC, $lng, setVariable(), and ilUtil\stripScriptHTML().

+ Here is the call graph for this function:

◆ fillInlineCss()

ilGlobalTemplate::fillInlineCss ( )
protected
Exceptions
ilTemplateException

Definition at line 631 of file class.ilGlobalTemplate.php.

631 : void
632 {
633 if (!$this->blockExists("css_inline")) {
634 return;
635 }
636 foreach ($this->inline_css as $css) {
637 $this->setCurrentBlock("css_inline");
638 $this->setVariable("CSS_INLINE", $css["css"]);
639 $this->parseCurrentBlock();
640 }
641 }

References setVariable().

+ Here is the call graph for this function:

◆ fillJavascriptFile()

ilGlobalTemplate::fillJavascriptFile ( string  $file,
string  $vers 
)
protected

Definition at line 443 of file class.ilGlobalTemplate.php.

443 : void
444 {
445 $this->setCurrentBlock("js_file");
446 if ($this->js_files_vp[$file]) {
447 $this->setVariable("JS_FILE", ilUtil::appendUrlParameterString($file, $vers));
448 } else {
449 $this->setVariable("JS_FILE", $file);
450 }
451 $this->parseCurrentBlock();
452 }

References ilUtil\appendUrlParameterString(), parseCurrentBlock(), setCurrentBlock(), and setVariable().

Referenced by fillJavaScriptFiles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillJavaScriptFiles()

ilGlobalTemplate::fillJavaScriptFiles ( bool  $a_force = false)

Probably adds javascript files.

Implements ilGlobalTemplateInterface.

Definition at line 389 of file class.ilGlobalTemplate.php.

389 : void
390 {
391 global $DIC;
392
393 $ilSetting = $DIC->settings();
394
395 $vers = '';
396 if (is_object($ilSetting)) { // maybe this one can be removed
397 $vers = "vers=" . str_replace([".", " "], "-", ILIAS_VERSION);
398
399 if (DEVMODE) {
400 $vers .= '-' . time();
401 }
402 }
403 if ($this->blockExists("js_file")) {
404 // three batches
405 for ($i = 0; $i <= 3; $i++) {
406 reset($this->js_files);
407 foreach ($this->js_files as $file) {
408 if ($this->js_files_batch[$file] === $i) {
409 if ($a_force ||
410 is_file($file) ||
411 strpos($file, "http") === 0 ||
412 strpos($file, "//") === 0
413 ) {
414 $this->fillJavascriptFile($file, $vers);
415 } elseif (strpos($file, './') === 0) { // #13962
416 $url_parts = parse_url($file);
417 if (is_file($url_parts['path'])) {
418 $this->fillJavascriptFile($file, $vers);
419 }
420 }
421 }
422 }
423 }
424 }
425 }
fillJavascriptFile(string $file, string $vers)
$i
Definition: metadata.php:41

References $DIC, $i, $ilSetting, blockExists(), fillJavascriptFile(), and ILIAS_VERSION.

+ Here is the call graph for this function:

◆ fillLeftContent()

ilGlobalTemplate::fillLeftContent ( )
protected
Exceptions
ilTemplateException

Definition at line 956 of file class.ilGlobalTemplate.php.

956 : void
957 {
958 if (trim($this->left_content) !== "") {
959 $this->setCurrentBlock("left_column");
960 $this->setVariable("LEFT_CONTENT", trim($this->left_content));
961 $left_col_class = (trim($this->right_content) === "")
962 ? "col-sm-3 col-sm-pull-9"
963 : "col-sm-3 col-sm-pull-6";
964 $this->setVariable("LEFT_COL_CLASS", $left_col_class);
965 $this->parseCurrentBlock();
966 }
967 }

References setVariable().

+ Here is the call graph for this function:

◆ fillLeftNav()

ilGlobalTemplate::fillLeftNav ( )
protected
Exceptions
ilTemplateException

Definition at line 894 of file class.ilGlobalTemplate.php.

894 : void
895 {
896 if (trim($this->left_nav_content) !== "") {
897 $this->setCurrentBlock("left_nav");
898 $this->setVariable("LEFT_NAV_CONTENT", trim($this->left_nav_content));
899 $this->parseCurrentBlock();
900 $this->touchBlock("left_nav_space");
901 }
902 }

References setVariable().

+ Here is the call graph for this function:

◆ fillLightbox()

ilGlobalTemplate::fillLightbox ( )
protected

Definition at line 1222 of file class.ilGlobalTemplate.php.

1222 : void
1223 {
1224 $this->setVariable("LIGHTBOX", implode('', $this->lightbox));
1225 }

References setVariable().

+ Here is the call graph for this function:

◆ fillMainContent()

ilGlobalTemplate::fillMainContent ( )
protected

Definition at line 946 of file class.ilGlobalTemplate.php.

946 : void
947 {
948 if (trim($this->main_content) !== "") {
949 $this->setVariable("ADM_CONTENT", trim($this->main_content));
950 }
951 }

References setVariable().

+ Here is the call graph for this function:

◆ fillMainMenu()

ilGlobalTemplate::fillMainMenu ( )
protected

Definition at line 279 of file class.ilGlobalTemplate.php.

279 : void
280 {
281 }

◆ fillMessage()

ilGlobalTemplate::fillMessage ( )
protected

Definition at line 303 of file class.ilGlobalTemplate.php.

303 : void
304 {
305 $out = "";
306 foreach (self::MESSAGE_TYPES as $type) {
307 $txt = $this->getMessageTextForType($type);
308 if (null !== $txt) {
310 }
311
313 }
314
315 if ($out !== "") {
316 $this->setVariable("MESSAGE", $out);
317 }
318 }
$out
Definition: buildRTE.php:24
getMessageTextForType(string $type)
static clear(string $a_var)
static getSystemMessageHTML(string $a_txt, string $a_type="info")
Get HTML for a system message.
$txt
Definition: error.php:13
$type

References $out, $txt, $type, ilSession\clear(), getMessageTextForType(), ilUtil\getSystemMessageHTML(), and setVariable().

+ Here is the call graph for this function:

◆ fillNewContentStyle()

ilGlobalTemplate::fillNewContentStyle ( )
protected

Definition at line 643 of file class.ilGlobalTemplate.php.

643 : void
644 {
645 $this->setVariable(
646 "LOCATION_NEWCONTENT_STYLESHEET_TAG",
647 '<link rel="stylesheet" type="text/css" href="' .
649 . '" />'
650 );
651 }
static getNewContentStyleSheetLocation(string $mode="output")
get full style sheet file name (path inclusive) of current user

References ilUtil\getNewContentStyleSheetLocation(), and setVariable().

+ Here is the call graph for this function:

◆ fillOnLoadCode()

ilGlobalTemplate::fillOnLoadCode ( )

Definition at line 427 of file class.ilGlobalTemplate.php.

427 : void
428 {
429 for ($i = 1; $i <= 3; $i++) {
430 if (isset($this->on_load_code[$i])) {
431 $this->setCurrentBlock("on_load_code");
432 foreach ($this->on_load_code[$i] as $code) {
433 $this->setCurrentBlock("on_load_code_inner");
434 $this->setVariable("OLCODE", $code);
435 $this->parseCurrentBlock();
436 }
437 $this->setCurrentBlock("on_load_code");
438 $this->parseCurrentBlock();
439 }
440 }
441 }

References $i, parseCurrentBlock(), setCurrentBlock(), and setVariable().

+ Here is the call graph for this function:

◆ fillPageFormAction()

ilGlobalTemplate::fillPageFormAction ( )
protected
Exceptions
ilTemplateException

Definition at line 1041 of file class.ilGlobalTemplate.php.

1041 : void
1042 {
1043 if ($this->page_form_action !== "") {
1044 $this->setCurrentBlock("page_form_start");
1045 $this->setVariable("PAGE_FORM_ACTION", $this->page_form_action);
1046 $this->parseCurrentBlock();
1047 $this->touchBlock("page_form_end");
1048 }
1049 }

References setVariable().

+ Here is the call graph for this function:

◆ fillPermanentLink()

ilGlobalTemplate::fillPermanentLink ( )
protected

Definition at line 1290 of file class.ilGlobalTemplate.php.

1290 : void
1291 {
1292 if (!empty($this->permanent_link)) {
1293 $plinkgui = new ilPermanentLinkGUI(
1294 $this->permanent_link["type"],
1295 $this->permanent_link["id"],
1296 $this->permanent_link["append"],
1297 $this->permanent_link["target"]
1298 );
1299 if ($this->permanent_link["title"] !== "") {
1300 $plinkgui->setTitle($this->permanent_link["title"]);
1301 }
1302 $this->setVariable("PRMLINK", $plinkgui->getHTML());
1303 }
1304 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References setVariable().

+ Here is the call graph for this function:

◆ fillRightContent()

ilGlobalTemplate::fillRightContent ( )
protected
Exceptions
ilTemplateException

Definition at line 972 of file class.ilGlobalTemplate.php.

972 : void
973 {
974 if (trim($this->right_content) !== "") {
975 $this->setCurrentBlock("right_column");
976 $this->setVariable("RIGHT_CONTENT", trim($this->right_content));
977 $this->parseCurrentBlock();
978 }
979 }

References setVariable().

+ Here is the call graph for this function:

◆ fillScreenReaderFocus()

ilGlobalTemplate::fillScreenReaderFocus ( )

Definition at line 1173 of file class.ilGlobalTemplate.php.

1173 : void
1174 {
1175 // abandoned
1176 }

◆ fillSideIcons()

ilGlobalTemplate::fillSideIcons ( )
protected
Exceptions
ilTemplateException

Definition at line 1181 of file class.ilGlobalTemplate.php.

1181 : void
1182 {
1183 global $DIC;
1184
1185 $ilSetting = $DIC->settings();
1186 $lng = $DIC->language();
1187
1188 if ($this->tree_flat_link !== "") {
1189 if ($this->left_nav_content !== "") {
1190 $this->touchBlock("tree_lns");
1191 }
1192
1193 $this->setCurrentBlock("tree_mode");
1194 $this->setVariable("LINK_MODE", $this->tree_flat_link);
1195 $this->setVariable("IMG_TREE", ilUtil::getImagePath("icon_sidebar_on.svg"));
1196 if ($ilSetting->get("tree_frame") === "right") {
1197 $this->setVariable("RIGHT", "Right");
1198 }
1199 $this->setVariable("ALT_TREE", $lng->txt($this->tree_flat_mode . "view"));
1200 $this->setVariable("TARGET_TREE", ilFrameTargetInfo::_getFrame("MainContent"));
1201 $this->parseCurrentBlock();
1202 }
1203
1204 $this->setCurrentBlock("tree_icons");
1205 $this->parseCurrentBlock();
1206 }
static _getFrame(string $a_class)

References $DIC, $ilSetting, $lng, ilFrameTargetInfo\_getFrame(), ilUtil\getImagePath(), and setVariable().

+ Here is the call graph for this function:

◆ fillTabs()

ilGlobalTemplate::fillTabs ( )
Exceptions
ilTemplateException

Definition at line 843 of file class.ilGlobalTemplate.php.

843 : void
844 {
845 if ($this->blockExists("tabs_outer_start")) {
846 $this->touchBlock("tabs_outer_start");
847 $this->touchBlock("tabs_outer_end");
848 $this->touchBlock("tabs_inner_start");
849 $this->touchBlock("tabs_inner_end");
850
851 if ($this->tabs_html !== "") {
852 $this->setVariable("TABS", $this->tabs_html);
853 }
854 $this->setVariable("SUB_TABS", $this->sub_tabs_html);
855 }
856 }

References setVariable().

+ Here is the call graph for this function:

◆ fillToolbar()

ilGlobalTemplate::fillToolbar ( )
protected
Exceptions
ilTemplateException

Definition at line 984 of file class.ilGlobalTemplate.php.

984 : void
985 {
986 global $DIC;
987
988 $ilToolbar = $DIC["ilToolbar"];
989 $thtml = $ilToolbar->getHTML();
990
991 if ($thtml !== "") {
992 $this->setCurrentBlock("toolbar_buttons");
993 $this->setVariable("BUTTONS", $thtml);
994 $this->parseCurrentBlock();
995 }
996 }

References $DIC, and setVariable().

+ Here is the call graph for this function:

◆ fillWindowTitle()

ilGlobalTemplate::fillWindowTitle ( )

Definition at line 1009 of file class.ilGlobalTemplate.php.

1009 : void
1010 {
1011 global $DIC;
1012
1013 $ilSetting = $DIC->settings();
1014
1015 if ($this->header_page_title !== "") {
1016 $title = ilUtil::stripScriptHTML($this->header_page_title);
1017 $this->setVariable("PAGETITLE", "- " . $title);
1018 }
1019
1020 if ($ilSetting->get('short_inst_name') !== "") {
1021 $this->setVariable(
1022 "WINDOW_TITLE",
1023 $ilSetting->get('short_inst_name')
1024 );
1025 } else {
1026 $this->setVariable(
1027 "WINDOW_TITLE",
1028 "ILIAS"
1029 );
1030 }
1031 }

References $DIC, $ilSetting, setVariable(), and ilUtil\stripScriptHTML().

+ Here is the call graph for this function:

◆ get()

ilGlobalTemplate::get ( string  $part = self::DEFAULT_BLOCK)
Exceptions
ilTemplateException

Implements ilGlobalTemplateInterface.

Definition at line 1328 of file class.ilGlobalTemplate.php.

1328 : string
1329 {
1330 return $this->template->get($part);
1331 }

◆ getCSSFiles()

ilGlobalTemplate::getCSSFiles ( )

Definition at line 1385 of file class.ilGlobalTemplate.php.

1385 : array
1386 {
1387 return $this->css_files;
1388 }

◆ getHeaderActionMenu()

ilGlobalTemplate::getHeaderActionMenu ( )
protected

Definition at line 796 of file class.ilGlobalTemplate.php.

796 : string
797 {
799 }

◆ getJSFiles()

ilGlobalTemplate::getJSFiles ( )

Definition at line 1380 of file class.ilGlobalTemplate.php.

1380 : array
1381 {
1382 return $this->js_files_batch;
1383 }

◆ getLoginTargetPar()

ilGlobalTemplate::getLoginTargetPar ( )
protected

Definition at line 1060 of file class.ilGlobalTemplate.php.

1060 : string
1061 {
1063 }

◆ getMainMenu()

ilGlobalTemplate::getMainMenu ( )
protected

Definition at line 275 of file class.ilGlobalTemplate.php.

275 : void
276 {
277 }

◆ getMessageTextForType()

ilGlobalTemplate::getMessageTextForType ( string  $type)
protected

Definition at line 320 of file class.ilGlobalTemplate.php.

320 : ?string
321 {
322 if (ilSession::has($type)) {
323 return (string) ilSession::get($type);
324 }
325
326 return $this->messages[$type] ?? null;
327 }
static get(string $a_var)
static has($a_var)

References $type, ilSession\get(), and ilSession\has().

Referenced by fillMessage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOnLoadCodeForAsynch()

ilGlobalTemplate::getOnLoadCodeForAsynch ( )

Get js onload code for ajax calls.

Implements ilGlobalTemplateInterface.

Definition at line 363 of file class.ilGlobalTemplate.php.

363 : string
364 {
365 $js = "";
366 for ($i = 1; $i <= 3; $i++) {
367 if (isset($this->on_load_code[$i])) {
368 foreach ($this->on_load_code[$i] as $code) {
369 $js .= $code . "\n";
370 }
371 }
372 }
373 if ($js) {
374 return '<script type="text/javascript">' . "\n" .
375 $js .
376 '</script>' . "\n";
377 }
378
379 return '';
380 }

References $i.

◆ getSpecial()

ilGlobalTemplate::getSpecial ( string  $part = self::DEFAULT_BLOCK,
bool  $add_error_mess = false,
bool  $handle_referer = false,
bool  $add_ilias_footer = false,
bool  $add_standard_elements = false,
bool  $a_main_menu = true,
bool  $a_tabs = true 
)
Exceptions
ilTemplateException
ilCtrlException

Implements ilGlobalTemplateInterface.

Definition at line 1069 of file class.ilGlobalTemplate.php.

1077 : string {
1078 if ($add_error_mess) {
1079 $this->fillMessage();
1080 }
1081
1082 if ($add_ilias_footer) {
1083 $this->fillFooter();
1084 }
1085
1086 // set standard parts (tabs and title icon)
1087 if ($add_standard_elements) {
1088 if ($a_tabs && $this->blockExists("content")) {
1089 // determine default screen id
1090 $this->getTabsHTML();
1091 }
1092
1093 // to get also the js files for the main menu
1094 $this->getMainMenu();
1095 $this->initHelp();
1096
1097 // these fill blocks in tpl.main.html
1098 $this->fillCssFiles();
1099 $this->fillInlineCss();
1100 $this->fillBodyClass();
1101
1102 // these fill just plain placeholder variables in tpl.main.html
1103 $this->setCurrentBlock();
1104 $this->fillNewContentStyle();
1105 $this->fillContentLanguage();
1106 $this->fillWindowTitle();
1107
1108 // these fill blocks in tpl.adm_content.html
1109 $this->fillHeader();
1110 $this->fillSideIcons();
1111 $this->fillScreenReaderFocus();
1112 $this->fillLeftContent();
1113 $this->fillLeftNav();
1114 $this->fillRightContent();
1115 $this->fillAdminPanel();
1116 $this->fillToolbar();
1117 $this->fillPermanentLink();
1118
1119 $this->setCenterColumnClass();
1120
1121 // late loading of javascipr files, since operations above may add files
1122 $this->fillJavaScriptFiles();
1123 $this->fillOnLoadCode();
1124
1125 // these fill just plain placeholder variables in tpl.adm_content.html
1126 if ($this->blockExists("content")) {
1127 $this->setCurrentBlock("content");
1128 if ($a_tabs) {
1129 $this->fillTabs();
1130 }
1131 $this->fillMainContent();
1132 if ($a_main_menu) {
1133 $this->fillMainMenu();
1134 }
1135 $this->fillLightbox();
1136 $this->parseCurrentBlock();
1137 }
1138 }
1139
1140 if ($part === self::DEFAULT_BLOCK) {
1141 $html = $this->template->get();
1142 } else {
1143 $html = $this->template->get($part);
1144 }
1145
1146 // save language usages as late as possible
1148
1149 return $html;
1150 }
fillJavaScriptFiles(bool $a_force=false)
Probably adds javascript files.
fillCssFiles(bool $a_force=false)
static _saveUsages()
Store the collected language variable usages in the user session This should be called as late as pos...

◆ getTabsHTML()

ilGlobalTemplate::getTabsHTML ( )
protected

Definition at line 858 of file class.ilGlobalTemplate.php.

858 : void
859 {
860 global $DIC;
861
862 $ilTabs = $DIC["ilTabs"];
863
864 if ($this->blockExists("tabs_outer_start")) {
865 $this->sub_tabs_html = $ilTabs->getSubTabHTML();
866 $this->tabs_html = $ilTabs->getHTML(true);
867 }
868 }

References $DIC.

◆ hideFooter()

ilGlobalTemplate::hideFooter ( )

Make the template hide the footer.

Implements ilGlobalTemplateInterface.

Definition at line 121 of file class.ilGlobalTemplate.php.

121 : void
122 {
123 $this->show_footer = false;
124 }

◆ initHelp()

ilGlobalTemplate::initHelp ( )
protected

Definition at line 283 of file class.ilGlobalTemplate.php.

283 : void
284 {
285 //ilHelpGUI::initHelp($this);
286 }

◆ loadStandardTemplate()

ilGlobalTemplate::loadStandardTemplate ( )

This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STATUSLINE placeholders if they are not already loaded.

Exceptions
ilTemplateException

Implements ilGlobalTemplateInterface.

Definition at line 659 of file class.ilGlobalTemplate.php.

659 : void
660 {
661 if ($this->standard_template_loaded) {
662 return;
663 }
664
665 // always load jQuery
668
669 // always load ui framework
671
672 $this->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
673 $this->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
674
675 $this->standard_template_loaded = true;
676 }
addBlockFile(string $var, string $block, string $template_name, string $in_module=null)
static init(ilGlobalTemplateInterface $template=null)
static initjQueryUI(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components....
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template

References ilUIFramework\init(), iljQueryUtil\initjQuery(), and iljQueryUtil\initjQueryUI().

+ Here is the call graph for this function:

◆ parseCurrentBlock()

ilGlobalTemplate::parseCurrentBlock ( string  $part = self::DEFAULT_BLOCK)
Exceptions
ilTemplateException

Implements ilGlobalTemplateInterface.

Definition at line 1362 of file class.ilGlobalTemplate.php.

1362 : bool
1363 {
1364 return $this->template->parseCurrentBlock($part);
1365 }

Referenced by fillBodyClass(), fillCssFiles(), fillJavascriptFile(), and fillOnLoadCode().

+ Here is the caller graph for this function:

◆ printToStdout()

ilGlobalTemplate::printToStdout ( string  $part = self::DEFAULT_BLOCK,
bool  $has_tabs = true,
bool  $skip_main_menu = false 
)
Parameters
bool$has_tabsif template variable {TABS} should be filled with content of ilTabs
bool$skip_main_menuif the main menu should be rendered.

Implements ilGlobalTemplateInterface.

Definition at line 1152 of file class.ilGlobalTemplate.php.

1156 : void {
1157 global $DIC;
1158
1159 // include yahoo dom per default
1161
1162 header('P3P: CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
1163 header("Content-type: text/html; charset=UTF-8");
1164
1165 print $this->renderPage(
1166 $part,
1167 $a_fill_tabs,
1168 $a_skip_main_menu,
1169 $DIC
1170 );
1171 }
renderPage(string $part, bool $a_fill_tabs, bool $a_skip_main_menu, Container $DIC)
static initDom(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.

◆ printToString()

ilGlobalTemplate::printToString ( string  $part = self::DEFAULT_BLOCK)

Definition at line 114 of file class.ilGlobalTemplate.php.

114 : string
115 {
116 global $DIC;
118 return $this->renderPage($part, true, false, $DIC);
119 }

References $DIC, ilYuiUtil\initDom(), and renderPage().

+ Here is the call graph for this function:

◆ renderPage()

ilGlobalTemplate::renderPage ( string  $part,
bool  $a_fill_tabs,
bool  $a_skip_main_menu,
Container  $DIC 
)
Exceptions
ilTemplateException
ilCtrlException

Definition at line 515 of file class.ilGlobalTemplate.php.

520 : string {
521 $this->fillMessage();
522
523 // display ILIAS footer
524 if ($part !== '') {
525 $this->fillFooter();
526 }
527
528 // set standard parts (tabs and title icon)
529 $this->fillBodyClass();
530
531 // see #22992
532 $this->fillContentLanguage();
533
534 if ($a_fill_tabs) {
535 if ($this->blockExists("content")) {
536 // determine default screen id
537 $this->getTabsHTML();
538 }
539 // to get also the js files for the main menu
540 if (!$a_skip_main_menu) {
541 $this->getMainMenu();
542 $this->initHelp();
543 }
544
545 // these fill blocks in tpl.main.html
546 $this->fillCssFiles();
547 $this->fillInlineCss();
548 //$this->fillJavaScriptFiles();
549
550 // these fill just plain placeholder variables in tpl.main.html
551 $this->setCurrentBlock();
552 $this->fillNewContentStyle();
553 $this->fillWindowTitle();
554
555 // these fill blocks in tpl.adm_content.html
556 $this->fillHeader();
557 $this->fillSideIcons();
558 $this->fillScreenReaderFocus();
559 $this->fillLeftContent();
560 $this->fillLeftNav();
561 $this->fillRightContent();
562 $this->fillAdminPanel();
563 $this->fillToolbar();
564 $this->fillPermanentLink();
565
566 $this->setCenterColumnClass();
567
568 // late loading of javascipr files, since operations above may add files
569 $this->fillJavaScriptFiles();
570 $this->fillOnLoadCode();
571
572 // these fill just plain placeholder variables in tpl.adm_content.html
573 if ($this->blockExists("content")) {
574 $this->setCurrentBlock("content");
575 $this->fillTabs();
576 $this->fillMainContent();
577 $this->fillMainMenu();
578 $this->fillLightbox();
579 $this->parseCurrentBlock();
580 }
581 }
582
583 if ($part === self::DEFAULT_BLOCK) {
584 $html = $this->template->getUnmodified();
585 } else {
586 $html = $this->template->getUnmodified($part);
587 }
588
589 // Modification of html is done inline here and can't be done
590 // by ilTemplate, because the "phase" is template_show in this
591 // case here.
592 $component_factory = $DIC["component.factory"];
593
594 // not quite sure if that's good.
595 $id = $this->template->getTemplateIdentifier(
596 $this->template_name,
597 $this->in_module
598 );
599
600 foreach ($component_factory->getActivePluginsInSlot("uihk") as $ui_plugin) {
601 $gui_class = $ui_plugin->getUIClassInstance();
602 $resp = $gui_class->getHTML(
603 "",
604 "template_show",
605 [
606 "tpl_id" => $id,
607 "tpl_obj" => $this,
608 "html" => $html
609 ]
610 );
611
612 if ($resp["mode"] !== ilUIHookPluginGUI::KEEP) {
613 $html = $gui_class->modifyHTML($html, $resp);
614 }
615 }
616
617 // save language usages as late as possible
619
620 return $html;
621 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References fillFooter().

Referenced by printToString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetCss()

ilGlobalTemplate::resetCss ( )
protected

Definition at line 623 of file class.ilGlobalTemplate.php.

623 : void
624 {
625 $this->css_files = [];
626 }

◆ resetHeaderBlock()

ilGlobalTemplate::resetHeaderBlock ( bool  $a_reset_header_action = true)

Reset all header properties: title, icon, description, alerts, action menu.

Implements ilGlobalTemplateInterface.

Definition at line 1306 of file class.ilGlobalTemplate.php.

1306 : void
1307 {
1308 $this->setTitle('');
1309 $this->setTitleIcon('');
1310 $this->setDescription('');
1311 $this->setAlertProperties([]);
1312 $this->enable_fileupload = null;
1313
1314 // see setFullscreenHeader()
1315 if ($a_reset_header_action) {
1316 $this->setHeaderActionMenu('');
1317 }
1318 }
setHeaderActionMenu(string $a_header)
Set header action menu.

◆ resetJavascript()

ilGlobalTemplate::resetJavascript ( )

Reset javascript files.

Implements ilGlobalTemplateInterface.

Definition at line 382 of file class.ilGlobalTemplate.php.

382 : void
383 {
384 $this->js_files = [];
385 $this->js_files_vp = [];
386 $this->js_files_batch = [];
387 }

◆ setAlertProperties()

ilGlobalTemplate::setAlertProperties ( array  $alerts)

Set alert properties.

Parameters
array<int,array>$alerts

Implements ilGlobalTemplateInterface.

Definition at line 705 of file class.ilGlobalTemplate.php.

705 : void
706 {
707 $this->title_alerts = $a_props;
708 }

◆ setBodyClass()

ilGlobalTemplate::setBodyClass ( string  $a_class = "")

Sets the body-tags class.

Implements ilGlobalTemplateInterface.

Definition at line 494 of file class.ilGlobalTemplate.php.

494 : void
495 {
496 $this->body_class = $a_class;
497 }

Referenced by ilIndependentGlobalTemplate\__construct(), and __construct().

+ Here is the caller graph for this function:

◆ setCenterColumnClass()

ilGlobalTemplate::setCenterColumnClass ( )
protected
Exceptions
ilTemplateException

Definition at line 914 of file class.ilGlobalTemplate.php.

914 : void
915 {
916 if (!$this->blockExists("center_col_width")) {
917 return;
918 }
919
920 $left = trim($this->left_content);
921 $right = trim($this->right_content);
922
923 switch (true) {
924 case ('' !== $left && '' !== $right):
925 $center_column_class = 'col-sm-6';
926 break;
927
928 case ('' !== $left || '' !== $right):
929 $center_column_class = 'col-sm-9';
930 break;
931
932 default:
933 $center_column_class = "col-sm-12";
934 break;
935 }
936
937 if ('' !== $left) {
938 $center_column_class .= " col-sm-push-3";
939 }
940
941 $this->setCurrentBlock("center_col_width");
942 $this->setVariable("CENTER_COL", $center_column_class);
943 $this->parseCurrentBlock();
944 }

References setVariable().

+ Here is the call graph for this function:

◆ setContent()

ilGlobalTemplate::setContent ( string  $a_html)

Sets content for standard template.

Implements ilGlobalTemplateInterface.

Definition at line 870 of file class.ilGlobalTemplate.php.

870 : void
871 {
872 if ($a_html !== "") {
873 $this->main_content = $a_html;
874 }
875 }

◆ setCurrentBlock()

ilGlobalTemplate::setCurrentBlock ( string  $part = self::DEFAULT_BLOCK)
Exceptions
ilTemplateException

Implements ilGlobalTemplateInterface.

Definition at line 1346 of file class.ilGlobalTemplate.php.

1346 : bool
1347 {
1348 return $this->template->setCurrentBlock($part);
1349 }

Referenced by fillBodyClass(), fillCssFiles(), fillJavascriptFile(), fillOnLoadCode(), and ilInternalLinkGUI\outputThumbnail().

+ Here is the caller graph for this function:

◆ setDescription()

ilGlobalTemplate::setDescription ( string  $a_descr)

Sets descripton below title in standard template.

Implements ilGlobalTemplateInterface.

Definition at line 691 of file class.ilGlobalTemplate.php.

691 : void
692 {
693 $this->title_desc = $a_descr;
694 }

◆ setFileUploadRefId()

ilGlobalTemplate::setFileUploadRefId ( int  $a_ref_id)

Enables the file upload into this object by dropping a file.

Implements ilGlobalTemplateInterface.

Definition at line 1320 of file class.ilGlobalTemplate.php.

1320 : void
1321 {
1322 $this->enable_fileupload = $a_ref_id;
1323 }

◆ setHeaderActionMenu()

ilGlobalTemplate::setHeaderActionMenu ( string  $a_header)

Set header action menu.

Implements ilGlobalTemplateInterface.

Definition at line 718 of file class.ilGlobalTemplate.php.

718 : void
719 {
720 $this->header_action = $a_header;
721 }

◆ setHeaderPageTitle()

ilGlobalTemplate::setHeaderPageTitle ( string  $a_title)

Sets the title of the page (for browser window).

Implements ilGlobalTemplateInterface.

Definition at line 723 of file class.ilGlobalTemplate.php.

723 : void
724 {
725 $this->header_page_title = $a_title;
726 }

◆ setLeftContent()

ilGlobalTemplate::setLeftContent ( string  $a_html)

Sets content of left column.

Implements ilGlobalTemplateInterface.

Definition at line 877 of file class.ilGlobalTemplate.php.

877 : void
878 {
879 if ($a_html !== "") {
880 $this->left_content = $a_html;
881 }
882 }

◆ setLeftNavContent()

ilGlobalTemplate::setLeftNavContent ( string  $a_content)

Sets content of left navigation column.

Implements ilGlobalTemplateInterface.

Definition at line 884 of file class.ilGlobalTemplate.php.

884 : void
885 {
886 if ($a_content !== "") {
887 $this->left_nav_content = $a_content;
888 }
889 }

◆ setLocator()

ilGlobalTemplate::setLocator ( )

Insert locator.

Implements ilGlobalTemplateInterface.

Definition at line 801 of file class.ilGlobalTemplate.php.

801 : void
802 {
803 global $DIC;
804
805 $ilLocator = $DIC["ilLocator"];
806 $html = "";
807
808 $uip = new ilUIHookProcessor(
809 "Services/Locator",
810 "main_locator",
811 ["locator_gui" => $ilLocator]
812 );
813 if (!$uip->replaced()) {
814 $html = $ilLocator->getHTML();
815 }
816 $html = $uip->getHTML($html);
817
818 $this->setVariable("LOCATOR", $html);
819 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $DIC, and setVariable().

+ Here is the call graph for this function:

◆ setLoginTargetPar()

ilGlobalTemplate::setLoginTargetPar ( string  $a_val)

Set target parameter for login (public sector).

This is used by the main menu

Implements ilGlobalTemplateInterface.

Definition at line 1055 of file class.ilGlobalTemplate.php.

1055 : void
1056 {
1057 $this->login_target_par = $a_val;
1058 }

◆ setOnScreenMessage()

ilGlobalTemplate::setOnScreenMessage ( string  $type,
string  $a_txt,
bool  $a_keep = false 
)

Set a message to be displayed to the user.

Please use instead of ilUtil::sendInfo(), ilUtil::sendSuccess() and ilUtil::sendFailure().

Implements ilGlobalTemplateInterface.

Definition at line 288 of file class.ilGlobalTemplate.php.

288 : void
289 {
290 if ($a_txt === "" ||
291 !in_array($a_type, self::MESSAGE_TYPES, true)
292 ) {
293 return;
294 }
295
296 if (!$a_keep) {
297 $this->messages[$a_type] = $a_txt;
298 } else {
299 ilSession::set($a_type, $a_txt);
300 }
301 }
static set(string $a_var, $a_val)
Set a value.

References ilSession\set().

+ Here is the call graph for this function:

◆ setPageFormAction()

ilGlobalTemplate::setPageFormAction ( string  $a_action)

Sets the pages form action.

Implements ilGlobalTemplateInterface.

Definition at line 1033 of file class.ilGlobalTemplate.php.

1033 : void
1034 {
1035 $this->page_form_action = $a_action;
1036 }

◆ setPermanentLink()

ilGlobalTemplate::setPermanentLink ( string  $a_type,
?int  $a_id,
string  $a_append = "",
string  $a_target = "",
string  $a_title = "" 
)

Generates and sets a permanent ilias link.

Implements ilGlobalTemplateInterface.

Definition at line 1274 of file class.ilGlobalTemplate.php.

1280 : void {
1281 $this->permanent_link = [
1282 "type" => $a_type,
1283 "id" => $a_id,
1284 "append" => $a_append,
1285 "target" => $a_target,
1286 "title" => $a_title
1287 ];
1288 }

◆ setRightContent()

ilGlobalTemplate::setRightContent ( string  $a_html)

Sets content of right column.

Implements ilGlobalTemplateInterface.

Definition at line 904 of file class.ilGlobalTemplate.php.

904 : void
905 {
906 if ($a_html !== '') {
907 $this->right_content = $a_html;
908 }
909 }

◆ setSubTabs()

ilGlobalTemplate::setSubTabs ( string  $a_tabs_html)

sets subtabs in standard template

Implements ilGlobalTemplateInterface.

Definition at line 835 of file class.ilGlobalTemplate.php.

835 : void
836 {
837 $this->setVariable("SUB_TABS", $a_tabs_html);
838 }

References setVariable().

+ Here is the call graph for this function:

◆ setTabs()

ilGlobalTemplate::setTabs ( string  $a_tabs_html)
Exceptions
ilTemplateException

Implements ilGlobalTemplateInterface.

Definition at line 824 of file class.ilGlobalTemplate.php.

824 : void
825 {
826 if ($a_tabs_html !== "" && $this->blockExists("tabs_outer_start")) {
827 $this->touchBlock("tabs_outer_start");
828 $this->touchBlock("tabs_outer_end");
829 $this->touchBlock("tabs_inner_start");
830 $this->touchBlock("tabs_inner_end");
831 $this->setVariable("TABS", $a_tabs_html);
832 }
833 }

References setVariable().

+ Here is the call graph for this function:

◆ setTitle()

ilGlobalTemplate::setTitle ( string  $a_title,
bool  $hidden = false 
)

Sets title in standard template.

Will override the header_page_title.

Implements ilGlobalTemplateInterface.

Definition at line 682 of file class.ilGlobalTemplate.php.

682 : void
683 {
684 $this->title = $a_title;
685 $this->header_page_title = $a_title;
686 }

◆ setTitleIcon()

ilGlobalTemplate::setTitleIcon ( string  $a_icon_path,
string  $a_icon_desc = "" 
)

set title icon

Implements ilGlobalTemplateInterface.

Definition at line 699 of file class.ilGlobalTemplate.php.

699 : void
700 {
701 $this->icon_desc = $a_icon_desc;
702 $this->icon_path = $a_icon_path;
703 }

◆ setTreeFlatIcon()

ilGlobalTemplate::setTreeFlatIcon ( string  $a_link,
string  $a_mode 
)

Sets a tree or flat icon.

Parameters
string$a_mode("tree" | "flat")

Implements ilGlobalTemplateInterface.

Definition at line 1208 of file class.ilGlobalTemplate.php.

1208 : void
1209 {
1210 $this->tree_flat_link = $a_link;
1211 $this->tree_flat_mode = $a_mode;
1212 }

◆ setVariable()

ilGlobalTemplate::setVariable ( string  $variable,
  $value = '' 
)

Sets the given variable to the given value.

Parameters
mixed$value

Implements ilGlobalTemplateInterface.

Definition at line 1333 of file class.ilGlobalTemplate.php.

1333 : void
1334 {
1335 $this->template->setVariable($variable, $value);
1336 }

Referenced by fillBodyClass(), fillCssFiles(), fillFooter(), fillJavascriptFile(), fillMessage(), and fillOnLoadCode().

+ Here is the caller graph for this function:

◆ touchBlock()

ilGlobalTemplate::touchBlock ( string  $block)
Exceptions
ilTemplateException

Implements ilGlobalTemplateInterface.

Definition at line 1354 of file class.ilGlobalTemplate.php.

1354 : bool
1355 {
1356 return $this->template->touchBlock($block);
1357 }

◆ variableExists()

ilGlobalTemplate::variableExists ( string  $a_variablename)
protected

Definition at line 1338 of file class.ilGlobalTemplate.php.

1338 : bool
1339 {
1340 return $this->template->variableExists($a_variablename);
1341 }

Field Documentation

◆ $admin_panel_arrow

bool ilGlobalTemplate::$admin_panel_arrow = false
protected

Definition at line 72 of file class.ilGlobalTemplate.php.

◆ $admin_panel_bottom

bool ilGlobalTemplate::$admin_panel_bottom = false
protected

Definition at line 73 of file class.ilGlobalTemplate.php.

◆ $admin_panel_commands_toolbar

ilToolbarGUI ilGlobalTemplate::$admin_panel_commands_toolbar = null
protected

Definition at line 18 of file class.ilGlobalTemplate.php.

◆ $body_class

string ilGlobalTemplate::$body_class = ''
protected

Definition at line 58 of file class.ilGlobalTemplate.php.

◆ $css_files

array ilGlobalTemplate::$css_files = []
protected

Definition at line 48 of file class.ilGlobalTemplate.php.

◆ $enable_fileupload

int ilGlobalTemplate::$enable_fileupload = null
protected

Definition at line 74 of file class.ilGlobalTemplate.php.

◆ $header_action

string ilGlobalTemplate::$header_action = ''
protected

Definition at line 79 of file class.ilGlobalTemplate.php.

◆ $header_page_title

string ilGlobalTemplate::$header_page_title = ""
protected

Definition at line 75 of file class.ilGlobalTemplate.php.

◆ $icon_desc

string ilGlobalTemplate::$icon_desc = ''
protected

Definition at line 80 of file class.ilGlobalTemplate.php.

◆ $icon_path

string ilGlobalTemplate::$icon_path = ''
protected

Definition at line 81 of file class.ilGlobalTemplate.php.

◆ $in_module

string ilGlobalTemplate::$in_module
protected

◆ $inline_css

array ilGlobalTemplate::$inline_css = []
protected

Definition at line 54 of file class.ilGlobalTemplate.php.

◆ $js_files

array ilGlobalTemplate::$js_files
protected
Initial value:
= [
"./Services/JavaScript/js/Basic.js",
]

Definition at line 24 of file class.ilGlobalTemplate.php.

◆ $js_files_batch

array ilGlobalTemplate::$js_files_batch
protected
Initial value:
= [
"./Services/JavaScript/js/Basic.js" => 1,
]

Definition at line 40 of file class.ilGlobalTemplate.php.

◆ $js_files_vp

array ilGlobalTemplate::$js_files_vp
protected
Initial value:
= [
"./Services/JavaScript/js/Basic.js" => true,
]

Definition at line 32 of file class.ilGlobalTemplate.php.

◆ $left_content

string ilGlobalTemplate::$left_content = ''
protected

Definition at line 84 of file class.ilGlobalTemplate.php.

◆ $left_nav_content

string ilGlobalTemplate::$left_nav_content = ''
protected

Definition at line 70 of file class.ilGlobalTemplate.php.

◆ $lightbox

array ilGlobalTemplate::$lightbox = []
protected

Definition at line 63 of file class.ilGlobalTemplate.php.

◆ $login_target_par

string ilGlobalTemplate::$login_target_par = ''
protected

Definition at line 86 of file class.ilGlobalTemplate.php.

◆ $main_content

string ilGlobalTemplate::$main_content = ""
protected

Definition at line 62 of file class.ilGlobalTemplate.php.

◆ $main_menu

string ilGlobalTemplate::$main_menu = ''
protected

Definition at line 65 of file class.ilGlobalTemplate.php.

◆ $main_menu_spacer

string ilGlobalTemplate::$main_menu_spacer = ''
protected

Definition at line 66 of file class.ilGlobalTemplate.php.

◆ $messages

array ilGlobalTemplate::$messages = []
protected

Definition at line 67 of file class.ilGlobalTemplate.php.

◆ $on_load_code

array ilGlobalTemplate::$on_load_code = []
protected

Definition at line 69 of file class.ilGlobalTemplate.php.

◆ $page_form_action

string ilGlobalTemplate::$page_form_action = ""
protected

Definition at line 60 of file class.ilGlobalTemplate.php.

◆ $permanent_link

array ilGlobalTemplate::$permanent_link = []
protected

Definition at line 61 of file class.ilGlobalTemplate.php.

◆ $right_content

string ilGlobalTemplate::$right_content = ''
protected

Definition at line 85 of file class.ilGlobalTemplate.php.

◆ $show_footer

bool ilGlobalTemplate::$show_footer = true
protected

Definition at line 68 of file class.ilGlobalTemplate.php.

◆ $standard_template_loaded

bool ilGlobalTemplate::$standard_template_loaded = false
protected

Definition at line 64 of file class.ilGlobalTemplate.php.

◆ $sub_tabs_html

string ilGlobalTemplate::$sub_tabs_html = ""
protected

Definition at line 83 of file class.ilGlobalTemplate.php.

◆ $tabs_html

string ilGlobalTemplate::$tabs_html = ""
protected

Definition at line 82 of file class.ilGlobalTemplate.php.

◆ $template

ilTemplate ilGlobalTemplate::$template
protected

Definition at line 17 of file class.ilGlobalTemplate.php.

◆ $template_name

string ilGlobalTemplate::$template_name
protected

Definition at line 57 of file class.ilGlobalTemplate.php.

◆ $title

string ilGlobalTemplate::$title = ""
protected

Definition at line 76 of file class.ilGlobalTemplate.php.

◆ $title_alerts

array ilGlobalTemplate::$title_alerts = []
protected

Definition at line 78 of file class.ilGlobalTemplate.php.

◆ $title_desc

string ilGlobalTemplate::$title_desc = ""
protected

Definition at line 77 of file class.ilGlobalTemplate.php.

◆ $tree_flat_link

string ilGlobalTemplate::$tree_flat_link = ""
protected

Definition at line 59 of file class.ilGlobalTemplate.php.

◆ $tree_flat_mode

string ilGlobalTemplate::$tree_flat_mode = ''
protected

Definition at line 71 of file class.ilGlobalTemplate.php.


The documentation for this class was generated from the following file: