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)
 
 printToStdout ($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false)
 
 printToString ()
 
 addJavaScript ($a_js_file, $a_add_version_parameter=true, $a_batch=2)
 
 addCss ($a_css_file, $media="screen")
 
 addOnLoadCode ($a_code, $a_batch=2)
 
 addInlineCss ($a_css, $media="screen")
 
 setContent ($a_html)
 
 setLeftContent ($a_html)
 
 setRightContent ($a_html)
 
 setFilter (string $filter)
 
 setTitle ($a_title, $hidden=false)
 
 setDescription ($a_descr)
 
 setTitleIcon ($a_icon_path, $a_icon_desc="")
 
 setBanner (string $img_src)
 
 setAlertProperties (array $a_props)
 
 setOnScreenMessage ($a_type, $a_txt, $a_keep=false)
 
 enableDragDropFileUpload ($a_ref_id)
 
 setHeaderActionMenu ($a_header)
 
 setHeaderPageTitle ($a_title)
 
 addLightbox ($a_html, $a_id)
 
 setPageFormAction ($a_action)
 
 addAdminPanelToolbar (ilToolbarGUI $toolb, $a_bottom_panel=true, $a_arrow=false)
 
 setVariable ($variable, $value='')
 
 resetJavascript ()
 
 get ($part="DEFAULT")
 
 setCurrentBlock ($blockname="DEFAULT")
 
 touchBlock ($blockname)
 
 parseCurrentBlock ($blockname="DEFAULT")
 
 addBlockFile ($var, $block, $tplname, $in_module=false)
 
 blockExists ($blockname)
 
 loadStandardTemplate ()
 
 setLocator ()
 
 setPermanentLink ($a_type, $a_id, $a_append="", $a_target="", $a_title="")
 
 setTreeFlatIcon ($a_link, $a_mode)
 
 hideFooter ()
 
 setLeftNavContent ($a_content)
 
 resetHeaderBlock ($a_reset_header_action=true)
 
 setLoginTargetPar ($a_val)
 
 getOnLoadCodeForAsynch ()
 
 fillJavaScriptFiles ($a_force=false)
 
 setBodyClass ($a_class="")
 
 clearHeader ()
 
 setTabs ($a_tabs_html)
 
 setSubTabs ($a_tabs_html)
 
 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)
 

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 
)

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

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

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  }
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: goto.php:24
ui()
Definition: ui.php:5
+ Here is the call graph for this function:

Member Function Documentation

◆ addAdminPanelToolbar()

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

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 
)

Implements ilGlobalTemplateInterface.

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

References blockExists().

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  }
+ Here is the call graph for this function:

◆ addCss()

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

Implements ilGlobalTemplateInterface.

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

Referenced by setVariable().

178  {
179  $this->gs->layout()->meta()->addCss($a_css_file, $media);
180  }
+ Here is the caller graph for this function:

◆ addInlineCss()

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

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 
)

Implements ilGlobalTemplateInterface.

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

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

169  {
170  $this->gs->layout()->meta()->addJs($a_js_file, $a_add_version_parameter, $a_batch);
171  }
+ Here is the caller graph for this function:

◆ addLightbox()

ilGlobalPageTemplate::addLightbox (   $a_html,
  $a_id 
)

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 
)

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)

Implements ilGlobalTemplateInterface.

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

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

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  }
+ Here is the caller graph for this function:

◆ clearHeader()

ilGlobalPageTemplate::clearHeader ( )

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)

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  }
This exception indicates that an UI component was accepted by the JF but is not backed by a real impl...

◆ get()

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

Implements ilGlobalTemplateInterface.

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

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

◆ getOnLoadCodeForAsynch()

ilGlobalPageTemplate::getOnLoadCodeForAsynch ( )

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 
)

Implements ilGlobalTemplateInterface.

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

630  { //
631  throw new NotImplementedException();
632  }
This exception indicates that an UI component was accepted by the JF but is not backed by a real impl...

◆ handleReferer()

ilGlobalPageTemplate::handleReferer ( )
private

Old method from global template fixing #26968.

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

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

Referenced by printToStdout().

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  }
$_SESSION["AccountId"]
$_GET["client_id"]
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
$_POST["username"]
+ Here is the caller graph for this function:

◆ hideFooter()

ilGlobalPageTemplate::hideFooter ( )

Implements ilGlobalTemplateInterface.

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

527  {
528  // Nothing to do
529  }

◆ loadStandardTemplate()

ilGlobalPageTemplate::loadStandardTemplate ( )

Implements ilGlobalTemplateInterface.

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

490  {
491  // Nothing to do
492  }

◆ parseCurrentBlock()

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

Implements ilGlobalTemplateInterface.

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

References blockExists().

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  }
+ Here is the call graph for this function:

◆ prepareBasicCSS()

ilGlobalPageTemplate::prepareBasicCSS ( )
private

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

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

Referenced by printToStdout(), and printToString().

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
+ 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.

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

