4include_once(
"./Services/UICore/lib/html-it/IT.php");
5include_once(
"./Services/UICore/lib/html-it/ITX.php");
48 $this->
template =
new ilTemplate($file, $flag1, $flag2, $in_module, $vars,
$plugin, $a_use_cache);
80 $this->show_footer =
false;
95 $ilCtrl =
$DIC->ctrl();
98 if (!$this->show_footer) {
102 $ftpl =
new ilTemplate(
"tpl.footer.html",
true,
true,
"Services/UICore");
106 $php =
", PHP " . phpversion();
108 $ftpl->setVariable(
"ILIAS_VERSION",
$ilSetting->get(
"ilias_version") . $php);
110 $link_items = array();
113 include_once
"Services/Imprint/classes/class.ilImprint.php";
115 include_once
"Services/Link/classes/class.ilLink.php";
120 include_once(
"./Modules/SystemFolder/classes/class.ilSystemSupportContactsGUI.php");
126 if (function_exists(
"tidy_parse_string")) {
133 include_once(
"Services/Language/classes/class.ilObjLanguageAccess.php");
139 foreach ($link_items as
$url => $caption) {
142 $ftpl->touchBlock(
"blank");
144 if ($cnt <
sizeof($link_items)) {
145 $ftpl->touchBlock(
"item_separator");
148 $ftpl->setCurrentBlock(
"items");
150 $ftpl->setVariable(
"TXT_ITEM", $caption[0]);
151 $ftpl->parseCurrentBlock();
156 $t1 = explode(
" ",
$GLOBALS[
'ilGlobalStartTime']);
157 $t2 = explode(
" ", microtime());
158 $diff = $t2[0] - $t1[0] + $t2[1] - $t1[1];
160 $mem_usage = array();
161 if (function_exists(
"memory_get_usage")) {
163 =
"Memory Usage: " . memory_get_usage() .
" Bytes";
165 if (function_exists(
"xdebug_peak_memory_usage")) {
167 =
"XDebug Peak Memory Usage: " . xdebug_peak_memory_usage() .
" Bytes";
169 $mem_usage[] = round($diff, 4) .
" Seconds";
171 if (
sizeof($mem_usage)) {
172 $ftpl->setVariable(
"MEMORY_USAGE",
"<br>" . implode(
" | ", $mem_usage));
175 if (!empty(
$_GET[
"do_dev_validate"]) && $ftpl->blockExists(
"xhtml_validation")) {
176 require_once(
"Services/XHTMLValidator/classes/class.ilValidatorAdapter.php");
177 $template2 = clone($this);
178 $ftpl->setCurrentBlock(
"xhtml_validation");
187 ),
$_GET[
"do_dev_validate"])
189 $ftpl->parseCurrentBlock();
193 if (is_object($ilCtrl) && $ftpl->blockExists(
"c_entry")
194 && $ftpl->blockExists(
"call_history")
196 $hist = $ilCtrl->getCallHistory();
197 foreach ($hist as $entry) {
198 $ftpl->setCurrentBlock(
"c_entry");
199 $ftpl->setVariable(
"C_ENTRY", $entry[
"class"]);
200 if (is_object(
$ilDB)) {
201 $file = $ilCtrl->lookupClassPath($entry[
"class"]);
202 $add = $entry[
"mode"] .
" - " . $entry[
"cmd"];
204 $add .=
" - " . $file;
206 $ftpl->setVariable(
"C_FILE", $add);
208 $ftpl->parseCurrentBlock();
210 $ftpl->setCurrentBlock(
"call_history");
211 $ftpl->parseCurrentBlock();
215 if (is_object($ilCtrl) && $ftpl->blockExists(
"i_entry")
216 && $ftpl->blockExists(
"included_files")
218 $fs = get_included_files();
221 foreach ($fs as
$f) {
222 $ifiles[] = array(
"file" =>
$f,
"size" => filesize(
$f));
226 foreach ($ifiles as
$f) {
227 $ftpl->setCurrentBlock(
"i_entry");
228 $ftpl->setVariable(
"I_ENTRY",
$f[
"file"] .
" (" .
$f[
"size"] .
" Bytes, " . round(100 /
$total *
$f[
"size"], 2) .
"%)");
229 $ftpl->parseCurrentBlock();
231 $ftpl->setCurrentBlock(
"i_entry");
232 $ftpl->setVariable(
"I_ENTRY",
"Total (" .
$total .
" Bytes, 100%)");
233 $ftpl->parseCurrentBlock();
234 $ftpl->setCurrentBlock(
"included_files");
235 $ftpl->parseCurrentBlock();
242 $ilBench->stop(
"Core",
"ElapsedTimeUntilFooter");
245 ", " . number_format(
$ilBench->getMeasuredTime(
"Core",
"ElapsedTimeUntilFooter"), 1) .
' seconds'
273 $ilMainMenu =
$DIC[
"ilMainMenu"];
277 $this->main_menu = $ilMainMenu->getHTML();
278 $this->main_menu_spacer = $ilMainMenu->getSpacerClass();
288 $tpl->setVariable(
"MAINMENU", $this->main_menu);
289 $tpl->setVariable(
"MAINMENU_SPACER", $this->main_menu_spacer);
305 include_once(
"./Services/Help/classes/class.ilHelpGUI.php");
327 self::MESSAGE_TYPE_FAILURE,
328 self::MESSAGE_TYPE_INFO,
329 self::MESSAGE_TYPE_SUCCESS,
330 self::MESSAGE_TYPE_QUESTION,
348 if (!in_array($a_type, self::$message_types) || $a_txt ==
"") {
352 $this->message[$a_type] = $a_txt;
368 foreach (self::$message_types as $m) {
375 $request =
$DIC->http()->request();
376 $accept_header = $request->getHeaderLine(
'Accept');
377 if (isset(
$_SESSION[$m]) &&
$_SESSION[$m] && ($accept_header !==
'application/json')) {
399 if (isset($this->message[$m])) {
400 $txt = $this->message[$m];
418 protected $js_files = array(0 =>
"./Services/JavaScript/js/Basic.js");
424 protected $js_files_vp = array(
"./Services/JavaScript/js/Basic.js" =>
true);
436 public function addJavaScript($a_js_file, $a_add_version_parameter =
true, $a_batch = 2)
439 if ($a_batch < 1 || $a_batch > 3) {
444 if (is_int(strpos($a_js_file,
"Services/jQuery"))
445 || is_int(strpos($a_js_file,
"/jquery.js"))
446 || is_int(strpos($a_js_file,
"/jquery-min.js"))
451 if (!in_array($a_js_file, $this->js_files)) {
452 $this->js_files[] = $a_js_file;
453 $this->js_files_vp[$a_js_file] = $a_add_version_parameter;
454 $this->js_files_batch[$a_js_file] = $a_batch;
465 if ($a_batch < 1 || $a_batch > 3) {
468 $this->on_load_code[$a_batch][] = $a_code;
480 for (
$i = 1;
$i <= 3;
$i++) {
481 if (is_array($this->on_load_code[
$i])) {
482 foreach ($this->on_load_code[
$i] as $code) {
488 return '<script type="text/javascript">' .
"\n" .
502 $this->js_files = array();
503 $this->js_files_vp = array();
504 $this->js_files_batch = array();
520 $vers =
"vers=" . str_replace(array(
".",
" "),
"-",
$ilSetting->get(
"ilias_version"));
523 $vers .=
'-' . time();
528 for (
$i = 0;
$i <= 3;
$i++) {
529 reset($this->js_files);
530 foreach ($this->js_files as $file) {
531 if ($this->js_files_batch[$file] ==
$i) {
532 if (is_file($file) || substr($file, 0, 4) ==
"http" || substr($file, 0, 2) ==
"//" || $a_force) {
535 if (substr($file, 0, 2) ==
'./') {
536 $url_parts = parse_url($file);
537 if (is_file($url_parts[
'path'])) {
554 for (
$i = 1;
$i <= 3;
$i++) {
555 if (is_array($this->on_load_code[
$i])) {
557 foreach ($this->on_load_code[
$i] as $code) {
576 if ($this->js_files_vp[$file]) {
607 public function addCss($a_css_file, $media =
"screen")
609 if (!array_key_exists($a_css_file . $media, $this->css_files)) {
610 $this->css_files[$a_css_file . $media] = array(
"file" => $a_css_file,
"media" => $media);
623 $this->inline_css[] = array(
"css" => $a_css,
"media" => $media);
641 foreach ($this->css_files as $css) {
667 $this->body_class = $a_class;
673 if ($this->body_class !=
"" && $this->
blockExists(
"body_class")) {
675 $this->
setVariable(
"BODY_CLASS", $this->body_class);
686 $this->css_files = array();
700 foreach ($this->inline_css as $css) {
714 "LOCATION_NEWCONTENT_STYLESHEET_TAG",
715 '<link rel="stylesheet" type="text/css" href="' .
737 if ($this->standard_template_loaded) {
742 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
747 include_once(
"./Services/UICore/classes/class.ilUIFramework.php");
750 $this->
addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
751 $this->
addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
753 $this->standard_template_loaded =
true;
775 public function setTitle($a_title, $hidden =
false)
777 $this->title = $a_title;
778 $this->header_page_title = $a_title;
787 $this->title_desc = $a_descr;
796 $this->icon_desc = $a_icon_desc;
797 $this->icon_path = $a_icon_path;
810 $this->title_alerts = $a_props;
841 $this->header_action = $a_header;
854 $this->header_page_title = $a_title;
868 if ($this->icon_path !=
"") {
871 if ($this->icon_desc !=
"") {
872 $this->
setVariable(
"IMAGE_DESC",
$lng->txt(
"icon") .
" " . $this->icon_desc);
873 $this->
setVariable(
"IMAGE_ALT",
$lng->txt(
"icon") .
" " . $this->icon_desc);
876 $this->
setVariable(
"IMG_HEADER", $this->icon_path);
881 if ($this->title !=
"") {
893 if ($this->title_desc !=
"") {
895 $this->
setVariable(
"H_DESCRIPTION", $this->title_desc);
907 if (count((array) $this->title_alerts)) {
908 foreach ($this->title_alerts as $alert) {
910 if (!($alert[
'propertyNameVisible'] ===
false)) {
911 $this->
setVariable(
'H_PROP', $alert[
'property'] .
':');
919 if ($this->enable_fileupload !=
null) {
920 $ref_id = $this->enable_fileupload;
921 $upload_id =
"dropzone_" . $ref_id;
923 include_once(
"./Services/FileUpload/classes/class.ilFileUploadGUI.php");
926 $this->
setVariable(
"FILEUPLOAD_DROPZONE_ID",
" id=\"$upload_id\"");
929 $this->
setVariable(
"HEADER_FILEUPLOAD_SCRIPT", $upload->getHTML());
959 $ilMainMenu =
$DIC[
"ilMainMenu"];
960 $ilLocator =
$DIC[
"ilLocator"];
962 $ilPluginAdmin =
$DIC[
"ilPluginAdmin"];
974 if (is_object($ilPluginAdmin)) {
975 include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
976 $html = $ilLocator->getHTML();
980 array(
"locator_gui" => $ilLocator,
"html" => $html)
982 $html = $uip->getHTML($html);
984 $html = $ilLocator->getHTML();
1012 if ($a_tabs_html !=
"" && $this->
blockExists(
"tabs_outer_start")) {
1039 if ($this->tabs_html !=
"") {
1042 $this->
setVariable(
"SUB_TABS", $this->sub_tabs_html);
1051 $ilTabs =
$DIC[
"ilTabs"];
1054 $this->sub_tabs_html = $ilTabs->getSubTabHTML();
1055 $this->tabs_html = $ilTabs->getHTML(
true);
1071 if ($a_html !=
"") {
1072 $this->main_content = $a_html;
1082 $this->left_content = $a_html;
1091 $this->left_nav_content = $a_content;
1100 if (trim($this->left_nav_content) !=
"") {
1102 $this->
setVariable(
"LEFT_NAV_CONTENT", $this->left_nav_content);
1114 $this->right_content = $a_html;
1123 $center_column_class =
"";
1124 if (trim($this->right_content) !=
"" && trim($this->left_content) !=
"") {
1125 $center_column_class =
"two_side_col";
1127 if (trim($this->right_content) !=
"" || trim($this->left_content) !=
"") {
1128 $center_column_class =
"one_side_col";
1132 switch ($center_column_class) {
1133 case "one_side_col":
1134 $center_column_class =
"col-sm-9";
1136 case "two_side_col":
1137 $center_column_class =
"col-sm-6";
1140 $center_column_class =
"col-sm-12";
1143 if (trim($this->left_content) !=
"") {
1144 $center_column_class .=
" col-sm-push-3";
1148 $this->
setVariable(
"CENTER_COL", $center_column_class);
1155 if (trim($this->main_content) !=
"") {
1156 $this->
setVariable(
"ADM_CONTENT", $this->main_content);
1163 if (trim($this->left_content) !=
"") {
1165 $this->
setVariable(
"LEFT_CONTENT", $this->left_content);
1166 $left_col_class = (trim($this->right_content) ==
"")
1167 ?
"col-sm-3 col-sm-pull-9"
1168 :
"col-sm-3 col-sm-pull-6";
1169 $this->
setVariable(
"LEFT_COL_CLASS", $left_col_class);
1177 if (trim($this->right_content) !=
"") {
1179 $this->
setVariable(
"RIGHT_CONTENT", $this->right_content);
1195 $ilToolbar =
$DIC[
"ilToolbar"];
1198 $thtml = $ilToolbar->getHTML();
1218 if (is_object(
$lng)) {
1219 $this->
setVariable(
'META_CONTENT_LANGUAGE',
$lng->getContentLanguage());
1231 if ($this->header_page_title !=
"") {
1236 if (
$ilSetting->get(
'short_inst_name') !=
"") {
1256 $this->page_form_action = $a_action;
1262 if ($this->page_form_action !=
"") {
1264 $this->
setVariable(
"PAGE_FORM_ACTION", $this->page_form_action);
1282 $this->login_target_par = $a_val;
1291 return $this->login_target_par;
1316 $add_error_mess =
false,
1317 $handle_referer =
false,
1318 $add_ilias_footer =
false,
1319 $add_standard_elements =
false,
1320 $a_main_menu =
true,
1325 if ($add_error_mess) {
1329 if ($add_ilias_footer) {
1334 if ($add_standard_elements) {
1387 if ($handle_referer) {
1391 if ($part ==
"DEFAULT") {
1392 $html = $this->
template->get();
1394 $html = $this->
template->get($part);
1409 public function printToStdout($part =
"DEFAULT", $a_fill_tabs =
true, $a_skip_main_menu =
false)
1414 switch (
$http->request()->getHeaderLine(
'Accept')) {
1415 case 'application/json':
1416 $string = json_encode([
1417 self::MESSAGE_TYPE_SUCCESS => is_null($this->message[self::MESSAGE_TYPE_FAILURE]),
1421 $http->saveResponse(
$http->response()->withBody($stream));
1422 $http->sendResponse();
1426 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1429 header(
'P3P: CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
1430 header(
"Content-type: text/html; charset=UTF-8");
1435 if ($part !==
false) {
1448 if (!$a_skip_main_menu) {
1492 if ($part ==
"DEFAULT" or is_bool($part)) {
1493 $html = $this->
template->getUnmodified();
1495 $html = $this->
template->getUnmodified($part);
1501 $ilPluginAdmin =
$DIC[
"ilPluginAdmin"];
1502 $pl_names = $ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"UIComponent",
"uihk");
1503 foreach ($pl_names as $pl) {
1505 $gui_class = $ui_plugin->getUIClassInstance();
1507 $resp = $gui_class->getHTML(
1510 array(
"tpl_id" => $this->tplIdentifier,
"tpl_obj" => $this,
"html" => $html)
1514 $html = $gui_class->modifyHTML($html,
$resp);
1535 if (((substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"error.php")
1536 && (substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"adm_menu.php")
1537 && (substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"chat.php"))
1541 $url_parts = @parse_url(
$_SERVER[
"REQUEST_URI"]);
1543 $protocol = (isset(
$_SERVER[
'HTTPS']) ?
'https' :
'http') .
'://';
1546 $url_parts = @parse_url($protocol . $host . $path);
1549 if (isset($url_parts[
"query"]) && preg_match(
"/cmd=gateway/", $url_parts[
"query"]) && (isset(
$_POST[
"cmd"][
"create"]))) {
1550 foreach (
$_POST as $key => $val) {
1551 if (is_array($val)) {
1555 $str .=
"&" . $key .
"=" . $val;
1558 $_SESSION[
"referer"] = preg_replace(
"/cmd=gateway/", substr($str, 1),
$_SERVER[
"REQUEST_URI"]);
1561 if (isset($url_parts[
"query"]) && preg_match(
"/cmd=post/", $url_parts[
"query"]) && (isset(
$_POST[
"cmd"][
"create"]))) {
1562 foreach (
$_POST as $key => $val) {
1563 if (is_array($val)) {
1567 $str .=
"&" . $key .
"=" . $val;
1570 $_SESSION[
"referer"] = preg_replace(
"/cmd=post/", substr($str, 1),
$_SERVER[
"REQUEST_URI"]);
1571 if (isset(
$_GET[
'ref_id'])) {
1578 if (isset(
$_GET[
'ref_id'])) {
1600 if (is_object(
$ilUser) &&
$ilUser->getPref(
"screen_reader_optimization") && $this->blockExists(
"sr_focus")) {
1618 if ($this->tree_flat_link !=
"") {
1619 if ($this->left_nav_content !=
"") {
1624 $this->
setVariable(
"LINK_MODE", $this->tree_flat_link);
1625 if (
$ilSetting->get(
"tree_frame") ==
"right") {
1626 if ($this->tree_flat_mode ==
"tree") {
1634 if ($this->tree_flat_mode ==
"tree") {
1640 $this->
setVariable(
"ALT_TREE",
$lng->txt($this->tree_flat_mode .
"view"));
1642 include_once(
"./Services/Accessibility/classes/class.ilAccessKeyGUI.php");
1665 $this->tree_flat_link = $a_link;
1666 $this->tree_flat_mode = $a_mode;
1675 $this->lightbox[$a_id] = $a_html;
1690 foreach ($this->lightbox as $lb) {
1716 $this->admin_panel_commands_toolbar = $toolb;
1717 $this->admin_panel_arrow = $a_arrow;
1718 $this->admin_panel_bottom = $a_bottom_panel;
1732 if ($this->admin_panel_commands_toolbar ===
null) {
1740 if ($this->admin_panel_arrow) {
1748 $this->
setVariable(
"ADM_PANEL1", $toolb->getHTML());
1752 if ($this->admin_panel_bottom) {
1756 if ($this->admin_panel_arrow) {
1760 $this->
setVariable(
"ADM_PANEL2", $toolb->getHTML());
1766 public function setPermanentLink($a_type, $a_id, $a_append =
"", $a_target =
"", $a_title =
"")
1768 $this->permanent_link = array(
1771 "append" => $a_append,
1772 "target" => $a_target,
1773 "title" => $a_title,
1783 if (is_array($this->permanent_link)) {
1784 include_once(
"./Services/PermanentLink/classes/class.ilPermanentLinkGUI.php");
1786 $this->permanent_link[
"type"],
1787 $this->permanent_link[
"id"],
1788 $this->permanent_link[
"append"],
1789 $this->permanent_link[
"target"]
1791 if ($this->permanent_link[
"title"] !=
"") {
1792 $plinkgui->setTitle($this->permanent_link[
"title"]);
1794 $this->
setVariable(
"PRMLINK", $plinkgui->getHTML());
1811 if ($a_reset_header_action) {
1822 $this->enable_fileupload = $a_ref_id;
1835 public function get($part =
"DEFAULT")
1837 return $this->
template->get($part);
1843 return $this->
template->setVariable($variable, $value);
1849 return $this->
template->variableExists($a_variablename);
1862 return $this->
template->setCurrentBlock($part);
1877 return $this->
template->touchBlock($block);
1892 return $this->
template->parseCurrentBlock($part);
1910 return $this->
template->addBlockFile($var, $block, $tplname, $in_module);
1925 return $this->
template->blockExists($a_blockname);
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
static ofString($string)
Creates a new stream with an initial value.
static getAttribute($a_func_id)
Get accesskey HTML attribute.
special template class to simplify handling of ITX/PEAR
handleReferer()
TODO: this is nice, but shouldn't be done here (-> maybe at the end of ilias.php!?...
setPageFormAction($a_action)
$inline_css
Stores CSS to be included directly.
addInlineCss($a_css, $media="screen")
Add a css file that should be included in the header.
fillLeftNav()
Fill left navigation frame.
const MESSAGE_TYPE_FAILURE
setCurrentBlock($part="DEFAULT")
@access public
fillNewContentStyle()
Fill Content Style.
setSubTabs($a_tabs_html)
sets subtabs in standard template
loadStandardTemplate()
This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STA...
setAlertProperties(array $a_props)
Set alert properties.
printToStdout($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false)
variableExists($a_variablename)
setRightContent($a_html)
Sets content of right column.
setTreeFlatIcon($a_link, $a_mode)
set tree/flat icon
fillAdminPanel()
Put admin panel into template:
addBlockFile($var, $block, $tplname, $in_module=false)
overwrites ITX::addBlockFile
setOnScreenMessage($a_type, $a_txt, $a_keep=false)
Set a message to be displayed to the user.
__construct( $file, $flag1, $flag2, $in_module=false, $vars="DEFAULT", $plugin=false, $a_use_cache=true)
constructor
setTabs($a_tabs_html)
sets tabs in standard template
setHeaderPageTitle($a_title)
Sets the title of the page (for browser window).
fillOnLoadCode()
Fill add on load code.
fillFooter()
Fill the footer area.
getOnLoadCodeForAsynch()
Get js onload code for ajax calls.
addCss($a_css_file, $media="screen")
Add a css file that should be included in the header.
fillJavascriptFile($file, $vers)
getHeaderActionMenu()
Get header action menu.
resetJavascript()
Reset javascript files.
setTitleIcon($a_icon_path, $a_icon_desc="")
set title icon
blockExists($a_blockname)
check if block exists in actual template
resetCss()
Reset css files.
setDescription($a_descr)
Sets descripton below title in standard template.
setHeaderActionMenu($a_header)
Set header action menu.
$standard_template_loaded
touchBlock($block)
overwrites ITX::touchBlock.
setLeftContent($a_html)
Sets content of left column.
$admin_panel_commands_toolbar
addLightbox($a_html, $a_id)
Add lightbox html.
addAdminPanelToolbar(ilToolbarGUI $toolb, $a_bottom_panel=true, $a_arrow=false)
Add admin panel commands as toolbar.
enableDragDropFileUpload($a_ref_id)
Enables the file upload into this object by dropping a file.
resetHeaderBlock($a_reset_header_action=true)
Reset all header properties: title, icon, description, alerts, action menu.
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt.
fillPermanentLink()
Fill in permanent link.
setBodyClass($a_class="")
setLocator()
Insert locator.
setLeftNavContent($a_content)
Sets content of left navigation column.
fillCssFiles($a_force=false)
Fill in the css file tags.
fillMessage()
Fill message area.
getLoginTargetPar()
Get target parameter for login.
fillSideIcons()
Fill side icons (upper icon, tree icon, webfolder icon)
hideFooter()
Make the template hide the footer.
printToString()
@inheritDoc
fillJavaScriptFiles($a_force=false)
setPermanentLink($a_type, $a_id, $a_append="", $a_target="", $a_title="")
fillInlineCss()
Fill in the inline css.
setLoginTargetPar($a_val)
Set target parameter for login (public sector).
setContent($a_html)
Sets content for standard template.
fillScreenReaderFocus()
Accessibility focus for screen readers.
setVariable($variable, $value='')
clearHeader()
Clear header.
setTitle($a_title, $hidden=false)
Sets title in standard template.
const MESSAGE_TYPE_SUCCESS
fillContentLanguage()
Add current user language to meta tags.
addJavaScript($a_js_file, $a_add_version_parameter=true, $a_batch=2)
Add a javascript file that should be included in the header.
fillLightbox()
Fill lightbox content.
getMessageTextForType($m)
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)
addOnLoadCode($a_code, $a_batch=2)
Add on load code.
const MESSAGE_TYPE_QUESTION
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
const MODE_TOPBAR_REDUCED
static _saveUsages()
Store the collected language variable usages in the user session This should be called as late as pos...
static _checkTranslate()
Permission check for translations.
static _isPageTranslation()
Check if the current request is a page translation.
static _getTranslationLink()
Get the link to translate the current page.
Class for permanent links.
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get Plugin Object.
special template class to simplify handling of ITX/PEAR
static init(ilGlobalTemplateInterface $a_tpl=null)
Init.
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static getNewContentStyleSheetLocation($mode="output")
get full style sheet file name (path inclusive) of current user
static stripScriptHTML($a_str, $a_allow="", $a_rm_js=true)
strip only html tags (4.0) from text $allowed contains tags to be allowed, in format tags a and b ar...
static getSystemMessageHTML($a_txt, $a_type="info")
Get HTML for a system message.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static secureUrl($url)
Prepare secure href attribute.
static validate($a_html, $a_mode)
static initDom(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.
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....
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl