ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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...
 
 addAdminPanelToolbar (ilToolbarGUI $toolb, bool $a_bottom_panel=true, bool $a_arrow=false)
 
 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 ILIAS\UICore\GlobalTemplate
 printToString ()
 Use this method to get the finally rendered page as string. More...
 
 addAdminPanelToolbar (\ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false)
 Add admin panel commands as toolbar. More...
 

Protected Member Functions

 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 ()
 
 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 ILIAS\UICore\GlobalTemplate
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 29 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

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

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

113  {
114  $this->setBodyClass("std");
115  $this->template_name = $file;
116  $this->in_module = $in_module;
117  $this->template = new ilTemplate(
118  $file,
119  $flag1,
120  $flag2,
121  $in_module,
122  $vars,
123  $plugin,
124  $a_use_cache
125  );
126  }
setBodyClass(string $a_class="")
Sets the body-tags class.
+ Here is the call graph for this function:

Member Function Documentation

◆ addAdminPanelToolbar()

ilGlobalTemplate::addAdminPanelToolbar ( ilToolbarGUI  $toolb,
bool  $a_bottom_panel = true,
bool  $a_arrow = false 
)

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

1065  : void
1066  {
1067  $this->admin_panel_commands_toolbar = $toolb;
1068  $this->admin_panel_arrow = $a_arrow;
1069  $this->admin_panel_bottom = $a_bottom_panel;
1070  }

◆ addBlockFile()

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

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by loadStandardTemplate().

1208  : bool
1209  {
1210  return $this->template->addBlockFile($var, $block, $template_name, $in_module);
1211  }
+ Here is the caller graph for this function:

◆ addCss()

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

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

Implements ILIAS\UICore\GlobalTemplate.

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

319  : void
320  {
321  if (!array_key_exists($a_css_file . $media, $this->css_files)) {
322  $this->css_files[$a_css_file . $media] = [
323  "file" => $a_css_file,
324  "media" => $media,
325  ];
326  }
327  }

◆ addInlineCss()

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

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

Implements ILIAS\UICore\GlobalTemplate.

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

329  : void
330  {
331  $this->inline_css[] = [
332  "css" => $a_css,
333  "media" => $media,
334  ];
335  }

◆ 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 ILIAS\UICore\GlobalTemplate.

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

194  : void
195  {
196  // three batches currently
197  if ($a_batch < 1 || $a_batch > 3) {
198  $a_batch = 2;
199  }
200 
201  // ensure jquery files being loaded first
202  if (is_int(strpos($a_js_file, "components/ILIAS/jQuery")) ||
203  is_int(strpos($a_js_file, "/jquery.js")) ||
204  is_int(strpos($a_js_file, "/jquery/")) ||
205  is_int(strpos($a_js_file, "/jquery-ui/")) ||
206  is_int(strpos($a_js_file, "/jquery-min.js"))
207  ) {
208  $a_batch = 0;
209  }
210 
211  if (!in_array($a_js_file, $this->js_files, true)) {
212  $this->js_files[] = $a_js_file;
213  $this->js_files_vp[$a_js_file] = $a_add_version_parameter;
214  $this->js_files_batch[$a_js_file] = $a_batch;
215  }
216  }

◆ addOnLoadCode()

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

Add on load code.

Implements ILIAS\UICore\GlobalTemplate.

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

218  : void
219  {
220  // three batches currently
221  if ($a_batch < 1 || $a_batch > 3) {
222  $a_batch = 2;
223  }
224 
225  $this->on_load_code[$a_batch][] = $a_code;
226  }

◆ blockExists()

ilGlobalTemplate::blockExists ( string  $block_name)

check if block exists in actual template

Parameters
string$block_name

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by fillBodyClass(), fillCssFiles(), fillInlineCss(), fillJavaScriptFiles(), fillTabs(), getSpecial(), getTabsHTML(), renderPage(), setCenterColumnClass(), and setTabs().

1213  : bool
1214  {
1215  return $this->template->blockExists($a_blockname);
1216  }
+ Here is the caller graph for this function:

◆ clearHeader()

ilGlobalTemplate::clearHeader ( )

Clear header.

Implements ILIAS\UICore\GlobalTemplate.

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

References setAlertProperties(), setDescription(), setTitle(), and setTitleIcon().

566  : void
567  {
568  $this->setTitle("");
569  $this->setTitleIcon("");
570  $this->setDescription("");
571  $this->setAlertProperties([]);
572  }
setAlertProperties(array $a_props)
Set alert properties.
setDescription(string $a_descr)
Sets descripton below title in standard template.
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
+ Here is the call graph for this function:

◆ fillAdminPanel()

ilGlobalTemplate::fillAdminPanel ( )
protected
Exceptions
ilTemplateException

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

References $admin_panel_commands_toolbar, $DIC, $lng, fillPageFormAction(), ilUtil\getImagePath(), null, parseCurrentBlock(), setCurrentBlock(), ilToolbarGUI\setLeadingImage(), and setVariable().

Referenced by getSpecial(), and renderPage().

1075  : void
1076  {
1077  global $DIC;
1078  $lng = $DIC->language();
1079 
1080  if ($this->admin_panel_commands_toolbar === null) {
1081  return;
1082  }
1083 
1085 
1086  // Add arrow if desired.
1087  if ($this->admin_panel_arrow) {
1088  $toolb->setLeadingImage(ilUtil::getImagePath("nav/arrow_upright.svg"), $lng->txt("actions"));
1089  }
1090 
1091  $this->fillPageFormAction();
1092 
1093  // Add top admin bar.
1094  $this->setCurrentBlock("adm_view_components");
1095  $this->setVariable("ADM_PANEL1", $toolb->getHTML());
1096  $this->parseCurrentBlock();
1097 
1098  // Add bottom admin bar if user wants one.
1099  if ($this->admin_panel_bottom) {
1100  $this->setCurrentBlock("adm_view_components2");
1101 
1102  // Replace previously set arrow image.
1103  if ($this->admin_panel_arrow) {
1104  $toolb->setLeadingImage(ilUtil::getImagePath("nav/arrow_downright.svg"), $lng->txt("actions"));
1105  }
1106 
1107  $this->setVariable("ADM_PANEL2", $toolb->getHTML());
1108  $this->parseCurrentBlock();
1109  }
1110  }
ilToolbarGUI $admin_panel_commands_toolbar
setVariable(string $variable, $value='')
Sets the given variable to the given value.
setLeadingImage(string $a_img, string $a_alt)
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:22
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
global $lng
Definition: privfeed.php:31
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillBodyClass()

ilGlobalTemplate::fillBodyClass ( )
Exceptions
ilTemplateException

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

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

Referenced by getSpecial(), and renderPage().

367  : void
368  {
369  if ($this->body_class !== "" && $this->blockExists("body_class")) {
370  $this->setCurrentBlock("body_class");
371  $this->setVariable("BODY_CLASS", $this->body_class);
372  $this->parseCurrentBlock();
373  }
374  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
blockExists(string $a_blockname)
check if block exists in actual template
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillContentLanguage()

ilGlobalTemplate::fillContentLanguage ( )

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

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

Referenced by getSpecial(), and renderPage().

854  : void
855  {
856  global $DIC;
857  $lng = $DIC->language();
858 
859  if (is_object($lng)) {
860  $this->setVariable('META_CONTENT_LANGUAGE', $lng->getContentLanguage());
861  $this->setVariable('LANGUAGE_DIRECTION', $lng->getTextDirection());
862  }
863  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
global $DIC
Definition: shib_login.php:22
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillCssFiles()

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

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

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

Referenced by getSpecial(), and renderPage().

340  : void
341  {
342  if (!$this->blockExists("css_file")) {
343  return;
344  }
345  foreach ($this->css_files as $css) {
346  $filename = $css["file"];
347  if (strpos($filename, "?") > 0) {
348  $filename = substr($filename, 0, strpos($filename, "?"));
349  }
350  if ($a_force || is_file($filename)) {
351  $this->setCurrentBlock("css_file");
352  $this->setVariable("CSS_FILE", $css["file"]);
353  $this->setVariable("CSS_MEDIA", $css["media"]);
354  $this->parseCurrentBlock();
355  }
356  }
357  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
blockExists(string $a_blockname)
check if block exists in actual template
$filename
Definition: buildRTE.php:78
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ 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 587 of file class.ilGlobalTemplate.php.

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

Referenced by getSpecial(), and renderPage().

587  : void
588  {
589  global $DIC;
590 
591  $lng = $DIC->language();
592  $header = $this->getHeaderActionMenu();
593 
594  $header_tpl = new ilTemplate('tpl.il_header.html', true, true);
595 
596  if ($this->icon_path !== "") {
597  $header_tpl->setCurrentBlock("header_image");
598  $header_tpl->setVariable("IMG_HEADER", $this->icon_path);
599  $header_tpl->parseCurrentBlock();
600  $header = true;
601  }
602 
603  if ($this->title !== "") {
604  $title = ilUtil::stripScriptHTML($this->title);
605  $header_tpl->setVariable("HEADER", $title);
606 
607  $header = true;
608  }
609 
610  if ($header !== '') {
611  $header_tpl->setCurrentBlock("header_image");
612  $header_tpl->parseCurrentBlock();
613  }
614 
615  if ($this->title_desc !== "") {
616  $header_tpl->setCurrentBlock("header_desc");
617  $header_tpl->setVariable("H_DESCRIPTION", $this->title_desc);
618  $header_tpl->parseCurrentBlock();
619  }
620 
621  if ($header !== '') {
622  $header_tpl->setCurrentBlock("head_action_inner");
623  $header_tpl->setVariable("HEAD_ACTION", $header);
624  $header_tpl->parseCurrentBlock();
625  }
626 
627  foreach ($this->title_alerts as $alert) {
628  $header_tpl->setCurrentBlock('header_alert');
629  if (!($alert['propertyNameVisible'] === false)) {
630  $header_tpl->setVariable('H_PROP', $alert['property'] . ':');
631  }
632  $header_tpl->setVariable('H_VALUE', $alert['value']);
633  $header_tpl->parseCurrentBlock();
634  }
635 
636  // add file upload drop zone in header
637  if ($this->enable_fileupload !== null) {
638  $file_upload = new ilObjFileUploadDropzone(
639  $this->enable_fileupload,
640  $header_tpl->get()
641  );
642 
643  $this->setVariable(
644  "IL_DROPZONE_HEADER",
645  $file_upload->getDropzoneHtml()
646  );
647  } else {
648  $this->setVariable("IL_HEADER", $header_tpl->get());
649  }
650  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
static stripScriptHTML(string $a_str, string $a_allow="", bool $a_rm_js=true)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:22
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillInlineCss()

ilGlobalTemplate::fillInlineCss ( )
protected
Exceptions
ilTemplateException

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

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

Referenced by getSpecial(), and renderPage().

490  : void
491  {
492  if (!$this->blockExists("css_inline")) {
493  return;
494  }
495  foreach ($this->inline_css as $css) {
496  $this->setCurrentBlock("css_inline");
497  $this->setVariable("CSS_INLINE", $css["css"]);
498  $this->parseCurrentBlock();
499  }
500  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
blockExists(string $a_blockname)
check if block exists in actual template
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillJavascriptFile()

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

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

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

Referenced by fillJavaScriptFiles().

308  : void
309  {
310  $this->setCurrentBlock("js_file");
311  if ($this->js_files_vp[$file]) {
312  $this->setVariable("JS_FILE", ilUtil::appendUrlParameterString($file, $vers));
313  } else {
314  $this->setVariable("JS_FILE", $file);
315  }
316  $this->parseCurrentBlock();
317  }
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ 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 ILIAS\UICore\GlobalTemplate.

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

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

Referenced by getSpecial(), and renderPage().

254  : void
255  {
256  global $DIC;
257 
258  $ilSetting = $DIC->settings();
259 
260  $vers = '';
261  if (is_object($ilSetting)) { // maybe this one can be removed
262  $vers = "vers=" . str_replace([".", " "], "-", ILIAS_VERSION);
263 
264  if (DEVMODE) {
265  $vers .= '-' . time();
266  }
267  }
268  if ($this->blockExists("js_file")) {
269  // three batches
270  for ($i = 0; $i <= 3; $i++) {
271  reset($this->js_files);
272  foreach ($this->js_files as $file) {
273  if ($this->js_files_batch[$file] === $i) {
274  if ($a_force ||
275  is_file($file) ||
276  strpos($file, "http") === 0 ||
277  strpos($file, "//") === 0
278  ) {
279  $this->fillJavascriptFile($file, $vers);
280  } elseif (strpos($file, './') === 0) { // #13962
281  $url_parts = parse_url($file);
282  if (is_file($url_parts['path'])) {
283  $this->fillJavascriptFile($file, $vers);
284  }
285  }
286  }
287  }
288  }
289  }
290  }
const ILIAS_VERSION
blockExists(string $a_blockname)
check if block exists in actual template
global $DIC
Definition: shib_login.php:22
fillJavascriptFile(string $file, string $vers)
global $ilSetting
Definition: privfeed.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillLeftContent()

ilGlobalTemplate::fillLeftContent ( )
protected
Exceptions
ilTemplateException

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

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

Referenced by getSpecial(), and renderPage().

812  : void
813  {
814  if (trim($this->left_content) !== "") {
815  $this->setCurrentBlock("left_column");
816  $this->setVariable("LEFT_CONTENT", trim($this->left_content));
817  $left_col_class = (trim($this->right_content) === "")
818  ? "col-sm-3 col-sm-pull-9"
819  : "col-sm-3 col-sm-pull-6";
820  $this->setVariable("LEFT_COL_CLASS", $left_col_class);
821  $this->parseCurrentBlock();
822  }
823  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillLeftNav()

ilGlobalTemplate::fillLeftNav ( )
protected
Exceptions
ilTemplateException

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

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

Referenced by getSpecial(), and renderPage().

750  : void
751  {
752  if (trim($this->left_nav_content) !== "") {
753  $this->setCurrentBlock("left_nav");
754  $this->setVariable("LEFT_NAV_CONTENT", trim($this->left_nav_content));
755  $this->parseCurrentBlock();
756  $this->touchBlock("left_nav_space");
757  }
758  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillMainContent()

ilGlobalTemplate::fillMainContent ( )
protected

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

References setVariable().

Referenced by getSpecial(), and renderPage().

802  : void
803  {
804  if (trim($this->main_content) !== "") {
805  $this->setVariable("ADM_CONTENT", trim($this->main_content));
806  }
807  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillMainMenu()

ilGlobalTemplate::fillMainMenu ( )
protected

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

Referenced by getSpecial(), and renderPage().

144  : void
145  {
146  }
+ Here is the caller graph for this function:

◆ fillMessage()

ilGlobalTemplate::fillMessage ( )
protected

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

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

Referenced by getSpecial(), and renderPage().

168  : void
169  {
170  $out = "";
171  foreach (self::MESSAGE_TYPES as $type) {
172  $txt = $this->getMessageTextForType($type);
173  if (null !== $txt) {
175  }
176 
177  ilSession::clear($type);
178  }
179 
180  if ($out !== "") {
181  $this->setVariable("MESSAGE", $out);
182  }
183  }
static getSystemMessageHTML(string $a_txt, string $a_type="info")
Get HTML for a system message.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$out
Definition: buildRTE.php:24
$txt
Definition: error.php:31
getMessageTextForType(string $type)
static clear(string $a_var)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillNewContentStyle()

ilGlobalTemplate::fillNewContentStyle ( )
protected

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

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

Referenced by getSpecial(), and renderPage().

502  : void
503  {
504  $this->setVariable(
505  "LOCATION_NEWCONTENT_STYLESHEET_TAG",
506  '<link rel="stylesheet" type="text/css" href="' .
508  . '" />'
509  );
510  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
static getNewContentStyleSheetLocation(string $mode="output")
get full style sheet file name (path inclusive) of current user
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillOnLoadCode()

ilGlobalTemplate::fillOnLoadCode ( )

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

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

Referenced by getSpecial(), and renderPage().

292  : void
293  {
294  for ($i = 1; $i <= 3; $i++) {
295  if (isset($this->on_load_code[$i])) {
296  $this->setCurrentBlock("on_load_code");
297  foreach ($this->on_load_code[$i] as $code) {
298  $this->setCurrentBlock("on_load_code_inner");
299  $this->setVariable("OLCODE", $code);
300  $this->parseCurrentBlock();
301  }
302  $this->setCurrentBlock("on_load_code");
303  $this->parseCurrentBlock();
304  }
305  }
306  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillPageFormAction()

ilGlobalTemplate::fillPageFormAction ( )
protected
Exceptions
ilTemplateException

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

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

Referenced by fillAdminPanel().

897  : void
898  {
899  if ($this->page_form_action !== "") {
900  $this->setCurrentBlock("page_form_start");
901  $this->setVariable("PAGE_FORM_ACTION", $this->page_form_action);
902  $this->parseCurrentBlock();
903  $this->touchBlock("page_form_end");
904  }
905  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillPermanentLink()

ilGlobalTemplate::fillPermanentLink ( )
protected

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

References setVariable().

Referenced by getSpecial(), and renderPage().

1128  : void
1129  {
1130  if (!empty($this->permanent_link)) {
1131  $plinkgui = new ilPermanentLinkGUI(
1132  $this->permanent_link["type"],
1133  $this->permanent_link["id"],
1134  $this->permanent_link["append"],
1135  $this->permanent_link["target"]
1136  );
1137  if ($this->permanent_link["title"] !== "") {
1138  $plinkgui->setTitle($this->permanent_link["title"]);
1139  }
1140  $this->setVariable("PRMLINK", $plinkgui->getHTML());
1141  }
1142  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillRightContent()

ilGlobalTemplate::fillRightContent ( )
protected
Exceptions
ilTemplateException

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

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

Referenced by getSpecial(), and renderPage().

828  : void
829  {
830  if (trim($this->right_content) !== "") {
831  $this->setCurrentBlock("right_column");
832  $this->setVariable("RIGHT_CONTENT", trim($this->right_content));
833  $this->parseCurrentBlock();
834  }
835  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillScreenReaderFocus()

ilGlobalTemplate::fillScreenReaderFocus ( )

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

Referenced by getSpecial(), and renderPage().

1024  : void
1025  {
1026  // abandoned
1027  }
+ Here is the caller graph for this function:

◆ fillSideIcons()

ilGlobalTemplate::fillSideIcons ( )
protected
Exceptions
ilTemplateException

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

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

Referenced by getSpecial(), and renderPage().

1032  : void
1033  {
1034  global $DIC;
1035 
1036  $ilSetting = $DIC->settings();
1037  $lng = $DIC->language();
1038 
1039  if ($this->tree_flat_link !== "") {
1040  if ($this->left_nav_content !== "") {
1041  $this->touchBlock("tree_lns");
1042  }
1043 
1044  $this->setCurrentBlock("tree_mode");
1045  $this->setVariable("LINK_MODE", $this->tree_flat_link);
1046  $this->setVariable("IMG_TREE", ilUtil::getImagePath("standard/icon_sidebar_on.svg"));
1047  if ($ilSetting->get("tree_frame") === "right") {
1048  $this->setVariable("RIGHT", "Right");
1049  }
1050  $this->setVariable("ALT_TREE", $lng->txt($this->tree_flat_mode . "view"));
1051  $this->setVariable("TARGET_TREE", ilFrameTargetInfo::_getFrame("MainContent"));
1052  $this->parseCurrentBlock();
1053  }
1054 
1055  $this->setCurrentBlock("tree_icons");
1056  $this->parseCurrentBlock();
1057  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
global $DIC
Definition: shib_login.php:22
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
global $ilSetting
Definition: privfeed.php:31
global $lng
Definition: privfeed.php:31
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
static _getFrame(string $a_class)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillTabs()

ilGlobalTemplate::fillTabs ( )
Exceptions
ilTemplateException

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

References blockExists(), setVariable(), and touchBlock().

Referenced by getSpecial(), and renderPage().

699  : void
700  {
701  if ($this->blockExists("tabs_outer_start")) {
702  $this->touchBlock("tabs_outer_start");
703  $this->touchBlock("tabs_outer_end");
704  $this->touchBlock("tabs_inner_start");
705  $this->touchBlock("tabs_inner_end");
706 
707  if ($this->tabs_html !== "") {
708  $this->setVariable("TABS", $this->tabs_html);
709  }
710  $this->setVariable("SUB_TABS", $this->sub_tabs_html);
711  }
712  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
blockExists(string $a_blockname)
check if block exists in actual template
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillToolbar()

ilGlobalTemplate::fillToolbar ( )
protected
Exceptions
ilTemplateException

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

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

Referenced by getSpecial(), and renderPage().

840  : void
841  {
842  global $DIC;
843 
844  $ilToolbar = $DIC["ilToolbar"];
845  $thtml = $ilToolbar->getHTML();
846 
847  if ($thtml !== "") {
848  $this->setCurrentBlock("toolbar_buttons");
849  $this->setVariable("BUTTONS", $thtml);
850  $this->parseCurrentBlock();
851  }
852  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
global $DIC
Definition: shib_login.php:22
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillWindowTitle()

ilGlobalTemplate::fillWindowTitle ( )

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

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

Referenced by getSpecial(), and renderPage().

865  : void
866  {
867  global $DIC;
868 
869  $ilSetting = $DIC->settings();
870 
871  if ($this->header_page_title !== "") {
872  $title = ilUtil::stripScriptHTML($this->header_page_title);
873  $this->setVariable("PAGETITLE", "- " . $title);
874  }
875 
876  if ($ilSetting->get('short_inst_name') !== "") {
877  $this->setVariable(
878  "WINDOW_TITLE",
879  $ilSetting->get('short_inst_name')
880  );
881  } else {
882  $this->setVariable(
883  "WINDOW_TITLE",
884  "ILIAS"
885  );
886  }
887  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
static stripScriptHTML(string $a_str, string $a_allow="", bool $a_rm_js=true)
global $DIC
Definition: shib_login.php:22
global $ilSetting
Definition: privfeed.php:31
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get()

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

Implements ILIAS\UICore\GlobalTemplate.

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

1166  : string
1167  {
1168  return $this->template->get($part);
1169  }

◆ getCSSFiles()

ilGlobalTemplate::getCSSFiles ( )

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

References $css_files.

1223  : array
1224  {
1225  return $this->css_files;
1226  }

◆ getHeaderActionMenu()

ilGlobalTemplate::getHeaderActionMenu ( )
protected

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

References $header_action.

Referenced by fillHeader().

652  : string
653  {
654  return $this->header_action;
655  }
+ Here is the caller graph for this function:

◆ getJSFiles()

ilGlobalTemplate::getJSFiles ( )

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

References $js_files_batch.

1218  : array
1219  {
1220  return $this->js_files_batch;
1221  }

◆ getLoginTargetPar()

ilGlobalTemplate::getLoginTargetPar ( )
protected

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

References $login_target_par.

916  : string
917  {
919  }

◆ getMainMenu()

ilGlobalTemplate::getMainMenu ( )
protected

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

Referenced by getSpecial(), and renderPage().

140  : void
141  {
142  }
+ Here is the caller graph for this function:

◆ getMessageTextForType()

ilGlobalTemplate::getMessageTextForType ( string  $type)
protected

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

References ilSession\get(), ilSession\has(), and null.

Referenced by fillMessage().

185  : ?string
186  {
187  if (ilSession::has($type)) {
188  return (string) ilSession::get($type);
189  }
190 
191  return $this->messages[$type] ?? null;
192  }
static get(string $a_var)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static has($a_var)
+ 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 ILIAS\UICore\GlobalTemplate.

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

228  : string
229  {
230  $js = "";
231  for ($i = 1; $i <= 3; $i++) {
232  if (isset($this->on_load_code[$i])) {
233  foreach ($this->on_load_code[$i] as $code) {
234  $js .= $code . "\n";
235  }
236  }
237  }
238  if ($js) {
239  return '<script type="text/javascript">' . "\n" .
240  $js .
241  '</script>' . "\n";
242  }
243 
244  return '';
245  }

◆ 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 ILIAS\UICore\GlobalTemplate.

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

References ilObjLanguageAccess\_saveUsages(), blockExists(), fillAdminPanel(), fillBodyClass(), fillContentLanguage(), fillCssFiles(), fillHeader(), fillInlineCss(), fillJavaScriptFiles(), fillLeftContent(), fillLeftNav(), fillMainContent(), fillMainMenu(), fillMessage(), fillNewContentStyle(), fillOnLoadCode(), fillPermanentLink(), fillRightContent(), fillScreenReaderFocus(), fillSideIcons(), fillTabs(), fillToolbar(), fillWindowTitle(), getMainMenu(), getTabsHTML(), initHelp(), parseCurrentBlock(), setCenterColumnClass(), and setCurrentBlock().

933  : string {
934  if ($add_error_mess) {
935  $this->fillMessage();
936  }
937 
938  // set standard parts (tabs and title icon)
939  if ($add_standard_elements) {
940  if ($a_tabs && $this->blockExists("content")) {
941  // determine default screen id
942  $this->getTabsHTML();
943  }
944 
945  // to get also the js files for the main menu
946  $this->getMainMenu();
947  $this->initHelp();
948 
949  // these fill blocks in tpl.main.html
950  $this->fillCssFiles();
951  $this->fillInlineCss();
952  $this->fillBodyClass();
953 
954  // these fill just plain placeholder variables in tpl.main.html
955  $this->setCurrentBlock();
956  $this->fillNewContentStyle();
957  $this->fillContentLanguage();
958  $this->fillWindowTitle();
959 
960  // these fill blocks in tpl.adm_content.html
961  $this->fillHeader();
962  $this->fillSideIcons();
963  $this->fillScreenReaderFocus();
964  $this->fillLeftContent();
965  $this->fillLeftNav();
966  $this->fillRightContent();
967  $this->fillAdminPanel();
968  $this->fillToolbar();
969  $this->fillPermanentLink();
970 
971  $this->setCenterColumnClass();
972 
973  // late loading of javascipr files, since operations above may add files
974  $this->fillJavaScriptFiles();
975  $this->fillOnLoadCode();
976 
977  // these fill just plain placeholder variables in tpl.adm_content.html
978  if ($this->blockExists("content")) {
979  $this->setCurrentBlock("content");
980  if ($a_tabs) {
981  $this->fillTabs();
982  }
983  $this->fillMainContent();
984  if ($a_main_menu) {
985  $this->fillMainMenu();
986  }
987  $this->parseCurrentBlock();
988  }
989  }
990 
991  if ($part === self::DEFAULT_BLOCK) {
992  $html = $this->template->get();
993  } else {
994  $html = $this->template->get($part);
995  }
996 
997  // save language usages as late as possible
999 
1000  return $html;
1001  }
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
blockExists(string $a_blockname)
check if block exists in actual template
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...
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:

◆ getTabsHTML()

ilGlobalTemplate::getTabsHTML ( )
protected

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

References $DIC, and blockExists().

Referenced by getSpecial(), and renderPage().

714  : void
715  {
716  global $DIC;
717 
718  $ilTabs = $DIC["ilTabs"];
719 
720  if ($this->blockExists("tabs_outer_start")) {
721  $this->sub_tabs_html = $ilTabs->getSubTabHTML();
722  $this->tabs_html = $ilTabs->getHTML(true);
723  }
724  }
blockExists(string $a_blockname)
check if block exists in actual template
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hideFooter()

ilGlobalTemplate::hideFooter ( )

Make the template hide the footer.

Implements ILIAS\UICore\GlobalTemplate.

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

135  : void
136  {
137  $this->show_footer = false;
138  }

◆ initHelp()

ilGlobalTemplate::initHelp ( )
protected

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

Referenced by getSpecial(), and renderPage().

148  : void
149  {
150  //ilHelpGUI::initHelp($this);
151  }
+ Here is the caller graph for this function:

◆ 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 ILIAS\UICore\GlobalTemplate.

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

References addBlockFile(), iljQueryUtil\initjQuery(), and iljQueryUtil\initjQueryUI().

518  : void
519  {
520  if ($this->standard_template_loaded) {
521  return;
522  }
523 
524  // always load jQuery
527 
528  $this->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
529  $this->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
530 
531  $this->standard_template_loaded = true;
532  }
static initjQueryUI(?ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components)
addBlockFile(string $var, string $block, string $template_name, ?string $in_module=null)
static initjQuery(?ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
+ Here is the call graph for this function:

◆ parseCurrentBlock()

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

◆ 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 ILIAS\UICore\GlobalTemplate.

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

References $DIC, ILIAS\UI\examples\Symbol\Glyph\Header\header(), ilYuiUtil\initDom(), and renderPage().

1007  : void {
1008  global $DIC;
1009 
1010  // include yahoo dom per default
1012 
1013  header('P3P: CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
1014  header("Content-type: text/html; charset=UTF-8");
1015 
1016  print $this->renderPage(
1017  $part,
1018  $a_fill_tabs,
1019  $a_skip_main_menu,
1020  $DIC
1021  );
1022  }
static initDom(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.
global $DIC
Definition: shib_login.php:22
header()
expected output: > ILIAS shows the rendered Component.
Definition: header.php:29
renderPage(string $part, bool $a_fill_tabs, bool $a_skip_main_menu, Container $DIC)
+ Here is the call graph for this function:

◆ printToString()

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

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

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

128  : string
129  {
130  global $DIC;
132  return $this->renderPage($part, true, false, $DIC);
133  }
static initDom(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.
global $DIC
Definition: shib_login.php:22
renderPage(string $part, bool $a_fill_tabs, bool $a_skip_main_menu, Container $DIC)
+ 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 380 of file class.ilGlobalTemplate.php.

References $id, XapiProxy\$resp, ilObjLanguageAccess\_saveUsages(), blockExists(), fillAdminPanel(), fillBodyClass(), fillContentLanguage(), fillCssFiles(), fillHeader(), fillInlineCss(), fillJavaScriptFiles(), fillLeftContent(), fillLeftNav(), fillMainContent(), fillMainMenu(), fillMessage(), fillNewContentStyle(), fillOnLoadCode(), fillPermanentLink(), fillRightContent(), fillScreenReaderFocus(), fillSideIcons(), fillTabs(), fillToolbar(), fillWindowTitle(), getMainMenu(), getTabsHTML(), initHelp(), ilUIHookPluginGUI\KEEP, parseCurrentBlock(), setCenterColumnClass(), and setCurrentBlock().

Referenced by printToStdout(), and printToString().

385  : string {
386  $this->fillMessage();
387 
388  // set standard parts (tabs and title icon)
389  $this->fillBodyClass();
390 
391  // see #22992
392  $this->fillContentLanguage();
393 
394  if ($a_fill_tabs) {
395  if ($this->blockExists("content")) {
396  // determine default screen id
397  $this->getTabsHTML();
398  }
399  // to get also the js files for the main menu
400  if (!$a_skip_main_menu) {
401  $this->getMainMenu();
402  $this->initHelp();
403  }
404 
405  // these fill blocks in tpl.main.html
406  $this->fillCssFiles();
407  $this->fillInlineCss();
408  //$this->fillJavaScriptFiles();
409 
410  // these fill just plain placeholder variables in tpl.main.html
411  $this->setCurrentBlock();
412  $this->fillNewContentStyle();
413  $this->fillWindowTitle();
414 
415  // these fill blocks in tpl.adm_content.html
416  $this->fillHeader();
417  $this->fillSideIcons();
418  $this->fillScreenReaderFocus();
419  $this->fillLeftContent();
420  $this->fillLeftNav();
421  $this->fillRightContent();
422  $this->fillAdminPanel();
423  $this->fillToolbar();
424  $this->fillPermanentLink();
425 
426  $this->setCenterColumnClass();
427 
428  // late loading of javascipr files, since operations above may add files
429  $this->fillJavaScriptFiles();
430  $this->fillOnLoadCode();
431 
432  // these fill just plain placeholder variables in tpl.adm_content.html
433  if ($this->blockExists("content")) {
434  $this->setCurrentBlock("content");
435  $this->fillTabs();
436  $this->fillMainContent();
437  $this->fillMainMenu();
438  $this->parseCurrentBlock();
439  }
440  }
441 
442  if ($part === self::DEFAULT_BLOCK) {
443  $html = $this->template->getUnmodified();
444  } else {
445  $html = $this->template->getUnmodified($part);
446  }
447 
448  // Modification of html is done inline here and can't be done
449  // by ilTemplate, because the "phase" is template_show in this
450  // case here.
451  $component_factory = $DIC["component.factory"];
452 
453  // not quite sure if that's good.
454  $id = $this->template->getTemplateIdentifier(
455  $this->template_name,
456  $this->in_module
457  );
458 
459  foreach ($component_factory->getActivePluginsInSlot("uihk") as $ui_plugin) {
460  $gui_class = $ui_plugin->getUIClassInstance();
461  $resp = $gui_class->getHTML(
462  "",
463  "template_show",
464  [
465  "tpl_id" => $id,
466  "tpl_obj" => $this,
467  "html" => $html
468  ]
469  );
470 
471  if ($resp["mode"] !== ilUIHookPluginGUI::KEEP) {
472  $html = $gui_class->modifyHTML($html, $resp);
473  }
474  }
475 
476  // save language usages as late as possible
478 
479  return $html;
480  }
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
blockExists(string $a_blockname)
check if block exists in actual template
fillJavaScriptFiles(bool $a_force=false)
Probably adds javascript files.
fillCssFiles(bool $a_force=false)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static _saveUsages()
Store the collected language variable usages in the user session This should be called as late as pos...
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetCss()

ilGlobalTemplate::resetCss ( )
protected

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

482  : void
483  {
484  $this->css_files = [];
485  }

◆ resetHeaderBlock()

ilGlobalTemplate::resetHeaderBlock ( bool  $a_reset_header_action = true)

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

Implements ILIAS\UICore\GlobalTemplate.

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

References null, setAlertProperties(), setDescription(), setHeaderActionMenu(), setTitle(), and setTitleIcon().

1144  : void
1145  {
1146  $this->setTitle('');
1147  $this->setTitleIcon('');
1148  $this->setDescription('');
1149  $this->setAlertProperties([]);
1150  $this->enable_fileupload = null;
1151 
1152  // see setFullscreenHeader()
1153  if ($a_reset_header_action) {
1154  $this->setHeaderActionMenu('');
1155  }
1156  }
setAlertProperties(array $a_props)
Set alert properties.
setDescription(string $a_descr)
Sets descripton below title in standard template.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
setHeaderActionMenu(string $a_header)
Set header action menu.
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
+ Here is the call graph for this function:

◆ resetJavascript()

ilGlobalTemplate::resetJavascript ( )

Reset javascript files.

Implements ILIAS\UICore\GlobalTemplate.

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

247  : void
248  {
249  $this->js_files = [];
250  $this->js_files_vp = [];
251  $this->js_files_batch = [];
252  }

◆ setAlertProperties()

ilGlobalTemplate::setAlertProperties ( array  $alerts)

Set alert properties.

Parameters
array<int,array>$alerts

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by clearHeader(), and resetHeaderBlock().

561  : void
562  {
563  $this->title_alerts = $a_props;
564  }
+ Here is the caller graph for this function:

◆ setBodyClass()

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

Sets the body-tags class.

Implements ILIAS\UICore\GlobalTemplate.

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

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

359  : void
360  {
361  $this->body_class = $a_class;
362  }
+ Here is the caller graph for this function:

◆ setCenterColumnClass()

ilGlobalTemplate::setCenterColumnClass ( )
protected
Exceptions
ilTemplateException

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

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

Referenced by getSpecial(), and renderPage().

770  : void
771  {
772  if (!$this->blockExists("center_col_width")) {
773  return;
774  }
775 
776  $left = trim($this->left_content);
777  $right = trim($this->right_content);
778 
779  switch (true) {
780  case ('' !== $left && '' !== $right):
781  $center_column_class = 'col-sm-6';
782  break;
783 
784  case ('' !== $left || '' !== $right):
785  $center_column_class = 'col-sm-9';
786  break;
787 
788  default:
789  $center_column_class = "col-sm-12";
790  break;
791  }
792 
793  if ('' !== $left) {
794  $center_column_class .= " col-sm-push-3";
795  }
796 
797  $this->setCurrentBlock("center_col_width");
798  $this->setVariable("CENTER_COL", $center_column_class);
799  $this->parseCurrentBlock();
800  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
blockExists(string $a_blockname)
check if block exists in actual template
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setContent()

ilGlobalTemplate::setContent ( string  $a_html)

Sets content for standard template.

Implements ILIAS\UICore\GlobalTemplate.

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

726  : void
727  {
728  if ($a_html !== "") {
729  $this->main_content = $a_html;
730  }
731  }

◆ setCurrentBlock()

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

◆ setDescription()

ilGlobalTemplate::setDescription ( string  $a_descr)

Sets descripton below title in standard template.

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by clearHeader(), and resetHeaderBlock().

547  : void
548  {
549  $this->title_desc = $a_descr;
550  }
+ Here is the caller graph for this function:

◆ setFileUploadRefId()

ilGlobalTemplate::setFileUploadRefId ( int  $a_ref_id)

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

Implements ILIAS\UICore\GlobalTemplate.

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

1158  : void
1159  {
1160  $this->enable_fileupload = $a_ref_id;
1161  }

◆ setHeaderActionMenu()

ilGlobalTemplate::setHeaderActionMenu ( string  $a_header)

Set header action menu.

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by resetHeaderBlock().

574  : void
575  {
576  $this->header_action = $a_header;
577  }
+ Here is the caller graph for this function:

◆ setHeaderPageTitle()

ilGlobalTemplate::setHeaderPageTitle ( string  $a_title)

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

Implements ILIAS\UICore\GlobalTemplate.

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

579  : void
580  {
581  $this->header_page_title = $a_title;
582  }

◆ setLeftContent()

ilGlobalTemplate::setLeftContent ( string  $a_html)

Sets content of left column.

Implements ILIAS\UICore\GlobalTemplate.

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

733  : void
734  {
735  if ($a_html !== "") {
736  $this->left_content = $a_html;
737  }
738  }

◆ setLeftNavContent()

ilGlobalTemplate::setLeftNavContent ( string  $a_content)

Sets content of left navigation column.

Implements ILIAS\UICore\GlobalTemplate.

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

740  : void
741  {
742  if ($a_content !== "") {
743  $this->left_nav_content = $a_content;
744  }
745  }

◆ setLocator()

ilGlobalTemplate::setLocator ( )

Insert locator.

Implements ILIAS\UICore\GlobalTemplate.

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

References $DIC, and setVariable().

657  : void
658  {
659  global $DIC;
660 
661  $ilLocator = $DIC["ilLocator"];
662  $html = "";
663 
664  $uip = new ilUIHookProcessor(
665  "components/ILIAS/Locator",
666  "main_locator",
667  ["locator_gui" => $ilLocator]
668  );
669  if (!$uip->replaced()) {
670  $html = $ilLocator->getHTML();
671  }
672  $html = $uip->getHTML($html);
673 
674  $this->setVariable("LOCATOR", $html);
675  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
global $DIC
Definition: shib_login.php:22
+ 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 ILIAS\UICore\GlobalTemplate.

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

911  : void
912  {
913  $this->login_target_par = $a_val;
914  }

◆ 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 ILIAS\UICore\GlobalTemplate.

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

References ilSession\set().

153  : void
154  {
155  if ($a_txt === "" ||
156  !in_array($a_type, self::MESSAGE_TYPES, true)
157  ) {
158  return;
159  }
160 
161  if (!$a_keep) {
162  $this->messages[$a_type] = $a_txt;
163  } else {
164  ilSession::set($a_type, $a_txt);
165  }
166  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setPageFormAction()

ilGlobalTemplate::setPageFormAction ( string  $a_action)

Sets the pages form action.

Implements ILIAS\UICore\GlobalTemplate.

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

889  : void
890  {
891  $this->page_form_action = $a_action;
892  }

◆ 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 ILIAS\UICore\GlobalTemplate.

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

1118  : void {
1119  $this->permanent_link = [
1120  "type" => $a_type,
1121  "id" => $a_id,
1122  "append" => $a_append,
1123  "target" => $a_target,
1124  "title" => $a_title
1125  ];
1126  }

◆ setRightContent()

ilGlobalTemplate::setRightContent ( string  $a_html)

Sets content of right column.

Implements ILIAS\UICore\GlobalTemplate.

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

760  : void
761  {
762  if ($a_html !== '') {
763  $this->right_content = $a_html;
764  }
765  }

◆ setSubTabs()

ilGlobalTemplate::setSubTabs ( string  $a_tabs_html)

sets subtabs in standard template

Implements ILIAS\UICore\GlobalTemplate.

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

References setVariable().

691  : void
692  {
693  $this->setVariable("SUB_TABS", $a_tabs_html);
694  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
+ Here is the call graph for this function:

◆ setTabs()

ilGlobalTemplate::setTabs ( string  $a_tabs_html)
Exceptions
ilTemplateException

Implements ILIAS\UICore\GlobalTemplate.

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

References blockExists(), setVariable(), and touchBlock().

680  : void
681  {
682  if ($a_tabs_html !== "" && $this->blockExists("tabs_outer_start")) {
683  $this->touchBlock("tabs_outer_start");
684  $this->touchBlock("tabs_outer_end");
685  $this->touchBlock("tabs_inner_start");
686  $this->touchBlock("tabs_inner_end");
687  $this->setVariable("TABS", $a_tabs_html);
688  }
689  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
blockExists(string $a_blockname)
check if block exists in actual template
+ 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 ILIAS\UICore\GlobalTemplate.

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

Referenced by clearHeader(), and resetHeaderBlock().

538  : void
539  {
540  $this->title = $a_title;
541  $this->header_page_title = $a_title;
542  }
+ Here is the caller graph for this function:

◆ setTitleIcon()

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

set title icon

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by clearHeader(), and resetHeaderBlock().

555  : void
556  {
557  $this->icon_desc = $a_icon_desc;
558  $this->icon_path = $a_icon_path;
559  }
+ Here is the caller graph for this function:

◆ setTreeFlatIcon()

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

Sets a tree or flat icon.

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

Implements ILIAS\UICore\GlobalTemplate.

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

1059  : void
1060  {
1061  $this->tree_flat_link = $a_link;
1062  $this->tree_flat_mode = $a_mode;
1063  }

◆ setVariable()

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

◆ touchBlock()

ilGlobalTemplate::touchBlock ( string  $block)
Exceptions
ilTemplateException

Implements ILIAS\UICore\GlobalTemplate.

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

Referenced by fillLeftNav(), fillPageFormAction(), fillSideIcons(), fillTabs(), and setTabs().

1192  : bool
1193  {
1194  return $this->template->touchBlock($block);
1195  }
+ Here is the caller graph for this function:

◆ variableExists()

ilGlobalTemplate::variableExists ( string  $a_variablename)
protected

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

1176  : bool
1177  {
1178  return $this->template->variableExists($a_variablename);
1179  }

Field Documentation

◆ $admin_panel_arrow

bool ilGlobalTemplate::$admin_panel_arrow = false
protected

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

◆ $admin_panel_bottom

bool ilGlobalTemplate::$admin_panel_bottom = false
protected

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

◆ $admin_panel_commands_toolbar

ilToolbarGUI ilGlobalTemplate::$admin_panel_commands_toolbar = null
protected

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

Referenced by fillAdminPanel().

◆ $body_class

string ilGlobalTemplate::$body_class = ''
protected

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

◆ $css_files

array ilGlobalTemplate::$css_files = []
protected

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

Referenced by getCSSFiles().

◆ $enable_fileupload

int ilGlobalTemplate::$enable_fileupload = null
protected

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

◆ $header_action

string ilGlobalTemplate::$header_action = ''
protected

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

Referenced by getHeaderActionMenu().

◆ $header_page_title

string ilGlobalTemplate::$header_page_title = ""
protected

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

◆ $icon_desc

string ilGlobalTemplate::$icon_desc = ''
protected

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

◆ $icon_path

string ilGlobalTemplate::$icon_path = ''
protected

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

◆ $in_module

string ilGlobalTemplate::$in_module
protected

◆ $inline_css

array ilGlobalTemplate::$inline_css = []
protected

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

◆ $js_files

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

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

◆ $js_files_batch

array ilGlobalTemplate::$js_files_batch
protected
Initial value:
= [
"assets/js/Basic.js" => 1

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

Referenced by getJSFiles().

◆ $js_files_vp

array ilGlobalTemplate::$js_files_vp
protected
Initial value:
= [
"assets/js/Basic.js" => true

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

◆ $left_content

string ilGlobalTemplate::$left_content = ''
protected

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

◆ $left_nav_content

string ilGlobalTemplate::$left_nav_content = ''
protected

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

◆ $lightbox

array ilGlobalTemplate::$lightbox = []
protected

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

◆ $login_target_par

string ilGlobalTemplate::$login_target_par = ''
protected

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

Referenced by getLoginTargetPar().

◆ $main_content

string ilGlobalTemplate::$main_content = ""
protected

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

◆ $main_menu

string ilGlobalTemplate::$main_menu = ''
protected

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

◆ $main_menu_spacer

string ilGlobalTemplate::$main_menu_spacer = ''
protected

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

◆ $messages

array ilGlobalTemplate::$messages = []
protected

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

◆ $on_load_code

array ilGlobalTemplate::$on_load_code = []
protected

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

◆ $page_form_action

string ilGlobalTemplate::$page_form_action = ""
protected

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

◆ $permanent_link

array ilGlobalTemplate::$permanent_link = []
protected

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

◆ $right_content

string ilGlobalTemplate::$right_content = ''
protected

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

◆ $show_footer

bool ilGlobalTemplate::$show_footer = true
protected

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

◆ $standard_template_loaded

bool ilGlobalTemplate::$standard_template_loaded = false
protected

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

◆ $sub_tabs_html

string ilGlobalTemplate::$sub_tabs_html = ""
protected

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

◆ $tabs_html

string ilGlobalTemplate::$tabs_html = ""
protected

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

◆ $template

ilTemplate ilGlobalTemplate::$template
protected

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

◆ $template_name

string ilGlobalTemplate::$template_name
protected

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

◆ $title

string ilGlobalTemplate::$title = ""
protected

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

◆ $title_alerts

array ilGlobalTemplate::$title_alerts = []
protected

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

◆ $title_desc

string ilGlobalTemplate::$title_desc = ""
protected

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

◆ $tree_flat_link

string ilGlobalTemplate::$tree_flat_link = ""
protected

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

◆ $tree_flat_mode

string ilGlobalTemplate::$tree_flat_mode = ''
protected

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


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