ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilDataCollectionGlobalTemplate Class Reference
+ Inheritance diagram for ilDataCollectionGlobalTemplate:
+ Collaboration diagram for ilDataCollectionGlobalTemplate:

Public Member Functions

 __construct (string $file, bool $flag1, bool $flag2, string $in_module="", string $vars=ilGlobalTemplateInterface::DEFAULT_BLOCK, bool $plugin=false, bool $a_use_cache=true)
 
 printToString ()
 Use this method to get the finally rendered page as string. More...
 
 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...
 
 fillCssFiles (bool $a_force=false)
 Fill in the css file tags. 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)
 
 setTreeFlatIcon (string $a_link, string $a_mode)
 Sets a tree or flat icon. 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="DEFAULT")
 
 setVariable (string $variable, $value='')
 Sets the given variable to the given value. More...
 
 setCurrentBlock (string $part="DEFAULT")
 Sets the template to the given block. More...
 
 touchBlock (string $block)
 overwrites ITX::touchBlock. More...
 
 parseCurrentBlock (string $block_name="DEFAULT")
 Parses the given block. 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

 fillJavascriptFile (string $file, string $vers)
 

Protected Attributes

string $tree_flat_link = ""
 
string $page_form_action = ""
 
array $permanent_link = []
 
bool $standard_template_loaded = false
 
ilTemplate $template
 
array $on_load_code
 
string $body_class
 
string $icon_path
 
bool $enable_fileupload = null
 
string $left_content = ""
 
string $left_nav_content = ""
 
string $right_content = ""
 
string $main_content = ""
 
string $login_target_par = ""
 
string $tplIdentifier = ""
 
string $tree_flat_mode = ""
 
string $icon_desc = ""
 
ILIAS HTTP Services $http
 
ILIAS Refinery Factory $refinery
 
string $main_menu
 
string $main_menu_spacer
 
array $message = []
 
array $js_files = [0 => "assets/js/Basic.js"]
 
array $js_files_vp = ["assets/js/Basic.js" => true]
 
array $js_files_batch = ["assets/js/Basic.js" => 1]
 
array $css_files = []
 Stores CSS-files to be included. More...
 
array $inline_css = []
 Stores CSS to be included directly. More...
 
string $header_page_title = ""
 
string $title = ""
 
string $title_desc = ""
 
array $title_alerts = []
 
string $header_action
 
string $tabs_html = ""
 
string $sub_tabs_html = ""
 
ilToolbarGUI $admin_panel_commands_toolbar = null
 
bool $admin_panel_arrow = null
 
bool $admin_panel_bottom = null
 

Static Protected Attributes

static array $message_types
 

Private Member Functions

 getMainMenu ()
 
 fillMainMenu ()
 
 initHelp ()
 
 fillMessage ()
 Fill message area. More...
 
 getMessageTextForType (string $m)
 
 fillOnLoadCode ()
 Fill add on load code. More...
 
 fillBodyClass ()
 
 fillInlineCss ()
 Fill in the inline css. More...
 
 fillNewContentStyle ()
 Fill Content Style. More...
 
 fillHeader ()
 Fill header. More...
 
 getHeaderActionMenu ()
 Get header action menu. More...
 
 fillTabs ()
 
 getTabsHTML ()
 
 fillLeftNav ()
 Fill left navigation frame. More...
 
 setCenterColumnClass ()
 
 fillMainContent ()
 
 fillLeftContent ()
 
 fillRightContent ()
 
 fillToolbar ()
 
 fillContentLanguage ()
 Add current user language to meta tags. More...
 
 fillWindowTitle ()
 
 fillPageFormAction ()
 
 fillSideIcons ()
 Fill side icons (upper icon, tree icon, web folder icon) More...
 
 fillAdminPanel ()
 Put admin panel into template: More...
 

Private Attributes

ilLanguage $lng
 
ilLocatorGUI $locator
 
ilTabsGUI $tabs
 
ilToolbarGUI $toolbar
 
ilSetting $settings
 
ilComponentFactory $component_factory
 

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

Definition at line 22 of file class.ilDataCollectionGlobalTemplate.php.

Constructor & Destructor Documentation

◆ __construct()

ilDataCollectionGlobalTemplate::__construct ( string  $file,
bool  $flag1,
bool  $flag2,
string  $in_module = "",
string  $vars = ilGlobalTemplateInterface::DEFAULT_BLOCK,
bool  $plugin = false,
bool  $a_use_cache = true 
)

Definition at line 50 of file class.ilDataCollectionGlobalTemplate.php.

References $DIC, XapiProxy\$plugin, ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), setBodyClass(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().

58  {
59  global $DIC;
60 
61  $this->setBodyClass("std");
62  $this->lng = $DIC->language();
63  $this->http = $DIC->http();
64  $this->locator = $DIC["ilLocator"];
65  $this->tabs = $DIC->tabs();
66  $this->toolbar = $DIC->toolbar();
67  $this->settings = $DIC->settings();
68  $this->component_factory = $DIC["component.factory"];
69 
70  $this->template = new ilTemplate($file, $flag1, $flag2, $in_module, $vars, $plugin, $a_use_cache);
71  }
static http()
Fetches the global http state from ILIAS.
setBodyClass(string $a_class="")
Sets the body-tags class.
global $DIC
Definition: shib_login.php:25
+ Here is the call graph for this function:

Member Function Documentation

◆ addAdminPanelToolbar()

ilDataCollectionGlobalTemplate::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 1145 of file class.ilDataCollectionGlobalTemplate.php.

References $toolbar.

1149  : void {
1150  $this->admin_panel_commands_toolbar = $toolbar;
1151  $this->admin_panel_arrow = $has_arrow;
1152  $this->admin_panel_bottom = $is_bottom_panel;
1153  }

◆ addBlockFile()

ilDataCollectionGlobalTemplate::addBlockFile ( string  $var,
string  $block,
string  $template_name,
string  $in_module = null 
)

overwrites ITX::addBlockFile

Implements ilGlobalTemplateInterface.

Definition at line 1269 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by loadStandardTemplate().

1269  : bool
1270  {
1271  return $this->template->addBlockFile($var, $block, $template_name, $in_module);
1272  }
+ Here is the caller graph for this function:

◆ addCss()

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

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

Implements ilGlobalTemplateInterface.

Definition at line 361 of file class.ilDataCollectionGlobalTemplate.php.

361  : void
362  {
363  if (!array_key_exists($a_css_file . $media, $this->css_files)) {
364  $this->css_files[$a_css_file . $media] = ["file" => $a_css_file, "media" => $media];
365  }
366  }

◆ addInlineCss()

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

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

Implements ilGlobalTemplateInterface.

Definition at line 375 of file class.ilDataCollectionGlobalTemplate.php.

375  : void
376  {
377  $this->inline_css[] = ["css" => $a_css, "media" => $media];
378  }

◆ addJavaScript()

ilDataCollectionGlobalTemplate::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 202 of file class.ilDataCollectionGlobalTemplate.php.

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

◆ addOnLoadCode()

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

Add on load code.

Implements ilGlobalTemplateInterface.

Definition at line 227 of file class.ilDataCollectionGlobalTemplate.php.

227  : void
228  {
229  // three batches currently
230  if ($a_batch < 1 || $a_batch > 3) {
231  $a_batch = 2;
232  }
233  $this->on_load_code[$a_batch][] = $a_code;
234  }

◆ blockExists()

ilDataCollectionGlobalTemplate::blockExists ( string  $block_name)

check if block exists in actual template

Parameters
string$block_name

Implements ilGlobalTemplateInterface.

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

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

1274  : bool
1275  {
1276  return $this->template->blockExists($block_name);
1277  }
+ Here is the caller graph for this function:

◆ clearHeader()

ilDataCollectionGlobalTemplate::clearHeader ( )

Clear header.

Implements ilGlobalTemplateInterface.

Definition at line 523 of file class.ilDataCollectionGlobalTemplate.php.

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

523  : void
524  {
525  $this->setTitle("");
526  $this->setTitleIcon("");
527  $this->setDescription("");
528  $this->setAlertProperties([]);
529  }
setAlertProperties(array $alerts)
Set alert properties.
setDescription(string $a_descr)
Sets description 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
+ Here is the call graph for this function:

◆ fillAdminPanel()

ilDataCollectionGlobalTemplate::fillAdminPanel ( )
private

Put admin panel into template:

  • creation selector
  • admin view on/off button

Definition at line 1160 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

1160  : void
1161  {
1162  if ($this->admin_panel_commands_toolbar === null) {
1163  return;
1164  }
1165 
1167 
1168  // Add arrow if desired.
1169  if ($this->admin_panel_arrow) {
1170  $toolb->setLeadingImage(ilUtil::getImagePath("nav/arrow_upright.svg"), $this->lng->txt("actions"));
1171  }
1172 
1173  $this->fillPageFormAction();
1174 
1175  // Add top admin bar.
1176  $this->setCurrentBlock("adm_view_components");
1177  $this->setVariable("ADM_PANEL1", $toolb->getHTML());
1178  $this->parseCurrentBlock();
1179 
1180  // Add bottom admin bar if user wants one.
1181  if ($this->admin_panel_bottom) {
1182  $this->setCurrentBlock("adm_view_components2");
1183 
1184  // Replace previously set arrow image.
1185  if ($this->admin_panel_arrow) {
1186  $toolb->setLeadingImage(ilUtil::getImagePath("nav/arrow_downright.svg"), $this->lng->txt("actions"));
1187  }
1188 
1189  $this->setVariable("ADM_PANEL2", $toolb->getHTML());
1190  $this->parseCurrentBlock();
1191  }
1192  }
setLeadingImage(string $a_img, string $a_alt)
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
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:

◆ fillBodyClass()

ilDataCollectionGlobalTemplate::fillBodyClass ( )
private

Definition at line 423 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

423  : void
424  {
425  if ($this->body_class != "" && $this->blockExists("body_class")) {
426  $this->setCurrentBlock("body_class");
427  $this->setVariable("BODY_CLASS", $this->body_class);
428  $this->parseCurrentBlock();
429  }
430  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
blockExists(string $block_name)
check if block exists in actual template
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:

◆ fillContentLanguage()

ilDataCollectionGlobalTemplate::fillContentLanguage ( )
private

Add current user language to meta tags.

Definition at line 842 of file class.ilDataCollectionGlobalTemplate.php.

References ILIAS\Repository\lng(), and setVariable().

Referenced by getSpecial(), and printToStdout().

842  : void
843  {
844  $this->setVariable('META_CONTENT_LANGUAGE', $this->lng->getContentLanguage());
845  $this->setVariable('LANGUAGE_DIRECTION', $this->lng->getTextDirection());
846  }
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:

◆ fillCssFiles()

ilDataCollectionGlobalTemplate::fillCssFiles ( bool  $a_force = false)

Fill in the css file tags.

Parameters
bool$a_force

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

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

Referenced by getSpecial(), and printToStdout().

389  : void
390  {
391  if (!$this->blockExists("css_file")) {
392  return;
393  }
394  foreach ($this->css_files as $css) {
395  $filename = $css["file"];
396  if (strpos($filename, "?") > 0) {
397  $filename = substr($filename, 0, strpos($filename, "?"));
398  }
399  if (is_file($filename) || $a_force) {
400  $this->setCurrentBlock("css_file");
401  $this->setVariable("CSS_FILE", $css["file"]);
402  $this->setVariable("CSS_MEDIA", $css["media"]);
403  $this->parseCurrentBlock();
404  }
405  }
406  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
$filename
Definition: buildRTE.php:78
blockExists(string $block_name)
check if block exists in actual template
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:

◆ fillHeader()

ilDataCollectionGlobalTemplate::fillHeader ( )
private

Fill header.

Definition at line 558 of file class.ilDataCollectionGlobalTemplate.php.

References $icon_desc, getHeaderActionMenu(), ILIAS\Repository\lng(), and ilUtil\stripScriptHTML().

Referenced by getSpecial(), and printToStdout().

558  : void
559  {
560  $header_tpl = new ilTemplate('tpl.il_header.html', true, true);
561 
562  $header = false;
563 
564  if ($this->icon_path != "") {
565  $header_tpl->setCurrentBlock("header_image");
566  if ($this->icon_desc != "") {
567  $header_tpl->setVariable("IMAGE_DESC", $this->lng->txt("icon") . " " . $this->icon_desc);
568  $header_tpl->setVariable("IMAGE_ALT", $this->lng->txt("icon") . " " . $this->icon_desc);
569  }
570 
571  $header_tpl->setVariable("IMG_HEADER", $this->icon_path);
572  $header_tpl->parseCurrentBlock();
573  $header = true;
574  }
575 
576  if ($this->title != "") {
577  $title = ilUtil::stripScriptHTML($this->title);
578  $header_tpl->setVariable("HEADER", $title);
579 
580  $header = true;
581  }
582 
583  if ($header) {
584  $header_tpl->setCurrentBlock("header_image");
585  $header_tpl->parseCurrentBlock();
586  }
587 
588  if ($this->title_desc != "") {
589  $header_tpl->setCurrentBlock("header_desc");
590  $header_tpl->setVariable("H_DESCRIPTION", $this->title_desc);
591  $header_tpl->parseCurrentBlock();
592  }
593 
594  $header = $this->getHeaderActionMenu();
595  if ($header) {
596  $header_tpl->setCurrentBlock("head_action_inner");
597  $header_tpl->setVariable("HEAD_ACTION", $header);
598  $header_tpl->parseCurrentBlock();
599  $header_tpl->touchBlock("head_action");
600  }
601 
602  if (count($this->title_alerts)) {
603  foreach ($this->title_alerts as $alert) {
604  $header_tpl->setCurrentBlock('header_alert');
605  if (!($alert['propertyNameVisible'] === false)) {
606  $header_tpl->setVariable('H_PROP', $alert['property'] . ':');
607  }
608  $header_tpl->setVariable('H_VALUE', $alert['value']);
609  $header_tpl->parseCurrentBlock();
610  }
611  }
612 
613  $this->template->setVariable("IL_HEADER", $header_tpl->get());
614  }
static stripScriptHTML(string $a_str, string $a_allow="", bool $a_rm_js=true)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillInlineCss()

ilDataCollectionGlobalTemplate::fillInlineCss ( )
private

Fill in the inline css.

Definition at line 435 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

435  : void
436  {
437  if (!$this->blockExists("css_inline")) {
438  return;
439  }
440  foreach ($this->inline_css as $css) {
441  $this->setCurrentBlock("css_inline");
442  $this->setVariable("CSS_INLINE", $css["css"]);
443  $this->parseCurrentBlock();
444  }
445  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
blockExists(string $block_name)
check if block exists in actual template
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:

◆ fillJavascriptFile()

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

Definition at line 331 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by fillJavaScriptFiles().

331  : void
332  {
333  $this->setCurrentBlock("js_file");
334  if ($this->js_files_vp[$file]) {
335  $this->setVariable("JS_FILE", ilUtil::appendUrlParameterString($file, $vers));
336  } else {
337  $this->setVariable("JS_FILE", $file);
338  }
339  $this->parseCurrentBlock();
340  }
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
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:

◆ fillJavaScriptFiles()

ilDataCollectionGlobalTemplate::fillJavaScriptFiles ( bool  $a_force = false)

Probably adds javascript files.

Implements ilGlobalTemplateInterface.

Definition at line 278 of file class.ilDataCollectionGlobalTemplate.php.

References blockExists(), fillJavascriptFile(), and ILIAS_VERSION.

Referenced by getSpecial(), and printToStdout().

278  : void
279  {
280  $vers = "vers=" . str_replace([".", " "], "-", ILIAS_VERSION);
281 
282  if (DEVMODE) {
283  $vers .= '-' . time();
284  }
285 
286  if ($this->blockExists("js_file")) {
287  // three batches
288  for ($i = 0; $i <= 3; $i++) {
289  reset($this->js_files);
290  foreach ($this->js_files as $file) {
291  if ($this->js_files_batch[$file] == $i) {
292  if (is_file($file) || substr($file, 0, 4) == "http" || substr(
293  $file,
294  0,
295  2
296  ) == "//" || $a_force) {
297  $this->fillJavascriptFile($file, $vers);
298  } else {
299  if (substr($file, 0, 2) == './') { // #13962
300  $url_parts = parse_url($file);
301  if (is_file($url_parts['path'])) {
302  $this->fillJavascriptFile($file, $vers);
303  }
304  }
305  }
306  }
307  }
308  }
309  }
310  }
const ILIAS_VERSION
blockExists(string $block_name)
check if block exists in actual template
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillLeftContent()

ilDataCollectionGlobalTemplate::fillLeftContent ( )
private

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

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

Referenced by getSpecial(), and printToStdout().

796  : void
797  {
798  if (trim($this->left_content) != "") {
799  $this->setCurrentBlock("left_column");
800  $this->setVariable("LEFT_CONTENT", $this->left_content);
801  $left_col_class = (trim($this->right_content) == "")
802  ? "col-sm-3 col-sm-pull-9"
803  : "col-sm-3 col-sm-pull-6";
804  $this->setVariable("LEFT_COL_CLASS", $left_col_class);
805  $this->parseCurrentBlock();
806  }
807  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
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:

◆ fillLeftNav()

ilDataCollectionGlobalTemplate::fillLeftNav ( )
private

Fill left navigation frame.

Definition at line 737 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

737  : void
738  {
739  if (trim($this->left_nav_content) != "") {
740  $this->setCurrentBlock("left_nav");
741  $this->setVariable("LEFT_NAV_CONTENT", $this->left_nav_content);
742  $this->parseCurrentBlock();
743  $this->touchBlock("left_nav_space");
744  }
745  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
touchBlock(string $block)
overwrites ITX::touchBlock.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillMainContent()

ilDataCollectionGlobalTemplate::fillMainContent ( )
private

Definition at line 789 of file class.ilDataCollectionGlobalTemplate.php.

References setVariable().

Referenced by getSpecial(), and printToStdout().

789  : void
790  {
791  if (trim($this->main_content) != "") {
792  $this->setVariable("ADM_CONTENT", $this->main_content);
793  }
794  }
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()

ilDataCollectionGlobalTemplate::fillMainMenu ( )
private

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

Referenced by getSpecial(), and printToStdout().

92  : void
93  {
94  }
+ Here is the caller graph for this function:

◆ fillMessage()

ilDataCollectionGlobalTemplate::fillMessage ( )
private

Fill message area.

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

References $out, $txt, ilSession\clear(), ilSession\get(), getMessageTextForType(), ilUtil\getSystemMessageHTML(), ilSession\has(), ILIAS\FileDelivery\http(), and setVariable().

Referenced by getSpecial(), and printToStdout().

140  : void
141  {
142  $out = "";
143 
144  foreach (self::$message_types as $m) {
145  $txt = $this->getMessageTextForType($m);
146 
147  if ($txt != "") {
149  }
150 
151  $request = $this->http->request();
152  $accept_header = $request->getHeaderLine('Accept');
153  if (ilSession::has($m) && ilSession::get($m) && ($accept_header !== 'application/json')) {
154  ilSession::clear($m);
155  }
156  }
157 
158  if ($out != "") {
159  $this->setVariable("MESSAGE", $out);
160  }
161  }
static get(string $a_var)
static getSystemMessageHTML(string $a_txt, string $a_type="info")
Get HTML for a system message.
static http()
Fetches the global http state from ILIAS.
$out
Definition: buildRTE.php:24
static has($a_var)
$txt
Definition: error.php:30
setVariable(string $variable, $value='')
Sets the given variable to the given value.
static clear(string $a_var)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillNewContentStyle()

ilDataCollectionGlobalTemplate::fillNewContentStyle ( )
private

Fill Content Style.

Definition at line 450 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

450  : void
451  {
452  $this->setVariable(
453  "LOCATION_NEWCONTENT_STYLESHEET_TAG",
454  '<link rel="stylesheet" type="text/css" href="' .
456  . '" />'
457  );
458  }
static getNewContentStyleSheetLocation(string $mode="output")
get full style sheet file name (path inclusive) of current user
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:

◆ fillOnLoadCode()

ilDataCollectionGlobalTemplate::fillOnLoadCode ( )
private

Fill add on load code.

Definition at line 315 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

315  : void
316  {
317  for ($i = 1; $i <= 3; $i++) {
318  if (is_array($this->on_load_code[$i])) {
319  $this->setCurrentBlock("on_load_code");
320  foreach ($this->on_load_code[$i] as $code) {
321  $this->setCurrentBlock("on_load_code_inner");
322  $this->setVariable("OLCODE", $code);
323  $this->parseCurrentBlock();
324  }
325  $this->setCurrentBlock("on_load_code");
326  $this->parseCurrentBlock();
327  }
328  }
329  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
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:

◆ fillPageFormAction()

ilDataCollectionGlobalTemplate::fillPageFormAction ( )
private

Definition at line 878 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by fillAdminPanel().

878  : void
879  {
880  if ($this->page_form_action != "") {
881  $this->setCurrentBlock("page_form_start");
882  $this->setVariable("PAGE_FORM_ACTION", $this->page_form_action);
883  $this->parseCurrentBlock();
884  $this->touchBlock("page_form_end");
885  }
886  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
touchBlock(string $block)
overwrites ITX::touchBlock.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillRightContent()

ilDataCollectionGlobalTemplate::fillRightContent ( )
private

Definition at line 809 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

809  : void
810  {
811  if (trim($this->right_content) != "") {
812  $this->setCurrentBlock("right_column");
813  $this->setVariable("RIGHT_CONTENT", $this->right_content);
814  $this->parseCurrentBlock();
815  }
816  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
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:

◆ fillSideIcons()

ilDataCollectionGlobalTemplate::fillSideIcons ( )
private

Fill side icons (upper icon, tree icon, web folder icon)

Definition at line 1103 of file class.ilDataCollectionGlobalTemplate.php.

References ilFrameTargetInfo\_getFrame(), ilUtil\getImagePath(), ILIAS\Repository\lng(), parseCurrentBlock(), setCurrentBlock(), ILIAS\Repository\settings(), setVariable(), and touchBlock().

Referenced by getSpecial(), and printToStdout().

1103  : void
1104  {
1105  // tree/flat icon
1106  if ($this->tree_flat_link != "") {
1107  if ($this->left_nav_content != "") {
1108  $this->touchBlock("tree_lns");
1109  }
1110 
1111  $this->setCurrentBlock("tree_mode");
1112  $this->setVariable("LINK_MODE", $this->tree_flat_link);
1113  if ($this->settings->get("tree_frame") == "right") {
1114  $this->setVariable("IMG_TREE", ilUtil::getImagePath("standard/icon_sidebar_on.svg"));
1115  $this->setVariable("RIGHT", "Right");
1116  } else {
1117  $this->setVariable("IMG_TREE", ilUtil::getImagePath("standard/icon_sidebar_on.svg"));
1118  }
1119  $this->setVariable("ALT_TREE", $this->lng->txt($this->tree_flat_mode . "view"));
1120  $this->setVariable("TARGET_TREE", ilFrameTargetInfo::_getFrame("MainContent"));
1121  $this->parseCurrentBlock();
1122  }
1123 
1124  $this->setCurrentBlock("tree_icons");
1125  $this->parseCurrentBlock();
1126  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setVariable(string $variable, $value='')
Sets the given variable to the given value.
static _getFrame(string $a_class)
touchBlock(string $block)
overwrites ITX::touchBlock.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillTabs()

ilDataCollectionGlobalTemplate::fillTabs ( )
private

Definition at line 678 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

678  : void
679  {
680  if ($this->blockExists("tabs_outer_start")) {
681  $this->touchBlock("tabs_outer_start");
682  $this->touchBlock("tabs_outer_end");
683  $this->touchBlock("tabs_inner_start");
684  $this->touchBlock("tabs_inner_end");
685 
686  if ($this->tabs_html != "") {
687  $this->setVariable("TABS", $this->tabs_html);
688  }
689  $this->setVariable("SUB_TABS", $this->sub_tabs_html);
690  }
691  }
blockExists(string $block_name)
check if block exists in actual template
setVariable(string $variable, $value='')
Sets the given variable to the given value.
touchBlock(string $block)
overwrites ITX::touchBlock.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillToolbar()

ilDataCollectionGlobalTemplate::fillToolbar ( )
private

Definition at line 825 of file class.ilDataCollectionGlobalTemplate.php.

References parseCurrentBlock(), setCurrentBlock(), setVariable(), and ILIAS\Repository\toolbar().

Referenced by getSpecial(), and printToStdout().

825  : void
826  {
827  $thtml = $this->toolbar->getHTML();
828  if ($thtml != "") {
829  $this->setCurrentBlock("toolbar_buttons");
830  $this->setVariable("BUTTONS", $thtml);
831  $this->parseCurrentBlock();
832  }
833  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
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:

◆ fillWindowTitle()

ilDataCollectionGlobalTemplate::fillWindowTitle ( )
private

Definition at line 848 of file class.ilDataCollectionGlobalTemplate.php.

References ILIAS\Repository\settings(), setVariable(), and ilUtil\stripScriptHTML().

Referenced by getSpecial(), and printToStdout().

848  : void
849  {
850  if ($this->header_page_title != "") {
851  $title = ilUtil::stripScriptHTML($this->header_page_title);
852  $this->setVariable("PAGETITLE", "- " . $title);
853  }
854 
855  if ($this->settings->get('short_inst_name') != "") {
856  $this->setVariable(
857  "WINDOW_TITLE",
858  $this->settings->get('short_inst_name')
859  );
860  } else {
861  $this->setVariable(
862  "WINDOW_TITLE",
863  "ILIAS"
864  );
865  }
866  }
static stripScriptHTML(string $a_str, string $a_allow="", bool $a_rm_js=true)
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:

◆ get()

ilDataCollectionGlobalTemplate::get ( string  $part = "DEFAULT")
Parameters
string
Returns
string

Implements ilGlobalTemplateInterface.

Definition at line 1244 of file class.ilDataCollectionGlobalTemplate.php.

1244  : string
1245  {
1246  return $this->template->get($part);
1247  }

◆ getHeaderActionMenu()

ilDataCollectionGlobalTemplate::getHeaderActionMenu ( )
private

Get header action menu.

Definition at line 619 of file class.ilDataCollectionGlobalTemplate.php.

References $header_action.

Referenced by fillHeader().

619  : string
620  {
621  return $this->header_action;
622  }
+ Here is the caller graph for this function:

◆ getMainMenu()

ilDataCollectionGlobalTemplate::getMainMenu ( )
private

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

Referenced by getSpecial(), and printToStdout().

88  : void
89  {
90  }
+ Here is the caller graph for this function:

◆ getMessageTextForType()

ilDataCollectionGlobalTemplate::getMessageTextForType ( string  $m)
private

Definition at line 163 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by fillMessage().

163  : string
164  {
165  $txt = "";
166  if (ilSession::has($m) && ilSession::get($m) != "") {
167  $txt = ilSession::get($m);
168  } else {
169  if (isset($this->message[$m])) {
170  $txt = $this->message[$m];
171  }
172  }
173 
174  return $txt;
175  }
static get(string $a_var)
static has($a_var)
$txt
Definition: error.php:30
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOnLoadCodeForAsynch()

ilDataCollectionGlobalTemplate::getOnLoadCodeForAsynch ( )

Get js onload code for ajax calls.

Returns
string

Implements ilGlobalTemplateInterface.

Definition at line 240 of file class.ilDataCollectionGlobalTemplate.php.

240  : string
241  {
242  $js = "";
243  for ($i = 1; $i <= 3; $i++) {
244  if (is_array($this->on_load_code[$i])) {
245  foreach ($this->on_load_code[$i] as $code) {
246  $js .= $code . "\n";
247  }
248  }
249  }
250  if ($js) {
251  return '<script type="text/javascript">' . "\n" .
252  $js .
253  '</script>' . "\n";
254  }
255 
256  return '';
257  }

◆ getSpecial()

ilDataCollectionGlobalTemplate::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.

Implements ilGlobalTemplateInterface.

Definition at line 918 of file class.ilDataCollectionGlobalTemplate.php.

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

926  : string {
927  if ($add_error_mess) {
928  $this->fillMessage();
929  }
930 
931  // set standard parts (tabs and title icon)
932  if ($add_standard_elements) {
933  if ($this->blockExists("content") && $a_tabs) {
934  // determine default screen id
935  $this->getTabsHTML();
936  }
937 
938  // to get also the js files for the main menu
939  $this->getMainMenu();
940  $this->initHelp();
941 
942  // these fill blocks in tpl.main.html
943  $this->fillCssFiles();
944  $this->fillInlineCss();
945  $this->fillBodyClass();
946 
947  // these fill just plain placeholder variables in tpl.main.html
948  $this->setCurrentBlock();
949  $this->fillNewContentStyle();
950  $this->fillContentLanguage();
951  $this->fillWindowTitle();
952 
953  // these fill blocks in tpl.adm_content.html
954  $this->fillHeader();
955  $this->fillSideIcons();
956  $this->fillLeftContent();
957  $this->fillLeftNav();
958  $this->fillRightContent();
959  $this->fillAdminPanel();
960  $this->fillToolbar();
961 
962  $this->setCenterColumnClass();
963 
964  // late loading of javascipr files, since operations above may add files
965  $this->fillJavaScriptFiles();
966  $this->fillOnLoadCode();
967 
968  // these fill just plain placeholder variables in tpl.adm_content.html
969  if ($this->blockExists("content")) {
970  $this->setCurrentBlock("content");
971  if ($a_tabs) {
972  $this->fillTabs();
973  }
974  $this->fillMainContent();
975  if ($a_main_menu) {
976  $this->fillMainMenu();
977  }
978  $this->parseCurrentBlock();
979  }
980  }
981 
982  if ($part == "DEFAULT") {
983  $html = $this->template->get();
984  } else {
985  $html = $this->template->get($part);
986  }
987 
988  // save language usages as late as possible
990 
991  return $html;
992  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
fillJavaScriptFiles(bool $a_force=false)
Probably adds javascript files.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
fillSideIcons()
Fill side icons (upper icon, tree icon, web folder icon)
fillCssFiles(bool $a_force=false)
Fill in the css file tags.
fillContentLanguage()
Add current user language to meta tags.
static _saveUsages()
Store the collected language variable usages in the user session This should be called as late as pos...
blockExists(string $block_name)
check if block exists in actual template
+ Here is the call graph for this function:

◆ getTabsHTML()

ilDataCollectionGlobalTemplate::getTabsHTML ( )
private

Definition at line 693 of file class.ilDataCollectionGlobalTemplate.php.

References blockExists(), and ILIAS\Repository\tabs().

Referenced by getSpecial(), and printToStdout().

693  : void
694  {
695  if ($this->blockExists("tabs_outer_start")) {
696  $this->sub_tabs_html = $this->tabs->getSubTabHTML();
697  $this->tabs_html = $this->tabs->getHTML(true);
698  }
699  }
blockExists(string $block_name)
check if block exists in actual template
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hideFooter()

ilDataCollectionGlobalTemplate::hideFooter ( )

Make the template hide the footer.

Implements ilGlobalTemplateInterface.

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

References $message_types.

100  : void
101  {
102  }

◆ initHelp()

ilDataCollectionGlobalTemplate::initHelp ( )
private

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

Referenced by getSpecial(), and printToStdout().

96  : void
97  {
98  }
+ Here is the caller graph for this function:

◆ loadStandardTemplate()

ilDataCollectionGlobalTemplate::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.

Implements ilGlobalTemplateInterface.

Definition at line 469 of file class.ilDataCollectionGlobalTemplate.php.

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

469  : void
470  {
471  if ($this->standard_template_loaded) {
472  return;
473  }
474 
475  // always load jQuery
478 
479  $this->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
480  $this->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
481 
482  $this->standard_template_loaded = true;
483  }
addBlockFile(string $var, string $block, string $template_name, string $in_module=null)
overwrites ITX::addBlockFile
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)
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()

ilDataCollectionGlobalTemplate::parseCurrentBlock ( string  $block_name = "DEFAULT")

Parses the given block.

Implements ilGlobalTemplateInterface.

Definition at line 1264 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by fillAdminPanel(), fillBodyClass(), fillCssFiles(), fillInlineCss(), fillJavascriptFile(), fillLeftContent(), fillLeftNav(), fillOnLoadCode(), fillPageFormAction(), fillRightContent(), fillSideIcons(), fillToolbar(), getSpecial(), printToStdout(), and setCenterColumnClass().

1264  : bool
1265  {
1266  return $this->template->parseCurrentBlock($block_name);
1267  }
+ Here is the caller graph for this function:

◆ printToStdout()

ilDataCollectionGlobalTemplate::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 994 of file class.ilDataCollectionGlobalTemplate.php.

References XapiProxy\$plugin, XapiProxy\$resp, ilObjLanguageAccess\_saveUsages(), blockExists(), exit, fillAdminPanel(), fillBodyClass(), fillContentLanguage(), fillCssFiles(), fillHeader(), fillInlineCss(), fillJavaScriptFiles(), fillLeftContent(), fillLeftNav(), fillMainContent(), fillMainMenu(), fillMessage(), fillNewContentStyle(), fillOnLoadCode(), fillRightContent(), fillSideIcons(), fillTabs(), fillToolbar(), fillWindowTitle(), getMainMenu(), getTabsHTML(), ILIAS\UI\examples\Symbol\Glyph\Header\header(), ILIAS\FileDelivery\http(), ilYuiUtil\initDom(), initHelp(), ilUIHookPluginGUI\KEEP, ILIAS\Filesystem\Stream\Streams\ofString(), parseCurrentBlock(), setCenterColumnClass(), and setCurrentBlock().

998  : void {
999  switch ($this->http->request()->getHeaderLine('Accept')) {
1000  case 'application/json':
1001  $string = json_encode([
1002  self::MESSAGE_TYPE_SUCCESS => is_null($this->message[self::MESSAGE_TYPE_FAILURE]),
1003  'message' => '',
1004  ]);
1005  $stream = \ILIAS\Filesystem\Stream\Streams::ofString($string);
1006  $this->http->saveResponse($this->http->response()->withBody($stream));
1007  $this->http->sendResponse();
1008  exit;
1009  default:
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  $this->fillMessage();
1017 
1018  // set standard parts (tabs and title icon)
1019  $this->fillBodyClass();
1020  if ($has_tabs) {
1021  if ($this->blockExists("content")) {
1022  // determine default screen id
1023  $this->getTabsHTML();
1024  }
1025 
1026  // to get also the js files for the main menu
1027  if (!$skip_main_menu) {
1028  $this->getMainMenu();
1029  $this->initHelp();
1030  }
1031 
1032  // these fill blocks in tpl.main.html
1033  $this->fillCssFiles();
1034  $this->fillInlineCss();
1035  //$this->fillJavaScriptFiles();
1036 
1037  // these fill just plain placeholder variables in tpl.main.html
1038  $this->setCurrentBlock();
1039  $this->fillNewContentStyle();
1040  $this->fillContentLanguage();
1041  $this->fillWindowTitle();
1042 
1043  // these fill blocks in tpl.adm_content.html
1044  $this->fillHeader();
1045  $this->fillSideIcons();
1046  $this->fillLeftContent();
1047  $this->fillLeftNav();
1048  $this->fillRightContent();
1049  $this->fillAdminPanel();
1050  $this->fillToolbar();
1051 
1052  $this->setCenterColumnClass();
1053 
1054  // late loading of javascipr files, since operations above may add files
1055  $this->fillJavaScriptFiles();
1056  $this->fillOnLoadCode();
1057 
1058  // these fill just plain placeholder variables in tpl.adm_content.html
1059  if ($this->blockExists("content")) {
1060  $this->setCurrentBlock("content");
1061  $this->fillTabs();
1062  $this->fillMainContent();
1063  $this->fillMainMenu();
1064  $this->parseCurrentBlock();
1065  }
1066  }
1067 
1068  if ($part == "DEFAULT" or is_bool($part)) {
1069  $html = $this->template->getUnmodified();
1070  } else {
1071  $html = $this->template->getUnmodified($part);
1072  }
1073 
1074  // Modification of html is done inline here and can't be done
1075  // by ilTemplate, because the "phase" is template_show in this
1076  // case here.
1077  foreach ($this->component_factory->getActivePluginsInSlot("uihk") as $plugin) {
1078  $gui_class = $plugin->getUIClassInstance();
1079 
1080  $resp = $gui_class->getHTML(
1081  "",
1082  "template_show",
1083  ["tpl_id" => $this->tplIdentifier, "tpl_obj" => $this, "html" => $html]
1084  );
1085 
1086  if ($resp["mode"] != ilUIHookPluginGUI::KEEP) {
1087  $html = $gui_class->modifyHTML($html, $resp);
1088  }
1089  }
1090 
1091  // save language usages as late as possible
1093 
1094  print $html;
1095 
1096  break;
1097  }
1098  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
fillJavaScriptFiles(bool $a_force=false)
Probably adds javascript files.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
fillSideIcons()
Fill side icons (upper icon, tree icon, web folder icon)
static initDom(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.
static http()
Fetches the global http state from ILIAS.
fillCssFiles(bool $a_force=false)
Fill in the css file tags.
fillContentLanguage()
Add current user language to meta tags.
static ofString(string $string)
Creates a new stream with an initial value.
Definition: Streams.php:41
static _saveUsages()
Store the collected language variable usages in the user session This should be called as late as pos...
blockExists(string $block_name)
check if block exists in actual template
header()
expected output: > ILIAS shows the rendered Component.
Definition: header.php:13
+ Here is the call graph for this function:

◆ printToString()

ilDataCollectionGlobalTemplate::printToString ( )

Use this method to get the finally rendered page as string.

Implements ilGlobalTemplateInterface.

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

73  : string
74  {
75  throw new ilException('not implemented');
76  }

◆ resetHeaderBlock()

ilDataCollectionGlobalTemplate::resetHeaderBlock ( bool  $a_reset_header_action = true)

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

Implements ilGlobalTemplateInterface.

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

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

1213  : void
1214  {
1215  $this->setTitle("");
1216  $this->setTitleIcon("");
1217  $this->setDescription("");
1218  $this->setAlertProperties([]);
1219  $this->setFileUploadRefId(0);
1220 
1221  // see setFullscreenHeader()
1222  if ($a_reset_header_action) {
1223  $this->setHeaderActionMenu("");
1224  }
1225  }
setAlertProperties(array $alerts)
Set alert properties.
setFileUploadRefId(int $a_ref_id)
Enables the file upload into this object by dropping a file.
setDescription(string $a_descr)
Sets description 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
setHeaderActionMenu(string $a_header)
Set header action menu.
+ Here is the call graph for this function:

◆ resetJavascript()

ilDataCollectionGlobalTemplate::resetJavascript ( )

Reset javascript files.

Implements ilGlobalTemplateInterface.

Definition at line 265 of file class.ilDataCollectionGlobalTemplate.php.

265  : void
266  {
267  $this->js_files = [];
268  $this->js_files_vp = [];
269  $this->js_files_batch = [];
270  }

◆ setAlertProperties()

ilDataCollectionGlobalTemplate::setAlertProperties ( array  $alerts)

Set alert properties.

Parameters
array<int,array>$alerts

Implements ilGlobalTemplateInterface.

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

Referenced by clearHeader(), and resetHeaderBlock().

515  : void
516  {
517  $this->title_alerts = $alerts;
518  }
+ Here is the caller graph for this function:

◆ setBodyClass()

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

Sets the body-tags class.

Implements ilGlobalTemplateInterface.

Definition at line 418 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by __construct().

418  : void
419  {
420  $this->body_class = $a_class;
421  }
+ Here is the caller graph for this function:

◆ setCenterColumnClass()

ilDataCollectionGlobalTemplate::setCenterColumnClass ( )
private

Definition at line 755 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

755  : void
756  {
757  if (!$this->blockExists("center_col_width")) {
758  return;
759  }
760  $center_column_class = "";
761  if (trim($this->right_content) != "" && trim($this->left_content) != "") {
762  $center_column_class = "two_side_col";
763  } else {
764  if (trim($this->right_content) != "" || trim($this->left_content) != "") {
765  $center_column_class = "one_side_col";
766  }
767  }
768 
769  switch ($center_column_class) {
770  case "one_side_col":
771  $center_column_class = "col-sm-9";
772  break;
773  case "two_side_col":
774  $center_column_class = "col-sm-6";
775  break;
776  default:
777  $center_column_class = "col-sm-12";
778  break;
779  }
780  if (trim($this->left_content) != "") {
781  $center_column_class .= " col-sm-push-3";
782  }
783 
784  $this->setCurrentBlock("center_col_width");
785  $this->setVariable("CENTER_COL", $center_column_class);
786  $this->parseCurrentBlock();
787  }
setCurrentBlock(string $part="DEFAULT")
Sets the template to the given block.
parseCurrentBlock(string $block_name="DEFAULT")
Parses the given block.
blockExists(string $block_name)
check if block exists in actual template
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:

◆ setContent()

ilDataCollectionGlobalTemplate::setContent ( string  $a_html)

Sets content for standard template.

Implements ilGlobalTemplateInterface.

Definition at line 711 of file class.ilDataCollectionGlobalTemplate.php.

711  : void
712  {
713  if ($a_html != "") {
714  $this->main_content = $a_html;
715  }
716  }

◆ setCurrentBlock()

ilDataCollectionGlobalTemplate::setCurrentBlock ( string  $part = "DEFAULT")

Sets the template to the given block.

Implements ilGlobalTemplateInterface.

Definition at line 1254 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by fillAdminPanel(), fillBodyClass(), fillCssFiles(), fillInlineCss(), fillJavascriptFile(), fillLeftContent(), fillLeftNav(), fillOnLoadCode(), fillPageFormAction(), fillRightContent(), fillSideIcons(), fillToolbar(), getSpecial(), printToStdout(), and setCenterColumnClass().

1254  : bool
1255  {
1256  return $this->template->setCurrentBlock($part);
1257  }
+ Here is the caller graph for this function:

◆ setDescription()

ilDataCollectionGlobalTemplate::setDescription ( string  $a_descr)

Sets description below title in standard template.

Implements ilGlobalTemplateInterface.

Definition at line 504 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by clearHeader(), and resetHeaderBlock().

504  : void
505  {
506  $this->title_desc = $a_descr;
507  }
+ Here is the caller graph for this function:

◆ setFileUploadRefId()

ilDataCollectionGlobalTemplate::setFileUploadRefId ( int  $a_ref_id)

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

Implements ilGlobalTemplateInterface.

Definition at line 1230 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by resetHeaderBlock().

1230  : void
1231  {
1232  $this->enable_fileupload = false;
1233  }
+ Here is the caller graph for this function:

◆ setHeaderActionMenu()

ilDataCollectionGlobalTemplate::setHeaderActionMenu ( string  $a_header)

Set header action menu.

Implements ilGlobalTemplateInterface.

Definition at line 540 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by resetHeaderBlock().

540  : void
541  {
542  $this->header_action = $a_header;
543  }
+ Here is the caller graph for this function:

◆ setHeaderPageTitle()

ilDataCollectionGlobalTemplate::setHeaderPageTitle ( string  $a_title)

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

Implements ilGlobalTemplateInterface.

Definition at line 550 of file class.ilDataCollectionGlobalTemplate.php.

550  : void
551  {
552  $this->header_page_title = $a_title;
553  }

◆ setLeftContent()

ilDataCollectionGlobalTemplate::setLeftContent ( string  $a_html)

Sets content of left column.

Implements ilGlobalTemplateInterface.

Definition at line 721 of file class.ilDataCollectionGlobalTemplate.php.

721  : void
722  {
723  $this->left_content = $a_html;
724  }

◆ setLeftNavContent()

ilDataCollectionGlobalTemplate::setLeftNavContent ( string  $a_content)

Sets content of left navigation column.

Implements ilGlobalTemplateInterface.

Definition at line 729 of file class.ilDataCollectionGlobalTemplate.php.

729  : void
730  {
731  $this->left_nav_content = $a_content;
732  }

◆ setLocator()

ilDataCollectionGlobalTemplate::setLocator ( )

Insert locator.

Implements ilGlobalTemplateInterface.

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

References ILIAS\Repository\locator(), and setVariable().

631  : void
632  {
633  $html = "";
634 
635  include_once("./components/ILIAS/UIComponent/classes/class.ilUIHookProcessor.php");
636  $html = $this->locator->getHTML();
637  $uip = new ilUIHookProcessor(
638  "components/ILIAS/Locator",
639  "main_locator",
640  ["locator_gui" => $this->locator, "html" => $html]
641  );
642  $html = $uip->getHTML($html);
643 
644  $this->setVariable("LOCATOR", $html);
645  }
setVariable(string $variable, $value='')
Sets the given variable to the given value.
+ Here is the call graph for this function:

◆ setLoginTargetPar()

ilDataCollectionGlobalTemplate::setLoginTargetPar ( string  $a_val)

Set target parameter for login (public sector).

This is used by the main menu

Implements ilGlobalTemplateInterface.

Definition at line 898 of file class.ilDataCollectionGlobalTemplate.php.

898  : void
899  {
900  $this->login_target_par = $a_val;
901  }

◆ setOnScreenMessage()

ilDataCollectionGlobalTemplate::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 125 of file class.ilDataCollectionGlobalTemplate.php.

References ilSession\set().

125  : void
126  {
127  if (!in_array($type, self::$message_types) || $a_txt == "") {
128  return;
129  }
130  if (!$a_keep) {
131  $this->message[$type] = $a_txt;
132  } else {
133  ilSession::set($type, $a_txt);
134  }
135  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setPageFormAction()

ilDataCollectionGlobalTemplate::setPageFormAction ( string  $a_action)

Sets the pages form action.

Implements ilGlobalTemplateInterface.

Definition at line 873 of file class.ilDataCollectionGlobalTemplate.php.

873  : void
874  {
875  $this->page_form_action = $a_action;
876  }

◆ setPermanentLink()

ilDataCollectionGlobalTemplate::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 1194 of file class.ilDataCollectionGlobalTemplate.php.

1200  : void {
1201  $this->permanent_link = [
1202  "type" => $a_type,
1203  "id" => $a_id,
1204  "append" => $a_append,
1205  "target" => $a_target,
1206  "title" => $a_title,
1207  ];
1208  }

◆ setRightContent()

ilDataCollectionGlobalTemplate::setRightContent ( string  $a_html)

Sets content of right column.

Implements ilGlobalTemplateInterface.

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

750  : void
751  {
752  $this->right_content = $a_html;
753  }

◆ setSubTabs()

ilDataCollectionGlobalTemplate::setSubTabs ( string  $a_tabs_html)

sets subtabs in standard template

Implements ilGlobalTemplateInterface.

Definition at line 673 of file class.ilDataCollectionGlobalTemplate.php.

References setVariable().

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

◆ setTabs()

ilDataCollectionGlobalTemplate::setTabs ( string  $a_tabs_html)

sets tabs in standard template

Implements ilGlobalTemplateInterface.

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

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

659  : void
660  {
661  if ($a_tabs_html != "" && $this->blockExists("tabs_outer_start")) {
662  $this->touchBlock("tabs_outer_start");
663  $this->touchBlock("tabs_outer_end");
664  $this->touchBlock("tabs_inner_start");
665  $this->touchBlock("tabs_inner_end");
666  $this->setVariable("TABS", $a_tabs_html);
667  }
668  }
blockExists(string $block_name)
check if block exists in actual template
setVariable(string $variable, $value='')
Sets the given variable to the given value.
touchBlock(string $block)
overwrites ITX::touchBlock.
+ Here is the call graph for this function:

◆ setTitle()

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

Sets title in standard template.

Will override the header_page_title.

Implements ilGlobalTemplateInterface.

Definition at line 498 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by clearHeader(), and resetHeaderBlock().

498  : void
499  {
500  $this->title = $a_title;
501  $this->header_page_title = $a_title;
502  }
+ Here is the caller graph for this function:

◆ setTitleIcon()

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

set title icon

Implements ilGlobalTemplateInterface.

Definition at line 509 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by clearHeader(), and resetHeaderBlock().

509  : void
510  {
511  $this->icon_desc = $a_icon_desc;
512  $this->icon_path = $a_icon_path;
513  }
+ Here is the caller graph for this function:

◆ setTreeFlatIcon()

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

Sets a tree or flat icon.

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

Implements ilGlobalTemplateInterface.

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

1128  : void
1129  {
1130  $this->tree_flat_link = $a_link;
1131  $this->tree_flat_mode = $a_mode;
1132  }

◆ setVariable()

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

Sets the given variable to the given value.

Parameters
mixed$value

Implements ilGlobalTemplateInterface.

Definition at line 1249 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by fillAdminPanel(), fillBodyClass(), fillContentLanguage(), fillCssFiles(), fillInlineCss(), fillJavascriptFile(), fillLeftContent(), fillLeftNav(), fillMainContent(), fillMessage(), fillNewContentStyle(), fillOnLoadCode(), fillPageFormAction(), fillRightContent(), fillSideIcons(), fillTabs(), fillToolbar(), fillWindowTitle(), setCenterColumnClass(), setLocator(), setSubTabs(), and setTabs().

1249  : void
1250  {
1251  $this->template->setVariable($variable, $value);
1252  }
+ Here is the caller graph for this function:

◆ touchBlock()

ilDataCollectionGlobalTemplate::touchBlock ( string  $block)

overwrites ITX::touchBlock.

Implements ilGlobalTemplateInterface.

Definition at line 1259 of file class.ilDataCollectionGlobalTemplate.php.

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

1259  : bool
1260  {
1261  return $this->template->touchBlock($block);
1262  }
+ Here is the caller graph for this function:

Field Documentation

◆ $admin_panel_arrow

bool ilDataCollectionGlobalTemplate::$admin_panel_arrow = null
protected

Definition at line 1142 of file class.ilDataCollectionGlobalTemplate.php.

◆ $admin_panel_bottom

bool ilDataCollectionGlobalTemplate::$admin_panel_bottom = null
protected

Definition at line 1143 of file class.ilDataCollectionGlobalTemplate.php.

◆ $admin_panel_commands_toolbar

ilToolbarGUI ilDataCollectionGlobalTemplate::$admin_panel_commands_toolbar = null
protected

Definition at line 1141 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by fillAdminPanel().

◆ $body_class

string ilDataCollectionGlobalTemplate::$body_class
protected

Definition at line 36 of file class.ilDataCollectionGlobalTemplate.php.

◆ $component_factory

ilComponentFactory ilDataCollectionGlobalTemplate::$component_factory
private

Definition at line 29 of file class.ilDataCollectionGlobalTemplate.php.

◆ $css_files

array ilDataCollectionGlobalTemplate::$css_files = []
protected

Stores CSS-files to be included.

Definition at line 352 of file class.ilDataCollectionGlobalTemplate.php.

◆ $enable_fileupload

bool ilDataCollectionGlobalTemplate::$enable_fileupload = null
protected

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

◆ $header_action

string ilDataCollectionGlobalTemplate::$header_action
protected

Definition at line 496 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by getHeaderActionMenu().

◆ $header_page_title

string ilDataCollectionGlobalTemplate::$header_page_title = ""
protected

Definition at line 492 of file class.ilDataCollectionGlobalTemplate.php.

◆ $http

ILIAS HTTP Services ilDataCollectionGlobalTemplate::$http
protected

Definition at line 47 of file class.ilDataCollectionGlobalTemplate.php.

◆ $icon_desc

string ilDataCollectionGlobalTemplate::$icon_desc = ""
protected

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

Referenced by fillHeader().

◆ $icon_path

string ilDataCollectionGlobalTemplate::$icon_path
protected

Definition at line 37 of file class.ilDataCollectionGlobalTemplate.php.

◆ $inline_css

array ilDataCollectionGlobalTemplate::$inline_css = []
protected

Stores CSS to be included directly.

Definition at line 356 of file class.ilDataCollectionGlobalTemplate.php.

◆ $js_files

array ilDataCollectionGlobalTemplate::$js_files = [0 => "assets/js/Basic.js"]
protected

Definition at line 187 of file class.ilDataCollectionGlobalTemplate.php.

◆ $js_files_batch

array ilDataCollectionGlobalTemplate::$js_files_batch = ["assets/js/Basic.js" => 1]
protected

Definition at line 197 of file class.ilDataCollectionGlobalTemplate.php.

◆ $js_files_vp

array ilDataCollectionGlobalTemplate::$js_files_vp = ["assets/js/Basic.js" => true]
protected

Definition at line 192 of file class.ilDataCollectionGlobalTemplate.php.

◆ $left_content

string ilDataCollectionGlobalTemplate::$left_content = ""
protected

Definition at line 39 of file class.ilDataCollectionGlobalTemplate.php.

◆ $left_nav_content

string ilDataCollectionGlobalTemplate::$left_nav_content = ""
protected

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

◆ $lng

ilLanguage ilDataCollectionGlobalTemplate::$lng
private

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

◆ $locator

ilLocatorGUI ilDataCollectionGlobalTemplate::$locator
private

Definition at line 25 of file class.ilDataCollectionGlobalTemplate.php.

◆ $login_target_par

string ilDataCollectionGlobalTemplate::$login_target_par = ""
protected

Definition at line 43 of file class.ilDataCollectionGlobalTemplate.php.

◆ $main_content

string ilDataCollectionGlobalTemplate::$main_content = ""
protected

Definition at line 42 of file class.ilDataCollectionGlobalTemplate.php.

◆ $main_menu

string ilDataCollectionGlobalTemplate::$main_menu
protected

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

◆ $main_menu_spacer

string ilDataCollectionGlobalTemplate::$main_menu_spacer
protected

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

◆ $message

array ilDataCollectionGlobalTemplate::$message = []
protected

Definition at line 123 of file class.ilDataCollectionGlobalTemplate.php.

◆ $message_types

array ilDataCollectionGlobalTemplate::$message_types
staticprotected
Initial value:
= [
self::MESSAGE_TYPE_FAILURE,
self::MESSAGE_TYPE_INFO,
self::MESSAGE_TYPE_SUCCESS,
self::MESSAGE_TYPE_QUESTION,
]

Definition at line 117 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by hideFooter().

◆ $on_load_code

array ilDataCollectionGlobalTemplate::$on_load_code
protected

Definition at line 35 of file class.ilDataCollectionGlobalTemplate.php.

◆ $page_form_action

string ilDataCollectionGlobalTemplate::$page_form_action = ""
protected

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

◆ $permanent_link

array ilDataCollectionGlobalTemplate::$permanent_link = []
protected

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

◆ $refinery

ILIAS Refinery Factory ilDataCollectionGlobalTemplate::$refinery
protected

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

◆ $right_content

string ilDataCollectionGlobalTemplate::$right_content = ""
protected

Definition at line 41 of file class.ilDataCollectionGlobalTemplate.php.

◆ $settings

ilSetting ilDataCollectionGlobalTemplate::$settings
private

Definition at line 28 of file class.ilDataCollectionGlobalTemplate.php.

◆ $standard_template_loaded

bool ilDataCollectionGlobalTemplate::$standard_template_loaded = false
protected

Definition at line 33 of file class.ilDataCollectionGlobalTemplate.php.

◆ $sub_tabs_html

string ilDataCollectionGlobalTemplate::$sub_tabs_html = ""
protected

Definition at line 654 of file class.ilDataCollectionGlobalTemplate.php.

◆ $tabs

ilTabsGUI ilDataCollectionGlobalTemplate::$tabs
private

Definition at line 26 of file class.ilDataCollectionGlobalTemplate.php.

◆ $tabs_html

string ilDataCollectionGlobalTemplate::$tabs_html = ""
protected

Definition at line 653 of file class.ilDataCollectionGlobalTemplate.php.

◆ $template

ilTemplate ilDataCollectionGlobalTemplate::$template
protected

Definition at line 34 of file class.ilDataCollectionGlobalTemplate.php.

◆ $title

string ilDataCollectionGlobalTemplate::$title = ""
protected

Definition at line 493 of file class.ilDataCollectionGlobalTemplate.php.

◆ $title_alerts

array ilDataCollectionGlobalTemplate::$title_alerts = []
protected

Definition at line 495 of file class.ilDataCollectionGlobalTemplate.php.

◆ $title_desc

string ilDataCollectionGlobalTemplate::$title_desc = ""
protected

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

◆ $toolbar

ilToolbarGUI ilDataCollectionGlobalTemplate::$toolbar
private

Definition at line 27 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by addAdminPanelToolbar().

◆ $tplIdentifier

string ilDataCollectionGlobalTemplate::$tplIdentifier = ""
protected

Definition at line 44 of file class.ilDataCollectionGlobalTemplate.php.

◆ $tree_flat_link

string ilDataCollectionGlobalTemplate::$tree_flat_link = ""
protected

Definition at line 30 of file class.ilDataCollectionGlobalTemplate.php.

◆ $tree_flat_mode

string ilDataCollectionGlobalTemplate::$tree_flat_mode = ""
protected

Definition at line 45 of file class.ilDataCollectionGlobalTemplate.php.


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