94  {
97  $this->gs->layout()->meta()->addJs("./Services/JavaScript/js/Basic.js", true, 1);
99  \ilUIFramework::init($this);
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 createInstanceWithCurrentUserSession()
Class ilNotificationOSDGUI.
static initConnection(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Connection module.
static initializeFrontend(ilGlobalTemplateInterface $page)
Initialize frontend and delivers required javascript files and configuration to the global template...
static initializeFrontend(ilGlobalTemplateInterface $page)
static initPage(\ilGlobalTemplateInterface $page)
static initjQueryUI($a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components)
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
static init(ilGlobalTemplateInterface $a_tpl=null)
Init.
+ 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.

References ILIAS\FileDelivery\http().

Referenced by printToStdout(), and printToString().

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  }
static http()
Fetches the global http state from ILIAS.
+ 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 
)

Implements ilGlobalTemplateInterface.

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

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

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  }
handleReferer()
Old method from global template fixing #26968.
static http()
Fetches the global http state from ILIAS.
ui()
Definition: ui.php:5
static _saveUsages()
Store the collected language variable usages in the user session This should be called as late as pos...
+ Here is the call graph for this function:

◆ printToString()

ilGlobalPageTemplate::printToString ( )

Implements ilGlobalTemplateInterface.

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

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

Referenced by ILIAS\Wiki\Export\WikiHtmlExport\exportPageHTML(), and ILIAS\Blog\Export\BlogHtmlExport\writeExportFile().

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  }
ui()
Definition: ui.php:5
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetHeaderBlock()

ilGlobalPageTemplate::resetHeaderBlock (   $a_reset_header_action = true)

Implements ilGlobalTemplateInterface.

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

545  {
546  // Nothing to do
547  }

◆ resetJavascript()

ilGlobalPageTemplate::resetJavascript ( )

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)

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 = "")

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  }
This exception indicates that an UI component was accepted by the JF but is not backed by a real impl...

◆ setContent()

ilGlobalPageTemplate::setContent (   $a_html)

Implements ilGlobalTemplateInterface.

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

Referenced by ILIAS\Wiki\Export\WikiHtmlExport\exportPageHTML(), and ILIAS\Blog\Export\BlogHtmlExport\writeExportFile().

208  {
209  $this->legacy_content_template->setMainContent($a_html);
210  }
+ Here is the caller graph for this function:

◆ setCurrentBlock()

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

Implements ilGlobalTemplateInterface.

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

References blockExists().

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  }
+ Here is the call graph for this function:

◆ setDescription()

ilGlobalPageTemplate::setDescription (   $a_descr)

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)

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)

Implements ilGlobalTemplateInterface.

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

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

◆ setLeftContent()

ilGlobalPageTemplate::setLeftContent (   $a_html)

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)

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 ( )

Implements ilGlobalTemplateInterface.

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

499  {
500  // Nothing to do
501  }

◆ setLoginTargetPar()

ilGlobalPageTemplate::setLoginTargetPar (   $a_val)

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 
)

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 = "" 
)

Implements ilGlobalTemplateInterface.

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

References ilLink\_getStaticLink().

508  {
509  $href = ilLink::_getStaticLink($a_id, $a_type, true, $a_append);
510  PageContentProvider::setPermaLink($href);
511  }
+ Here is the call graph for this function:

◆ setRightContent()

ilGlobalPageTemplate::setRightContent (   $a_html)

Implements ilGlobalTemplateInterface.

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

Referenced by ILIAS\Wiki\Export\WikiHtmlExport\exportPageHTML(), and ILIAS\Blog\Export\BlogHtmlExport\writeExportFile().

226  {
227  $this->legacy_content_template->setRightContent($a_html);
228  }
+ Here is the caller graph for this function:

◆ setSubTabs()

ilGlobalPageTemplate::setSubTabs (   $a_tabs_html)

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  }
This exception indicates that an UI component was accepted by the JF but is not backed by a real impl...

◆ setTabs()

ilGlobalPageTemplate::setTabs (   $a_tabs_html)

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  }
This exception indicates that an UI component was accepted by the JF but is not backed by a real impl...

◆ setTitle()

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

Implements ilGlobalTemplateInterface.

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

Referenced by ILIAS\Wiki\Export\WikiHtmlExport\exportPageHTML().

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  }
+ Here is the caller graph for this function:

◆ setTitleIcon()

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

Implements ilGlobalTemplateInterface.

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

Referenced by ILIAS\Wiki\Export\WikiHtmlExport\exportPageHTML().

277  {
278  $this->legacy_content_template->setIconPath($a_icon_path);
279  $this->legacy_content_template->setIconDesc($a_icon_desc);
280  }
+ Here is the caller graph for this function:

◆ setTreeFlatIcon()

ilGlobalPageTemplate::setTreeFlatIcon (   $a_link,
  $a_mode 
)

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.

References addCss().

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")
+ Here is the call graph for this function:

◆ touchBlock()

ilGlobalPageTemplate::touchBlock (   $blockname)

Implements ilGlobalTemplateInterface.

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

References blockExists().

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  }
+ 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: