ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 => "./Services/JavaScript/js/Basic.js"]
 
array $js_files_vp = ["./Services/JavaScript/js/Basic.js" => true]
 
array $js_files_batch = ["./Services/JavaScript/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 25 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 53 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().

61  {
62  global $DIC;
63 
64  $this->setBodyClass("std");
65  $this->lng = $DIC->language();
66  $this->http = $DIC->http();
67  $this->locator = $DIC["ilLocator"];
68  $this->tabs = $DIC->tabs();
69  $this->toolbar = $DIC->toolbar();
70  $this->settings = $DIC->settings();
71  $this->component_factory = $DIC["component.factory"];
72 
73  $this->template = new ilTemplate($file, $flag1, $flag2, $in_module, $vars, $plugin, $a_use_cache);
74  }
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
setBodyClass(string $a_class="")
Sets the body-tags class.
+ 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 1151 of file class.ilDataCollectionGlobalTemplate.php.

References $toolbar.

1155  : void {
1156  $this->admin_panel_commands_toolbar = $toolbar;
1157  $this->admin_panel_arrow = $has_arrow;
1158  $this->admin_panel_bottom = $is_bottom_panel;
1159  }

◆ addBlockFile()

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

overwrites ITX::addBlockFile

Implements ilGlobalTemplateInterface.

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

Referenced by loadStandardTemplate().

1275  : bool
1276  {
1277  return $this->template->addBlockFile($var, $block, $template_name, $in_module);
1278  }
+ 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 364 of file class.ilDataCollectionGlobalTemplate.php.

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

◆ 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 378 of file class.ilDataCollectionGlobalTemplate.php.

378  : void
379  {
380  $this->inline_css[] = ["css" => $a_css, "media" => $media];
381  }

◆ 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 205 of file class.ilDataCollectionGlobalTemplate.php.

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

◆ addOnLoadCode()

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

Add on load code.

Implements ilGlobalTemplateInterface.

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

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

◆ blockExists()

ilDataCollectionGlobalTemplate::blockExists ( string  $block_name)

check if block exists in actual template

Parameters
string$block_name

Implements ilGlobalTemplateInterface.

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

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

1280  : bool
1281  {
1282  return $this->template->blockExists($block_name);
1283  }
+ Here is the caller graph for this function:

◆ clearHeader()

ilDataCollectionGlobalTemplate::clearHeader ( )

Clear header.

Implements ilGlobalTemplateInterface.

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

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

529  : void
530  {
531  $this->setTitle("");
532  $this->setTitleIcon("");
533  $this->setDescription("");
534  $this->setAlertProperties([]);
535  }
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 1166 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().

1166  : void
1167  {
1168  if ($this->admin_panel_commands_toolbar === null) {
1169  return;
1170  }
1171 
1173 
1174  // Add arrow if desired.
1175  if ($this->admin_panel_arrow) {
1176  $toolb->setLeadingImage(ilUtil::getImagePath("nav/arrow_upright.svg"), $this->lng->txt("actions"));
1177  }
1178 
1179  $this->fillPageFormAction();
1180 
1181  // Add top admin bar.
1182  $this->setCurrentBlock("adm_view_components");
1183  $this->setVariable("ADM_PANEL1", $toolb->getHTML());
1184  $this->parseCurrentBlock();
1185 
1186  // Add bottom admin bar if user wants one.
1187  if ($this->admin_panel_bottom) {
1188  $this->setCurrentBlock("adm_view_components2");
1189 
1190  // Replace previously set arrow image.
1191  if ($this->admin_panel_arrow) {
1192  $toolb->setLeadingImage(ilUtil::getImagePath("nav/arrow_downright.svg"), $this->lng->txt("actions"));
1193  }
1194 
1195  $this->setVariable("ADM_PANEL2", $toolb->getHTML());
1196  $this->parseCurrentBlock();
1197  }
1198  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
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.
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 426 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

426  : void
427  {
428  if ($this->body_class != "" && $this->blockExists("body_class")) {
429  $this->setCurrentBlock("body_class");
430  $this->setVariable("BODY_CLASS", $this->body_class);
431  $this->parseCurrentBlock();
432  }
433  }
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 848 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

848  : void
849  {
850  $this->setVariable('META_CONTENT_LANGUAGE', $this->lng->getContentLanguage());
851  $this->setVariable('LANGUAGE_DIRECTION', $this->lng->getTextDirection());
852  }
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 392 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

392  : void
393  {
394  if (!$this->blockExists("css_file")) {
395  return;
396  }
397  foreach ($this->css_files as $css) {
398  $filename = $css["file"];
399  if (strpos($filename, "?") > 0) {
400  $filename = substr($filename, 0, strpos($filename, "?"));
401  }
402  if (is_file($filename) || $a_force) {
403  $this->setCurrentBlock("css_file");
404  $this->setVariable("CSS_FILE", $css["file"]);
405  $this->setVariable("CSS_MEDIA", $css["media"]);
406  $this->parseCurrentBlock();
407  }
408  }
409  }
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 564 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

564  : void
565  {
566  $header_tpl = new ilTemplate('tpl.il_header.html', true, true);
567 
568  $header = false;
569 
570  if ($this->icon_path != "") {
571  $header_tpl->setCurrentBlock("header_image");
572  if ($this->icon_desc != "") {
573  $header_tpl->setVariable("IMAGE_DESC", $this->lng->txt("icon") . " " . $this->icon_desc);
574  $header_tpl->setVariable("IMAGE_ALT", $this->lng->txt("icon") . " " . $this->icon_desc);
575  }
576 
577  $header_tpl->setVariable("IMG_HEADER", $this->icon_path);
578  $header_tpl->parseCurrentBlock();
579  $header = true;
580  }
581 
582  if ($this->title != "") {
583  $title = ilUtil::stripScriptHTML($this->title);
584  $header_tpl->setVariable("HEADER", $title);
585 
586  $header = true;
587  }
588 
589  if ($header) {
590  $header_tpl->setCurrentBlock("header_image");
591  $header_tpl->parseCurrentBlock();
592  }
593 
594  if ($this->title_desc != "") {
595  $header_tpl->setCurrentBlock("header_desc");
596  $header_tpl->setVariable("H_DESCRIPTION", $this->title_desc);
597  $header_tpl->parseCurrentBlock();
598  }
599 
600  $header = $this->getHeaderActionMenu();
601  if ($header) {
602  $header_tpl->setCurrentBlock("head_action_inner");
603  $header_tpl->setVariable("HEAD_ACTION", $header);
604  $header_tpl->parseCurrentBlock();
605  $header_tpl->touchBlock("head_action");
606  }
607 
608  if (count($this->title_alerts)) {
609  foreach ($this->title_alerts as $alert) {
610  $header_tpl->setCurrentBlock('header_alert');
611  if (!($alert['propertyNameVisible'] === false)) {
612  $header_tpl->setVariable('H_PROP', $alert['property'] . ':');
613  }
614  $header_tpl->setVariable('H_VALUE', $alert['value']);
615  $header_tpl->parseCurrentBlock();
616  }
617  }
618 
619  $this->template->setVariable("IL_HEADER", $header_tpl->get());
620  }
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 438 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

438  : void
439  {
440  if (!$this->blockExists("css_inline")) {
441  return;
442  }
443  foreach ($this->inline_css as $css) {
444  $this->setCurrentBlock("css_inline");
445  $this->setVariable("CSS_INLINE", $css["css"]);
446  $this->parseCurrentBlock();
447  }
448  }
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 334 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by fillJavaScriptFiles().

334  : void
335  {
336  $this->setCurrentBlock("js_file");
337  if ($this->js_files_vp[$file]) {
338  $this->setVariable("JS_FILE", ilUtil::appendUrlParameterString($file, $vers));
339  } else {
340  $this->setVariable("JS_FILE", $file);
341  }
342  $this->parseCurrentBlock();
343  }
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 281 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

281  : void
282  {
283  $vers = "vers=" . str_replace([".", " "], "-", ILIAS_VERSION);
284 
285  if (DEVMODE) {
286  $vers .= '-' . time();
287  }
288 
289  if ($this->blockExists("js_file")) {
290  // three batches
291  for ($i = 0; $i <= 3; $i++) {
292  reset($this->js_files);
293  foreach ($this->js_files as $file) {
294  if ($this->js_files_batch[$file] == $i) {
295  if (is_file($file) || substr($file, 0, 4) == "http" || substr(
296  $file,
297  0,
298  2
299  ) == "//" || $a_force) {
300  $this->fillJavascriptFile($file, $vers);
301  } else {
302  if (substr($file, 0, 2) == './') { // #13962
303  $url_parts = parse_url($file);
304  if (is_file($url_parts['path'])) {
305  $this->fillJavascriptFile($file, $vers);
306  }
307  }
308  }
309  }
310  }
311  }
312  }
313  }
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 802 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

802  : void
803  {
804  if (trim($this->left_content) != "") {
805  $this->setCurrentBlock("left_column");
806  $this->setVariable("LEFT_CONTENT", $this->left_content);
807  $left_col_class = (trim($this->right_content) == "")
808  ? "col-sm-3 col-sm-pull-9"
809  : "col-sm-3 col-sm-pull-6";
810  $this->setVariable("LEFT_COL_CLASS", $left_col_class);
811  $this->parseCurrentBlock();
812  }
813  }
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 743 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

743  : void
744  {
745  if (trim($this->left_nav_content) != "") {
746  $this->setCurrentBlock("left_nav");
747  $this->setVariable("LEFT_NAV_CONTENT", $this->left_nav_content);
748  $this->parseCurrentBlock();
749  $this->touchBlock("left_nav_space");
750  }
751  }
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 795 of file class.ilDataCollectionGlobalTemplate.php.

References setVariable().

Referenced by getSpecial(), and printToStdout().

795  : void
796  {
797  if (trim($this->main_content) != "") {
798  $this->setVariable("ADM_CONTENT", $this->main_content);
799  }
800  }
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 95 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by getSpecial(), and printToStdout().

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

◆ fillMessage()

ilDataCollectionGlobalTemplate::fillMessage ( )
private

Fill message area.

Definition at line 143 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().

143  : void
144  {
145  $out = "";
146 
147  foreach (self::$message_types as $m) {
148  $txt = $this->getMessageTextForType($m);
149 
150  if ($txt != "") {
152  }
153 
154  $request = $this->http->request();
155  $accept_header = $request->getHeaderLine('Accept');
156  if (ilSession::has($m) && ilSession::get($m) && ($accept_header !== 'application/json')) {
157  ilSession::clear($m);
158  }
159  }
160 
161  if ($out != "") {
162  $this->setVariable("MESSAGE", $out);
163  }
164  }
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:14
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 453 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

453  : void
454  {
455  $this->setVariable(
456  "LOCATION_NEWCONTENT_STYLESHEET_TAG",
457  '<link rel="stylesheet" type="text/css" href="' .
459  . '" />'
460  );
461  }
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 318 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

318  : void
319  {
320  for ($i = 1; $i <= 3; $i++) {
321  if (is_array($this->on_load_code[$i])) {
322  $this->setCurrentBlock("on_load_code");
323  foreach ($this->on_load_code[$i] as $code) {
324  $this->setCurrentBlock("on_load_code_inner");
325  $this->setVariable("OLCODE", $code);
326  $this->parseCurrentBlock();
327  }
328  $this->setCurrentBlock("on_load_code");
329  $this->parseCurrentBlock();
330  }
331  }
332  }
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 884 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by fillAdminPanel().

884  : void
885  {
886  if ($this->page_form_action != "") {
887  $this->setCurrentBlock("page_form_start");
888  $this->setVariable("PAGE_FORM_ACTION", $this->page_form_action);
889  $this->parseCurrentBlock();
890  $this->touchBlock("page_form_end");
891  }
892  }
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 815 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

815  : void
816  {
817  if (trim($this->right_content) != "") {
818  $this->setCurrentBlock("right_column");
819  $this->setVariable("RIGHT_CONTENT", $this->right_content);
820  $this->parseCurrentBlock();
821  }
822  }
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 1109 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().

1109  : void
1110  {
1111  // tree/flat icon
1112  if ($this->tree_flat_link != "") {
1113  if ($this->left_nav_content != "") {
1114  $this->touchBlock("tree_lns");
1115  }
1116 
1117  $this->setCurrentBlock("tree_mode");
1118  $this->setVariable("LINK_MODE", $this->tree_flat_link);
1119  if ($this->settings->get("tree_frame") == "right") {
1120  $this->setVariable("IMG_TREE", ilUtil::getImagePath("standard/icon_sidebar_on.svg"));
1121  $this->setVariable("RIGHT", "Right");
1122  } else {
1123  $this->setVariable("IMG_TREE", ilUtil::getImagePath("standard/icon_sidebar_on.svg"));
1124  }
1125  $this->setVariable("ALT_TREE", $this->lng->txt($this->tree_flat_mode . "view"));
1126  $this->setVariable("TARGET_TREE", ilFrameTargetInfo::_getFrame("MainContent"));
1127  $this->parseCurrentBlock();
1128  }
1129 
1130  $this->setCurrentBlock("tree_icons");
1131  $this->parseCurrentBlock();
1132  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
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.
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 684 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

684  : void
685  {
686  if ($this->blockExists("tabs_outer_start")) {
687  $this->touchBlock("tabs_outer_start");
688  $this->touchBlock("tabs_outer_end");
689  $this->touchBlock("tabs_inner_start");
690  $this->touchBlock("tabs_inner_end");
691 
692  if ($this->tabs_html != "") {
693  $this->setVariable("TABS", $this->tabs_html);
694  }
695  $this->setVariable("SUB_TABS", $this->sub_tabs_html);
696  }
697  }
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 831 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

831  : void
832  {
833  $thtml = $this->toolbar->getHTML();
834  if ($thtml != "") {
835  $this->setCurrentBlock("toolbar_buttons");
836  $this->setVariable("BUTTONS", $thtml);
837  $this->parseCurrentBlock();
838  }
839  }
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 854 of file class.ilDataCollectionGlobalTemplate.php.

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

Referenced by getSpecial(), and printToStdout().

854  : void
855  {
856  if ($this->header_page_title != "") {
857  $title = ilUtil::stripScriptHTML($this->header_page_title);
858  $this->setVariable("PAGETITLE", "- " . $title);
859  }
860 
861  if ($this->settings->get('short_inst_name') != "") {
862  $this->setVariable(
863  "WINDOW_TITLE",
864  $this->settings->get('short_inst_name')
865  );
866  } else {
867  $this->setVariable(
868  "WINDOW_TITLE",
869  "ILIAS"
870  );
871  }
872  }
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 1250 of file class.ilDataCollectionGlobalTemplate.php.

1250  : string
1251  {
1252  return $this->template->get($part);
1253  }

◆ getHeaderActionMenu()

ilDataCollectionGlobalTemplate::getHeaderActionMenu ( )
private

Get header action menu.

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

References $header_action.

Referenced by fillHeader().

625  : string
626  {
627  return $this->header_action;
628  }
+ Here is the caller graph for this function:

◆ getMainMenu()

ilDataCollectionGlobalTemplate::getMainMenu ( )
private

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

Referenced by getSpecial(), and printToStdout().

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

◆ getMessageTextForType()

ilDataCollectionGlobalTemplate::getMessageTextForType ( string  $m)
private

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

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

Referenced by fillMessage().

166  : string
167  {
168  $txt = "";
169  if (ilSession::has($m) && ilSession::get($m) != "") {
170  $txt = ilSession::get($m);
171  } else {
172  if (isset($this->message[$m])) {
173  $txt = $this->message[$m];
174  }
175  }
176 
177  return $txt;
178  }
static get(string $a_var)
static has($a_var)
$txt
Definition: error.php:14
+ 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 243 of file class.ilDataCollectionGlobalTemplate.php.

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

◆ 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 924 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().

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

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

Referenced by getSpecial(), and printToStdout().

699  : void
700  {
701  if ($this->blockExists("tabs_outer_start")) {
702  $this->sub_tabs_html = $this->tabs->getSubTabHTML();
703  $this->tabs_html = $this->tabs->getHTML(true);
704  }
705  }
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 103 of file class.ilDataCollectionGlobalTemplate.php.

References $message_types.

103  : void
104  {
105  }

◆ initHelp()

ilDataCollectionGlobalTemplate::initHelp ( )
private

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

Referenced by getSpecial(), and printToStdout().

99  : void
100  {
101  }
+ 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 472 of file class.ilDataCollectionGlobalTemplate.php.

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

472  : void
473  {
474  if ($this->standard_template_loaded) {
475  return;
476  }
477 
478  // always load jQuery
481 
482  // always load ui framework
484 
485  $this->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
486  $this->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
487 
488  $this->standard_template_loaded = true;
489  }
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 init(ilGlobalTemplateInterface $template=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()

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

Parses the given block.

Implements ilGlobalTemplateInterface.

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

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

1270  : bool
1271  {
1272  return $this->template->parseCurrentBlock($block_name);
1273  }
+ 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 1000 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().

1004  : void {
1005  switch ($this->http->request()->getHeaderLine('Accept')) {
1006  case 'application/json':
1007  $string = json_encode([
1008  self::MESSAGE_TYPE_SUCCESS => is_null($this->message[self::MESSAGE_TYPE_FAILURE]),
1009  'message' => '',
1010  ]);
1011  $stream = \ILIAS\Filesystem\Stream\Streams::ofString($string);
1012  $this->http->saveResponse($this->http->response()->withBody($stream));
1013  $this->http->sendResponse();
1014  exit;
1015  default:
1016  // include yahoo dom per default
1018 
1019  header('P3P: CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
1020  header("Content-type: text/html; charset=UTF-8");
1021 
1022  $this->fillMessage();
1023 
1024  // set standard parts (tabs and title icon)
1025  $this->fillBodyClass();
1026  if ($has_tabs) {
1027  if ($this->blockExists("content")) {
1028  // determine default screen id
1029  $this->getTabsHTML();
1030  }
1031 
1032  // to get also the js files for the main menu
1033  if (!$skip_main_menu) {
1034  $this->getMainMenu();
1035  $this->initHelp();
1036  }
1037 
1038  // these fill blocks in tpl.main.html
1039  $this->fillCssFiles();
1040  $this->fillInlineCss();
1041  //$this->fillJavaScriptFiles();
1042 
1043  // these fill just plain placeholder variables in tpl.main.html
1044  $this->setCurrentBlock();
1045  $this->fillNewContentStyle();
1046  $this->fillContentLanguage();
1047  $this->fillWindowTitle();
1048 
1049  // these fill blocks in tpl.adm_content.html
1050  $this->fillHeader();
1051  $this->fillSideIcons();
1052  $this->fillLeftContent();
1053  $this->fillLeftNav();
1054  $this->fillRightContent();
1055  $this->fillAdminPanel();
1056  $this->fillToolbar();
1057 
1058  $this->setCenterColumnClass();
1059 
1060  // late loading of javascipr files, since operations above may add files
1061  $this->fillJavaScriptFiles();
1062  $this->fillOnLoadCode();
1063 
1064  // these fill just plain placeholder variables in tpl.adm_content.html
1065  if ($this->blockExists("content")) {
1066  $this->setCurrentBlock("content");
1067  $this->fillTabs();
1068  $this->fillMainContent();
1069  $this->fillMainMenu();
1070  $this->parseCurrentBlock();
1071  }
1072  }
1073 
1074  if ($part == "DEFAULT" or is_bool($part)) {
1075  $html = $this->template->getUnmodified();
1076  } else {
1077  $html = $this->template->getUnmodified($part);
1078  }
1079 
1080  // Modification of html is done inline here and can't be done
1081  // by ilTemplate, because the "phase" is template_show in this
1082  // case here.
1083  foreach ($this->component_factory->getActivePluginsInSlot("uihk") as $plugin) {
1084  $gui_class = $plugin->getUIClassInstance();
1085 
1086  $resp = $gui_class->getHTML(
1087  "",
1088  "template_show",
1089  ["tpl_id" => $this->tplIdentifier, "tpl_obj" => $this, "html" => $html]
1090  );
1091 
1092  if ($resp["mode"] != ilUIHookPluginGUI::KEEP) {
1093  $html = $gui_class->modifyHTML($html, $resp);
1094  }
1095  }
1096 
1097  // save language usages as late as possible
1099 
1100  print $html;
1101 
1102  break;
1103  }
1104  }
exit
Definition: login.php:29
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
+ 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 76 of file class.ilDataCollectionGlobalTemplate.php.

76  : string
77  {
78  throw new ilException('not implemented');
79  }

◆ resetHeaderBlock()

ilDataCollectionGlobalTemplate::resetHeaderBlock ( bool  $a_reset_header_action = true)

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

Implements ilGlobalTemplateInterface.

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

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

1219  : void
1220  {
1221  $this->setTitle("");
1222  $this->setTitleIcon("");
1223  $this->setDescription("");
1224  $this->setAlertProperties([]);
1225  $this->setFileUploadRefId(0);
1226 
1227  // see setFullscreenHeader()
1228  if ($a_reset_header_action) {
1229  $this->setHeaderActionMenu("");
1230  }
1231  }
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 268 of file class.ilDataCollectionGlobalTemplate.php.

268  : void
269  {
270  $this->js_files = [];
271  $this->js_files_vp = [];
272  $this->js_files_batch = [];
273  }

◆ setAlertProperties()

ilDataCollectionGlobalTemplate::setAlertProperties ( array  $alerts)

Set alert properties.

Parameters
array<int,array>$alerts

Implements ilGlobalTemplateInterface.

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

Referenced by clearHeader(), and resetHeaderBlock().

521  : void
522  {
523  $this->title_alerts = $alerts;
524  }
+ Here is the caller graph for this function:

◆ setBodyClass()

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

Sets the body-tags class.

Implements ilGlobalTemplateInterface.

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

Referenced by __construct().

421  : void
422  {
423  $this->body_class = $a_class;
424  }
+ Here is the caller graph for this function:

◆ setCenterColumnClass()

ilDataCollectionGlobalTemplate::setCenterColumnClass ( )
private

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

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

Referenced by getSpecial(), and printToStdout().

761  : void
762  {
763  if (!$this->blockExists("center_col_width")) {
764  return;
765  }
766  $center_column_class = "";
767  if (trim($this->right_content) != "" && trim($this->left_content) != "") {
768  $center_column_class = "two_side_col";
769  } else {
770  if (trim($this->right_content) != "" || trim($this->left_content) != "") {
771  $center_column_class = "one_side_col";
772  }
773  }
774 
775  switch ($center_column_class) {
776  case "one_side_col":
777  $center_column_class = "col-sm-9";
778  break;
779  case "two_side_col":
780  $center_column_class = "col-sm-6";
781  break;
782  default:
783  $center_column_class = "col-sm-12";
784  break;
785  }
786  if (trim($this->left_content) != "") {
787  $center_column_class .= " col-sm-push-3";
788  }
789 
790  $this->setCurrentBlock("center_col_width");
791  $this->setVariable("CENTER_COL", $center_column_class);
792  $this->parseCurrentBlock();
793  }
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 717 of file class.ilDataCollectionGlobalTemplate.php.

717  : void
718  {
719  if ($a_html != "") {
720  $this->main_content = $a_html;
721  }
722  }

◆ setCurrentBlock()

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

Sets the template to the given block.

Implements ilGlobalTemplateInterface.

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

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

1260  : bool
1261  {
1262  return $this->template->setCurrentBlock($part);
1263  }
+ 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 510 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by clearHeader(), and resetHeaderBlock().

510  : void
511  {
512  $this->title_desc = $a_descr;
513  }
+ 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 1236 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by resetHeaderBlock().

1236  : void
1237  {
1238  $this->enable_fileupload = false;
1239  }
+ Here is the caller graph for this function:

◆ setHeaderActionMenu()

ilDataCollectionGlobalTemplate::setHeaderActionMenu ( string  $a_header)

Set header action menu.

Implements ilGlobalTemplateInterface.

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

Referenced by resetHeaderBlock().

546  : void
547  {
548  $this->header_action = $a_header;
549  }
+ 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 556 of file class.ilDataCollectionGlobalTemplate.php.

556  : void
557  {
558  $this->header_page_title = $a_title;
559  }

◆ setLeftContent()

ilDataCollectionGlobalTemplate::setLeftContent ( string  $a_html)

Sets content of left column.

Implements ilGlobalTemplateInterface.

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

727  : void
728  {
729  $this->left_content = $a_html;
730  }

◆ setLeftNavContent()

ilDataCollectionGlobalTemplate::setLeftNavContent ( string  $a_content)

Sets content of left navigation column.

Implements ilGlobalTemplateInterface.

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

735  : void
736  {
737  $this->left_nav_content = $a_content;
738  }

◆ setLocator()

ilDataCollectionGlobalTemplate::setLocator ( )

Insert locator.

Implements ilGlobalTemplateInterface.

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

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

637  : void
638  {
639  $html = "";
640 
641  include_once("./Services/UIComponent/classes/class.ilUIHookProcessor.php");
642  $html = $this->locator->getHTML();
643  $uip = new ilUIHookProcessor(
644  "Services/Locator",
645  "main_locator",
646  ["locator_gui" => $this->locator, "html" => $html]
647  );
648  $html = $uip->getHTML($html);
649 
650  $this->setVariable("LOCATOR", $html);
651  }
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 904 of file class.ilDataCollectionGlobalTemplate.php.

904  : void
905  {
906  $this->login_target_par = $a_val;
907  }

◆ 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 128 of file class.ilDataCollectionGlobalTemplate.php.

References ilSession\set().

128  : void
129  {
130  if (!in_array($type, self::$message_types) || $a_txt == "") {
131  return;
132  }
133  if (!$a_keep) {
134  $this->message[$type] = $a_txt;
135  } else {
136  ilSession::set($type, $a_txt);
137  }
138  }
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 879 of file class.ilDataCollectionGlobalTemplate.php.

879  : void
880  {
881  $this->page_form_action = $a_action;
882  }

◆ 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 1200 of file class.ilDataCollectionGlobalTemplate.php.

1206  : void {
1207  $this->permanent_link = [
1208  "type" => $a_type,
1209  "id" => $a_id,
1210  "append" => $a_append,
1211  "target" => $a_target,
1212  "title" => $a_title,
1213  ];
1214  }

◆ setRightContent()

ilDataCollectionGlobalTemplate::setRightContent ( string  $a_html)

Sets content of right column.

Implements ilGlobalTemplateInterface.

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

756  : void
757  {
758  $this->right_content = $a_html;
759  }

◆ setSubTabs()

ilDataCollectionGlobalTemplate::setSubTabs ( string  $a_tabs_html)

sets subtabs in standard template

Implements ilGlobalTemplateInterface.

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

References setVariable().

679  : void
680  {
681  $this->setVariable("SUB_TABS", $a_tabs_html);
682  }
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 665 of file class.ilDataCollectionGlobalTemplate.php.

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

665  : void
666  {
667  if ($a_tabs_html != "" && $this->blockExists("tabs_outer_start")) {
668  $this->touchBlock("tabs_outer_start");
669  $this->touchBlock("tabs_outer_end");
670  $this->touchBlock("tabs_inner_start");
671  $this->touchBlock("tabs_inner_end");
672  $this->setVariable("TABS", $a_tabs_html);
673  }
674  }
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 504 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by clearHeader(), and resetHeaderBlock().

504  : void
505  {
506  $this->title = $a_title;
507  $this->header_page_title = $a_title;
508  }
+ 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 515 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by clearHeader(), and resetHeaderBlock().

515  : void
516  {
517  $this->icon_desc = $a_icon_desc;
518  $this->icon_path = $a_icon_path;
519  }
+ 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 1134 of file class.ilDataCollectionGlobalTemplate.php.

1134  : void
1135  {
1136  $this->tree_flat_link = $a_link;
1137  $this->tree_flat_mode = $a_mode;
1138  }

◆ setVariable()

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

Sets the given variable to the given value.

Parameters
mixed$value

Implements ilGlobalTemplateInterface.

Definition at line 1255 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().

1255  : void
1256  {
1257  $this->template->setVariable($variable, $value);
1258  }
+ Here is the caller graph for this function:

◆ touchBlock()

ilDataCollectionGlobalTemplate::touchBlock ( string  $block)

overwrites ITX::touchBlock.

Implements ilGlobalTemplateInterface.

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

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

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

Field Documentation

◆ $admin_panel_arrow

bool ilDataCollectionGlobalTemplate::$admin_panel_arrow = null
protected

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

◆ $admin_panel_bottom

bool ilDataCollectionGlobalTemplate::$admin_panel_bottom = null
protected

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

◆ $admin_panel_commands_toolbar

ilToolbarGUI ilDataCollectionGlobalTemplate::$admin_panel_commands_toolbar = null
protected

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

Referenced by fillAdminPanel().

◆ $body_class

string ilDataCollectionGlobalTemplate::$body_class
protected

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

◆ $component_factory

ilComponentFactory ilDataCollectionGlobalTemplate::$component_factory
private

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

◆ $css_files

array ilDataCollectionGlobalTemplate::$css_files = []
protected

Stores CSS-files to be included.

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

◆ $enable_fileupload

bool ilDataCollectionGlobalTemplate::$enable_fileupload = null
protected

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

◆ $header_action

string ilDataCollectionGlobalTemplate::$header_action
protected

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

Referenced by getHeaderActionMenu().

◆ $header_page_title

string ilDataCollectionGlobalTemplate::$header_page_title = ""
protected

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

◆ $http

ILIAS HTTP Services ilDataCollectionGlobalTemplate::$http
protected

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

◆ $icon_desc

string ilDataCollectionGlobalTemplate::$icon_desc = ""
protected

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

Referenced by fillHeader().

◆ $icon_path

string ilDataCollectionGlobalTemplate::$icon_path
protected

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

◆ $inline_css

array ilDataCollectionGlobalTemplate::$inline_css = []
protected

Stores CSS to be included directly.

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

◆ $js_files

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

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

◆ $js_files_batch

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

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

◆ $js_files_vp

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

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

◆ $left_content

string ilDataCollectionGlobalTemplate::$left_content = ""
protected

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

◆ $left_nav_content

string ilDataCollectionGlobalTemplate::$left_nav_content = ""
protected

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

◆ $lng

ilLanguage ilDataCollectionGlobalTemplate::$lng
private

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

◆ $locator

ilLocatorGUI ilDataCollectionGlobalTemplate::$locator
private

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

◆ $login_target_par

string ilDataCollectionGlobalTemplate::$login_target_par = ""
protected

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

◆ $main_content

string ilDataCollectionGlobalTemplate::$main_content = ""
protected

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

◆ $main_menu

string ilDataCollectionGlobalTemplate::$main_menu
protected

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

◆ $main_menu_spacer

string ilDataCollectionGlobalTemplate::$main_menu_spacer
protected

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

◆ $message

array ilDataCollectionGlobalTemplate::$message = []
protected

Definition at line 126 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 120 of file class.ilDataCollectionGlobalTemplate.php.

Referenced by hideFooter().

◆ $on_load_code

array ilDataCollectionGlobalTemplate::$on_load_code
protected

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

◆ $page_form_action

string ilDataCollectionGlobalTemplate::$page_form_action = ""
protected

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

◆ $permanent_link

array ilDataCollectionGlobalTemplate::$permanent_link = []
protected

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

◆ $refinery

ILIAS Refinery Factory ilDataCollectionGlobalTemplate::$refinery
protected

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

◆ $right_content

string ilDataCollectionGlobalTemplate::$right_content = ""
protected

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

◆ $settings

ilSetting ilDataCollectionGlobalTemplate::$settings
private

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

◆ $standard_template_loaded

bool ilDataCollectionGlobalTemplate::$standard_template_loaded = false
protected

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

◆ $sub_tabs_html

string ilDataCollectionGlobalTemplate::$sub_tabs_html = ""
protected

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

◆ $tabs

ilTabsGUI ilDataCollectionGlobalTemplate::$tabs
private

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

◆ $tabs_html

string ilDataCollectionGlobalTemplate::$tabs_html = ""
protected

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

◆ $template

ilTemplate ilDataCollectionGlobalTemplate::$template
protected

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

◆ $title

string ilDataCollectionGlobalTemplate::$title = ""
protected

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

◆ $title_alerts

array ilDataCollectionGlobalTemplate::$title_alerts = []
protected

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

◆ $title_desc

string ilDataCollectionGlobalTemplate::$title_desc = ""
protected

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

◆ $toolbar

ilToolbarGUI ilDataCollectionGlobalTemplate::$toolbar
private

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

Referenced by addAdminPanelToolbar().

◆ $tplIdentifier

string ilDataCollectionGlobalTemplate::$tplIdentifier = ""
protected

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

◆ $tree_flat_link

string ilDataCollectionGlobalTemplate::$tree_flat_link = ""
protected

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

◆ $tree_flat_mode

string ilDataCollectionGlobalTemplate::$tree_flat_mode = ""
protected

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


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