ILIAS  release_7 Revision v7.30-3-g800a261c036
ilGlobalPageTemplate Class Reference

Class ilGlobalPageTemplate. More...

+ Inheritance diagram for ilGlobalPageTemplate:
+ Collaboration diagram for ilGlobalPageTemplate:

Public Member Functions

 __construct (Services $gs, UIServices $ui, HTTPServices $http)
 @inheritDoc More...
 
 printToStdout ($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false)
 @inheritDoc More...
 
 printToString ()
 @inheritDoc More...
 
 addJavaScript ($a_js_file, $a_add_version_parameter=true, $a_batch=2)
 @inheritDoc More...
 
 addCss ($a_css_file, $media="screen")
 @inheritDoc More...
 
 addOnLoadCode ($a_code, $a_batch=2)
 @inheritDoc More...
 
 addInlineCss ($a_css, $media="screen")
 @inheritDoc More...
 
 setContent ($a_html)
 @inheritDoc More...
 
 setLeftContent ($a_html)
 @inheritDoc More...
 
 setRightContent ($a_html)
 @inheritDoc More...
 
 setFilter (string $filter)
 
 setTitle ($a_title, $hidden=false)
 @inheritDoc More...
 
 setDescription ($a_descr)
 @inheritDoc More...
 
 setTitleIcon ($a_icon_path, $a_icon_desc="")
 @inheritDoc More...
 
 setBanner (string $img_src)
 
 setAlertProperties (array $a_props)
 @inheritDoc More...
 
 setOnScreenMessage ($a_type, $a_txt, $a_keep=false)
 @inheritDoc More...
 
 enableDragDropFileUpload ($a_ref_id)
 @inheritDoc More...
 
 setHeaderActionMenu ($a_header)
 @inheritDoc More...
 
 setHeaderPageTitle ($a_title)
 @inheritDoc More...
 
 addLightbox ($a_html, $a_id)
 @inheritDoc More...
 
 setPageFormAction ($a_action)
 
 addAdminPanelToolbar (ilToolbarGUI $toolb, $a_bottom_panel=true, $a_arrow=false)
 @inheritDoc More...
 
 setVariable ($variable, $value='')
 
 resetJavascript ()
 @inheritDoc More...
 
 get ($part="DEFAULT")
 @inheritDoc More...
 
 setCurrentBlock ($blockname="DEFAULT")
 @inheritDoc More...
 
 touchBlock ($blockname)
 @inheritDoc More...
 
 parseCurrentBlock ($blockname="DEFAULT")
 @inheritDoc More...
 
 addBlockFile ($var, $block, $tplname, $in_module=false)
 @inheritDoc More...
 
 blockExists ($blockname)
 @inheritDoc More...
 
 loadStandardTemplate ()
 @inheritDoc More...
 
 setLocator ()
 @inheritDoc More...
 
 setPermanentLink ($a_type, $a_id, $a_append="", $a_target="", $a_title="")
 @inheritDoc More...
 
 setTreeFlatIcon ($a_link, $a_mode)
 @inheritDoc More...
 
 hideFooter ()
 @inheritDoc More...
 
 setLeftNavContent ($a_content)
 @inheritDoc More...
 
 resetHeaderBlock ($a_reset_header_action=true)
 @inheritDoc More...
 
 setLoginTargetPar ($a_val)
 @inheritDoc More...
 
 getOnLoadCodeForAsynch ()
 @inheritDoc More...
 
 fillJavaScriptFiles ($a_force=false)
 
 setBodyClass ($a_class="")
 @inheritDoc More...
 
 clearHeader ()
 @inheritDoc More...
 
 setTabs ($a_tabs_html)
 @inheritDoc More...
 
 setSubTabs ($a_tabs_html)
 @inheritDoc More...
 
 getSpecial ($part="DEFAULT", $add_error_mess=false, $handle_referer=false, $add_ilias_footer=false, $add_standard_elements=false, $a_main_menu=true, $a_tabs=true)
 @inheritDoc More...
 
 hideFooter ()
 Make the template hide the footer. More...
 
 setOnScreenMessage ($a_type, $a_txt, $a_keep=false)
 Set a message to be displayed to the user. More...
 
 addJavaScript ($a_js_file, $a_add_version_parameter=true, $a_batch=2)
 Add a javascript file that should be included in the header. More...
 
 addOnLoadCode ($a_code, $a_batch=2)
 Add on load code. More...
 
 getOnLoadCodeForAsynch ()
 Get js onload code for ajax calls. More...
 
 resetJavascript ()
 Reset javascript files. More...
 
 fillJavaScriptFiles ($a_force=false)
 
 addCss ($a_css_file, $media="screen")
 Add a css file that should be included in the header. More...
 
 addInlineCss ($a_css, $media="screen")
 Add a css file that should be included in the header. More...
 
 setBodyClass ($a_class="")
 
 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 ($a_title, $hidden=false)
 Sets title in standard template. More...
 
 setDescription ($a_descr)
 Sets descripton below title in standard template. More...
 
 setTitleIcon ($a_icon_path, $a_icon_desc="")
 set title icon More...
 
 setAlertProperties (array $a_props)
 Set alert properties. More...
 
 clearHeader ()
 Clear header. More...
 
 setHeaderActionMenu ($a_header)
 Set header action menu. More...
 
 setHeaderPageTitle ($a_title)
 Sets the title of the page (for browser window). More...
 
 setLocator ()
 Insert locator. More...
 
 setTabs ($a_tabs_html)
 sets tabs in standard template More...
 
 setSubTabs ($a_tabs_html)
 sets subtabs in standard template More...
 
 setContent ($a_html)
 Sets content for standard template. More...
 
 setLeftContent ($a_html)
 Sets content of left column. More...
 
 setLeftNavContent ($a_content)
 Sets content of left navigation column. More...
 
 setRightContent ($a_html)
 Sets content of right column. More...
 
 setPageFormAction ($a_action)
 
 setLoginTargetPar ($a_val)
 Set target parameter for login (public sector). More...
 
 getSpecial ($part="DEFAULT", $add_error_mess=false, $handle_referer=false, $add_ilias_footer=false, $add_standard_elements=false, $a_main_menu=true, $a_tabs=true)
 
 printToStdout ($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false)
 
 printToString ()
 Use this method to get the finally rendered page as string. More...
 
 setTreeFlatIcon ($a_link, $a_mode)
 set tree/flat icon More...
 
 addLightbox ($a_html, $a_id)
 Add lightbox html. More...
 
 addAdminPanelToolbar (ilToolbarGUI $toolb, $a_bottom_panel=true, $a_arrow=false)
 Add admin panel commands as toolbar. More...
 
 setPermanentLink ($a_type, $a_id, $a_append="", $a_target="", $a_title="")
 
 resetHeaderBlock ($a_reset_header_action=true)
 Reset all header properties: title, icon, description, alerts, action menu. More...
 
 enableDragDropFileUpload ($a_ref_id)
 Enables the file upload into this object by dropping a file. More...
 
 get ($part="DEFAULT")
 
 setVariable ($variable, $value='')
 
 setCurrentBlock ($part="DEFAULT")
 @access public More...
 
 touchBlock ($block)
 overwrites ITX::touchBlock. More...
 
 parseCurrentBlock ($part="DEFAULT")
 Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt. More...
 
 addBlockFile ($var, $block, $tplname, $in_module=false)
 overwrites ITX::addBlockFile More...
 
 blockExists ($a_blockname)
 check if block exists in actual template More...
 

Private Member Functions

 prepareOutputHeaders ()
 
 prepareBasicJS ()
 
 prepareBasicCSS ()
 
 handleReferer ()
 Old method from global template fixing #26968. More...
 

Private Attributes

 $http
 
 $gs
 
 $ui
 
 $legacy_content_template
 
 $lng
 
 $il_settings
 

Static Private Attributes

static $ignored_blocks = ['ContentStyle', "DEFAULT", "SyntaxStyle", ""]
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilGlobalPageTemplate::__construct ( Services  $gs,
UIServices  $ui,
HTTPServices  $http 
)

@inheritDoc

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

70 {
71 global $DIC;
72 $this->lng = $DIC->language();
73 $this->ui = $ui;
74 $this->gs = $gs;
75 $this->http = $http;
76 $this->legacy_content_template = new PageContentGUI("tpl.page_content.html", true, true);
77 $this->il_settings = $DIC->settings();
78 }
global $DIC
Definition: goto.php:24
static http()
Fetches the global http state from ILIAS.
ui()
Definition: ui.php:5

References $DIC, $gs, $http, $ui, ILIAS\FileDelivery\http(), and ui().

+ Here is the call graph for this function:

Member Function Documentation

◆ addAdminPanelToolbar()

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

@inheritDoc

Implements ilGlobalTemplateInterface.

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

360 {
361 $this->legacy_content_template->setAdminPanelCommandsToolbar($toolb);
362 $this->legacy_content_template->setAdminPanelArrow($a_arrow);
363 $this->legacy_content_template->setAdminPanelBottom($a_bottom_panel);
364 }

◆ addBlockFile()

ilGlobalPageTemplate::addBlockFile (   $var,
  $block,
  $tplname,
  $in_module = false 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 457 of file class.ilGlobalPageTemplate.php.

458 {
459 if ($this->blockExists($block)) {
460 $this->legacy_content_template->removeBlockData($block);
461 }
462
463 return $this->legacy_content_template->addBlockFile($var, $block, $tplname, $in_module);
464 }
blockExists($blockname)
@inheritDoc

References blockExists().

+ Here is the call graph for this function:

◆ addCss()

ilGlobalPageTemplate::addCss (   $a_css_file,
  $media = "screen" 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 177 of file class.ilGlobalPageTemplate.php.

178 {
179 $this->gs->layout()->meta()->addCss($a_css_file, $media);
180 }

Referenced by setVariable().

+ Here is the caller graph for this function:

◆ addInlineCss()

ilGlobalPageTemplate::addInlineCss (   $a_css,
  $media = "screen" 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

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

196 {
197 $this->gs->layout()->meta()->addInlineCss($a_css, $media);
198 }

◆ addJavaScript()

ilGlobalPageTemplate::addJavaScript (   $a_js_file,
  $a_add_version_parameter = true,
  $a_batch = 2 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

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

169 {
170 $this->gs->layout()->meta()->addJs($a_js_file, $a_add_version_parameter, $a_batch);
171 }

Referenced by ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), and ILIAS\COPage\Editor\UI\Init\initUI().

+ Here is the caller graph for this function:

◆ addLightbox()

ilGlobalPageTemplate::addLightbox (   $a_html,
  $a_id 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 341 of file class.ilGlobalPageTemplate.php.

342 { //
343 $this->legacy_content_template->addLightbox($a_html, $a_id);
344 }

◆ addOnLoadCode()

ilGlobalPageTemplate::addOnLoadCode (   $a_code,
  $a_batch = 2 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 186 of file class.ilGlobalPageTemplate.php.

187 {
188 $this->gs->layout()->meta()->addOnloadCode($a_code, $a_batch);
189 }

◆ blockExists()

ilGlobalPageTemplate::blockExists (   $blockname)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 470 of file class.ilGlobalPageTemplate.php.

471 {
472 if (in_array($blockname, self::$ignored_blocks)) {
473 return false; // TODO why is this needed?
474 }
475
476 return $this->legacy_content_template->blockExists($blockname);
477 }

Referenced by addBlockFile(), parseCurrentBlock(), setCurrentBlock(), and touchBlock().

+ Here is the caller graph for this function:

◆ clearHeader()

ilGlobalPageTemplate::clearHeader ( )

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 602 of file class.ilGlobalPageTemplate.php.

603 {
604 throw new NotImplementedException("This Method is no longer available in GlobalTemplate");
605 }
This exception indicates that an UI component was accepted by the JF but is not backed by a real impl...

◆ enableDragDropFileUpload()

ilGlobalPageTemplate::enableDragDropFileUpload (   $a_ref_id)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 314 of file class.ilGlobalPageTemplate.php.

315 {
316 $this->legacy_content_template->setEnableFileupload((int) $a_ref_id);
317 }

◆ fillJavaScriptFiles()

ilGlobalPageTemplate::fillJavaScriptFiles (   $a_force = false)
Parameters
bool$a_force

Implements ilGlobalTemplateInterface.

Definition at line 584 of file class.ilGlobalPageTemplate.php.

585 {
586 throw new NotImplementedException("This Method is no longer available in GlobalTemplate");
587 }

◆ get()

ilGlobalPageTemplate::get (   $part = "DEFAULT")

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 399 of file class.ilGlobalPageTemplate.php.

400 {
401 return $this->legacy_content_template->get($part);
402 }

◆ getOnLoadCodeForAsynch()

ilGlobalPageTemplate::getOnLoadCodeForAsynch ( )

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 565 of file class.ilGlobalPageTemplate.php.

566 {
567 // see e.g. bug #26413
568 $js = "";
569 foreach ($this->gs->layout()->meta()->getOnLoadCode()->getItemsInOrderOfDelivery() as $code) {
570 $js .= $code->getContent() . "\n";
571 }
572 if ($js) {
573 return '<script type="text/javascript">' . "\n" .
574 $js .
575 '</script>' . "\n";
576 }
577 return "";
578 }

◆ getSpecial()

ilGlobalPageTemplate::getSpecial (   $part = "DEFAULT",
  $add_error_mess = false,
  $handle_referer = false,
  $add_ilias_footer = false,
  $add_standard_elements = false,
  $a_main_menu = true,
  $a_tabs = true 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 629 of file class.ilGlobalPageTemplate.php.

630 { //
631 throw new NotImplementedException();
632 }

◆ handleReferer()

ilGlobalPageTemplate::handleReferer ( )
private

Old method from global template fixing #26968.

Definition at line 638 of file class.ilGlobalPageTemplate.php.

639 {
640 if (((substr(strrchr($_SERVER["PHP_SELF"], "/"), 1) != "error.php")
641 && (substr(strrchr($_SERVER["PHP_SELF"], "/"), 1) != "adm_menu.php")
642 && (substr(strrchr($_SERVER["PHP_SELF"], "/"), 1) != "chat.php"))) {
643 // referer is modified if query string contains cmd=gateway and $_POST is not empty.
644 // this is a workaround to display formular again in case of error and if the referer points to another page
645 $url_parts = @parse_url($_SERVER["REQUEST_URI"]);
646 if (!$url_parts) {
647 $protocol = (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://';
648 $host = $_SERVER['HTTP_HOST'];
649 $path = $_SERVER['REQUEST_URI'];
650 $url_parts = @parse_url($protocol . $host . $path);
651 }
652
653 if (isset($url_parts["query"]) && preg_match("/cmd=gateway/", $url_parts["query"]) && (isset($_POST["cmd"]["create"]))) {
654 foreach ($_POST as $key => $val) {
655 if (is_array($val)) {
656 $val = key($val);
657 }
658
659 $str .= "&" . $key . "=" . $val;
660 }
661
662 $_SESSION["referer"] = preg_replace("/cmd=gateway/", substr($str, 1), $_SERVER["REQUEST_URI"]);
663 $_SESSION['referer_ref_id'] = (int) $_GET['ref_id'];
664 } elseif (isset($url_parts["query"]) && preg_match("/cmd=post/", $url_parts["query"]) && (isset($_POST["cmd"]["create"]))) {
665 foreach ($_POST as $key => $val) {
666 if (is_array($val)) {
667 $val = key($val);
668 }
669
670 $str .= "&" . $key . "=" . $val;
671 }
672
673 $_SESSION["referer"] = preg_replace("/cmd=post/", substr($str, 1), $_SERVER["REQUEST_URI"]);
674 if (isset($_GET['ref_id'])) {
675 $_SESSION['referer_ref_id'] = (int) $_GET['ref_id'];
676 } else {
677 $_SESSION['referer_ref_id'] = 0;
678 }
679 } else {
680 $_SESSION["referer"] = $_SERVER["REQUEST_URI"];
681 if (isset($_GET['ref_id'])) {
682 $_SESSION['referer_ref_id'] = (int) $_GET['ref_id'];
683 } else {
684 $_SESSION['referer_ref_id'] = 0;
685 }
686 }
687
688 unset($_SESSION["error_post_vars"]);
689 }
690 }
$_GET["client_id"]
$_POST["username"]
$_SESSION["AccountId"]
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10

References $_GET, $_POST, $_SERVER, and $_SESSION.

Referenced by printToStdout().

+ Here is the caller graph for this function:

◆ hideFooter()

ilGlobalPageTemplate::hideFooter ( )

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 526 of file class.ilGlobalPageTemplate.php.

527 {
528 // Nothing to do
529 }

◆ loadStandardTemplate()

ilGlobalPageTemplate::loadStandardTemplate ( )

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 489 of file class.ilGlobalPageTemplate.php.

490 {
491 // Nothing to do
492 }

◆ parseCurrentBlock()

ilGlobalPageTemplate::parseCurrentBlock (   $blockname = "DEFAULT")

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 441 of file class.ilGlobalPageTemplate.php.

442 {
443 if (in_array($blockname, self::$ignored_blocks)) {
444 return; // TODO why is this needed?
445 }
446 if ($this->blockExists($blockname)) {
447 return $this->legacy_content_template->parseCurrentBlock($blockname);
448 } else {
449 throw new ilTemplateException("block " . var_export($blockname, true) . " not found");
450 }
451 }

References blockExists().

+ Here is the call graph for this function:

◆ prepareBasicCSS()

ilGlobalPageTemplate::prepareBasicCSS ( )
private

Definition at line 116 of file class.ilGlobalPageTemplate.php.

117 {
118 $this->gs->layout()->meta()->addCss(\ilUtil::getStyleSheetLocation());
119 $this->gs->layout()->meta()->addCss(\ilUtil::getNewContentStyleSheetLocation());
120 }
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
static getNewContentStyleSheetLocation($mode="output")
get full style sheet file name (path inclusive) of current user

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

Referenced by printToStdout(), and printToString().

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

◆ prepareBasicJS()

ilGlobalPageTemplate::prepareBasicJS ( )
private

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

94 {
97 $this->gs->layout()->meta()->addJs("./Services/JavaScript/js/Basic.js", true, 1);
103
104 $sessionReminder = new ilSessionReminderGUI(
106 $this,
107 $this->lng
108 );
109 $sessionReminder->populatePage();
110
111 $onScreenNotifier = new ilNotificationOSDGUI($this, $this->lng);
112 $onScreenNotifier->populatePage();
113 }
static initPage(\ilGlobalTemplateInterface $page)
static initializeFrontend(ilGlobalTemplateInterface $page)
Class ilNotificationOSDGUI.
static initializeFrontend(ilGlobalTemplateInterface $page)
Initialize frontend and delivers required javascript files and configuration to the global template.
static createInstanceWithCurrentUserSession()
static init(ilGlobalTemplateInterface $a_tpl=null)
Init.
static initConnection(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Connection module.
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
static initjQueryUI($a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components....

References ilSessionReminder\createInstanceWithCurrentUserSession(), ilUIFramework\init(), ilYuiUtil\initConnection(), ilBuddySystemGUI\initializeFrontend(), ilOnScreenChatGUI\initializeFrontend(), iljQueryUtil\initjQuery(), iljQueryUtil\initjQueryUI(), and ILIAS\Accessibility\GlobalPageHandler\initPage().

Referenced by printToStdout(), and printToString().

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

◆ prepareOutputHeaders()

ilGlobalPageTemplate::prepareOutputHeaders ( )
private

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

82 {
83 $this->http->saveResponse($this->http->response()->withAddedHeader('P3P', 'CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"'));
84 $this->http->saveResponse($this->http->response()->withAddedHeader('Content-type', 'text/html; charset=UTF-8'));
85
86 if (defined("ILIAS_HTTP_PATH")) {
87 $this->gs->layout()->meta()->setBaseURL((substr(ILIAS_HTTP_PATH, -1) == '/' ? ILIAS_HTTP_PATH : ILIAS_HTTP_PATH . '/'));
88 }
89 $this->gs->layout()->meta()->setTextDirection($this->lng->getTextDirection());
90 }

References ILIAS\FileDelivery\http().

Referenced by printToStdout(), and printToString().

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

◆ printToStdout()

ilGlobalPageTemplate::printToStdout (   $part = "DEFAULT",
  $a_fill_tabs = true,
  $a_skip_main_menu = false 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 126 of file class.ilGlobalPageTemplate.php.

127 {
128 $this->prepareOutputHeaders();
129 $this->prepareBasicJS();
130 $this->prepareBasicCSS();
131
132 $this->http->sendResponse();
133
134 PageContentProvider::setContent($this->legacy_content_template->renderPage("DEFAULT", true, false));
135 print $this->ui->renderer()->render($this->gs->collector()->layout()->getFinalPage());
136
137 // save language usages as late as possible
139
140 // see #26968
141 $this->handleReferer();
142 }
if(! $in) print
handleReferer()
Old method from global template fixing #26968.
static _saveUsages()
Store the collected language variable usages in the user session This should be called as late as pos...

References ilObjLanguageAccess\_saveUsages(), handleReferer(), ILIAS\FileDelivery\http(), prepareBasicCSS(), prepareBasicJS(), prepareOutputHeaders(), print, and ui().

+ Here is the call graph for this function:

◆ printToString()

ilGlobalPageTemplate::printToString ( )

@inheritDoc

Implements ilGlobalTemplateInterface.

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

148 : string
149 {
150 $this->prepareOutputHeaders();
151 $this->prepareBasicJS();
152 $this->prepareBasicCSS();
153
154 PageContentProvider::setContent($this->legacy_content_template->renderPage("DEFAULT", true, false));
155
156 return $this->ui->renderer()->render($this->gs->collector()->layout()->getFinalPage());
157 }

References prepareBasicCSS(), prepareBasicJS(), prepareOutputHeaders(), and ui().

Referenced by ILIAS\Blog\Export\BlogHtmlExport\writeExportFile().

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

◆ resetHeaderBlock()

ilGlobalPageTemplate::resetHeaderBlock (   $a_reset_header_action = true)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 544 of file class.ilGlobalPageTemplate.php.

545 {
546 // Nothing to do
547 }

◆ resetJavascript()

ilGlobalPageTemplate::resetJavascript ( )

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 390 of file class.ilGlobalPageTemplate.php.

391 {
392 $this->gs->layout()->meta()->getJs()->clear();
393 }

◆ setAlertProperties()

ilGlobalPageTemplate::setAlertProperties ( array  $a_props)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 294 of file class.ilGlobalPageTemplate.php.

295 {
296 $this->legacy_content_template->setTitleAlerts($a_props);
297 }

◆ setBanner()

ilGlobalPageTemplate::setBanner ( string  $img_src)

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

284 {
285 $this->legacy_content_template->setBanner($img_src);
286 }

◆ setBodyClass()

ilGlobalPageTemplate::setBodyClass (   $a_class = "")

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 593 of file class.ilGlobalPageTemplate.php.

594 {
595 throw new NotImplementedException("This Method is no longer available in GlobalTemplate");
596 }

◆ setContent()

ilGlobalPageTemplate::setContent (   $a_html)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 207 of file class.ilGlobalPageTemplate.php.

208 {
209 $this->legacy_content_template->setMainContent($a_html);
210 }

Referenced by ILIAS\Blog\Export\BlogHtmlExport\writeExportFile().

+ Here is the caller graph for this function:

◆ setCurrentBlock()

ilGlobalPageTemplate::setCurrentBlock (   $blockname = "DEFAULT")

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 408 of file class.ilGlobalPageTemplate.php.

409 {
410 if (in_array($blockname, self::$ignored_blocks)) {
411 return; // TODO why is this needed?
412 }
413
414 if ($this->blockExists($blockname)) {
415 $this->legacy_content_template->setCurrentBlock($blockname);
416 } else {
417 throw new ilTemplateException("block " . var_export($blockname, true) . " not found");
418 }
419 }

References blockExists().

+ Here is the call graph for this function:

◆ setDescription()

ilGlobalPageTemplate::setDescription (   $a_descr)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 267 of file class.ilGlobalPageTemplate.php.

268 {
269 $this->legacy_content_template->setTitleDesc($a_descr);
270 }

◆ setFilter()

ilGlobalPageTemplate::setFilter ( string  $filter)
Parameters
string$filter

Definition at line 236 of file class.ilGlobalPageTemplate.php.

237 {
238 $this->legacy_content_template->setFilter($filter);
239 }

◆ setHeaderActionMenu()

ilGlobalPageTemplate::setHeaderActionMenu (   $a_header)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 323 of file class.ilGlobalPageTemplate.php.

324 {
325 $this->legacy_content_template->setHeaderAction($a_header);
326 }

◆ setHeaderPageTitle()

ilGlobalPageTemplate::setHeaderPageTitle (   $a_title)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 332 of file class.ilGlobalPageTemplate.php.

333 {
334 PageContentProvider::setViewTitle($a_title);
335 }

◆ setLeftContent()

ilGlobalPageTemplate::setLeftContent (   $a_html)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 216 of file class.ilGlobalPageTemplate.php.

217 {
218 $this->legacy_content_template->setLeftContent($a_html);
219 }

◆ setLeftNavContent()

ilGlobalPageTemplate::setLeftNavContent (   $a_content)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 535 of file class.ilGlobalPageTemplate.php.

536 {
537 // Nothing to do, this should be handled in Slates later
538 }

◆ setLocator()

ilGlobalPageTemplate::setLocator ( )

@inheritDoc

Implements ilGlobalTemplateInterface.

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

499 {
500 // Nothing to do
501 }

◆ setLoginTargetPar()

ilGlobalPageTemplate::setLoginTargetPar (   $a_val)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 553 of file class.ilGlobalPageTemplate.php.

554 {
555 // Nothing to do
556 }

◆ setOnScreenMessage()

ilGlobalPageTemplate::setOnScreenMessage (   $a_type,
  $a_txt,
  $a_keep = false 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

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

304 {
305 $this->legacy_content_template->setOnScreenMessage($a_type, $a_txt, $a_keep);
306 }

◆ setPageFormAction()

ilGlobalPageTemplate::setPageFormAction (   $a_action)
Parameters
$a_action

Implements ilGlobalTemplateInterface.

Definition at line 350 of file class.ilGlobalPageTemplate.php.

351 {
352 $this->legacy_content_template->setPageFormAction($a_action);
353 }

◆ setPermanentLink()

ilGlobalPageTemplate::setPermanentLink (   $a_type,
  $a_id,
  $a_append = "",
  $a_target = "",
  $a_title = "" 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 507 of file class.ilGlobalPageTemplate.php.

508 {
509 $href = ilLink::_getStaticLink($a_id, $a_type, true, $a_append);
510 PageContentProvider::setPermaLink($href);
511 }

References ilLink\_getStaticLink().

+ Here is the call graph for this function:

◆ setRightContent()

ilGlobalPageTemplate::setRightContent (   $a_html)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 225 of file class.ilGlobalPageTemplate.php.

226 {
227 $this->legacy_content_template->setRightContent($a_html);
228 }

Referenced by ILIAS\Blog\Export\BlogHtmlExport\writeExportFile().

+ Here is the caller graph for this function:

◆ setSubTabs()

ilGlobalPageTemplate::setSubTabs (   $a_tabs_html)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 620 of file class.ilGlobalPageTemplate.php.

621 {
622 throw new NotImplementedException("This Method is no longer available in GlobalTemplate");
623 }

◆ setTabs()

ilGlobalPageTemplate::setTabs (   $a_tabs_html)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 611 of file class.ilGlobalPageTemplate.php.

612 {
613 throw new NotImplementedException("This Method is no longer available in GlobalTemplate");
614 }

◆ setTitle()

ilGlobalPageTemplate::setTitle (   $a_title,
  $hidden = false 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 248 of file class.ilGlobalPageTemplate.php.

249 {
250 $this->legacy_content_template->setTitle((string) $a_title, $hidden);
251
252 $short_title = (string) $this->il_settings->get('short_inst_name');
253 if (trim($short_title) === "") {
254 $short_title = 'ILIAS';
255 }
256
257 PageContentProvider::setShortTitle($short_title);
258 PageContentProvider::setViewTitle((string) $a_title);
259 $header_title = ilObjSystemFolder::_getHeaderTitle();
260 PageContentProvider::setTitle($header_title);
261 }

◆ setTitleIcon()

ilGlobalPageTemplate::setTitleIcon (   $a_icon_path,
  $a_icon_desc = "" 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 276 of file class.ilGlobalPageTemplate.php.

277 {
278 $this->legacy_content_template->setIconPath($a_icon_path);
279 $this->legacy_content_template->setIconDesc($a_icon_desc);
280 }

◆ setTreeFlatIcon()

ilGlobalPageTemplate::setTreeFlatIcon (   $a_link,
  $a_mode 
)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 517 of file class.ilGlobalPageTemplate.php.

518 {
519 // Nothing to do
520 }

◆ setVariable()

ilGlobalPageTemplate::setVariable (   $variable,
  $value = '' 
)
Parameters
$variable
string$value

Implements ilGlobalTemplateInterface.

Definition at line 376 of file class.ilGlobalPageTemplate.php.

377 {
378 if ($variable === "LOCATION_CONTENT_STYLESHEET" || $variable === "LOCATION_SYNTAX_STYLESHEET") {
379 $this->addCss($value);
380
381 return;
382 }
383 $this->legacy_content_template->setVariable($variable, $value);
384 }
addCss($a_css_file, $media="screen")
@inheritDoc

References addCss().

+ Here is the call graph for this function:

◆ touchBlock()

ilGlobalPageTemplate::touchBlock (   $blockname)

@inheritDoc

Implements ilGlobalTemplateInterface.

Definition at line 425 of file class.ilGlobalPageTemplate.php.

426 {
427 if (in_array($blockname, self::$ignored_blocks)) {
428 return; // TODO why is this needed?
429 }
430 if ($this->blockExists($blockname)) {
431 $this->legacy_content_template->touchBlock($blockname);
432 } else {
433 throw new ilTemplateException("block " . var_export($blockname, true) . " not found");
434 }
435 }

References blockExists().

+ Here is the call graph for this function:

Field Documentation

◆ $gs

ilGlobalPageTemplate::$gs
private

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

Referenced by __construct().

◆ $http

ilGlobalPageTemplate::$http
private

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

Referenced by __construct().

◆ $ignored_blocks

ilGlobalPageTemplate::$ignored_blocks = ['ContentStyle', "DEFAULT", "SyntaxStyle", ""]
staticprivate

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

◆ $il_settings

ilGlobalPageTemplate::$il_settings
private

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

◆ $legacy_content_template

ilGlobalPageTemplate::$legacy_content_template
private

Definition at line 56 of file class.ilGlobalPageTemplate.php.

◆ $lng

ilGlobalPageTemplate::$lng
private

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

◆ $ui

ilGlobalPageTemplate::$ui
private

Definition at line 52 of file class.ilGlobalPageTemplate.php.

Referenced by __construct().


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