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;
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");
979 array(
"locator_gui" => $ilLocator)
981 if (!$uip->replaced()) {
982 $html = $ilLocator->getHTML();
984 $html = $uip->getHTML($html);
986 $html = $ilLocator->getHTML();
1014 if ($a_tabs_html !=
"" && $this->
blockExists(
"tabs_outer_start")) {
1041 if ($this->tabs_html !=
"") {
1044 $this->
setVariable(
"SUB_TABS", $this->sub_tabs_html);
1053 $ilTabs =
$DIC[
"ilTabs"];
1056 $this->sub_tabs_html = $ilTabs->getSubTabHTML();
1057 $this->tabs_html = $ilTabs->getHTML(
true);
1073 if ($a_html !=
"") {
1074 $this->main_content = $a_html;
1084 $this->left_content = $a_html;
1102 if (trim($this->left_nav_content) !=
"") {
1104 $this->
setVariable(
"LEFT_NAV_CONTENT", $this->left_nav_content);
1116 $this->right_content = $a_html;
1125 $center_column_class =
"";
1126 if (trim($this->right_content) !=
"" && trim($this->left_content) !=
"") {
1127 $center_column_class =
"two_side_col";
1129 if (trim($this->right_content) !=
"" || trim($this->left_content) !=
"") {
1130 $center_column_class =
"one_side_col";
1134 switch ($center_column_class) {
1135 case "one_side_col":
1136 $center_column_class =
"col-sm-9";
1138 case "two_side_col":
1139 $center_column_class =
"col-sm-6";
1142 $center_column_class =
"col-sm-12";
1145 if (trim($this->left_content) !=
"") {
1146 $center_column_class .=
" col-sm-push-3";
1150 $this->
setVariable(
"CENTER_COL", $center_column_class);
1157 if (trim($this->main_content) !=
"") {
1158 $this->
setVariable(
"ADM_CONTENT", $this->main_content);
1165 if (trim($this->left_content) !=
"") {
1167 $this->
setVariable(
"LEFT_CONTENT", $this->left_content);
1168 $left_col_class = (trim($this->right_content) ==
"")
1169 ?
"col-sm-3 col-sm-pull-9"
1170 :
"col-sm-3 col-sm-pull-6";
1171 $this->
setVariable(
"LEFT_COL_CLASS", $left_col_class);
1179 if (trim($this->right_content) !=
"") {
1181 $this->
setVariable(
"RIGHT_CONTENT", $this->right_content);
1197 $ilToolbar =
$DIC[
"ilToolbar"];
1200 $thtml = $ilToolbar->getHTML();
1222 $contentLanguage =
'en';
1223 $rtl = array(
'ar',
'fa',
'ur',
'he');
1229 $contentLanguage =
$ilUser->getLanguage();
1231 if (is_object(
$lng)) {
1232 $contentLanguage =
$lng->getDefaultLanguage();
1236 $this->
setVariable(
'META_CONTENT_LANGUAGE', $contentLanguage);
1237 if (in_array($contentLanguage, $rtl)) {
1240 $this->
setVariable(
'LANGUAGE_DIRECTION', $textdir);
1252 if ($this->header_page_title !=
"") {
1257 if (
$ilSetting->get(
'short_inst_name') !=
"") {
1277 $this->page_form_action = $a_action;
1283 if ($this->page_form_action !=
"") {
1285 $this->
setVariable(
"PAGE_FORM_ACTION", $this->page_form_action);
1303 $this->login_target_par = $a_val;
1312 return $this->login_target_par;
1337 $add_error_mess =
false,
1338 $handle_referer =
false,
1339 $add_ilias_footer =
false,
1340 $add_standard_elements =
false,
1341 $a_main_menu =
true,
1346 if ($add_error_mess) {
1350 if ($add_ilias_footer) {
1355 if ($add_standard_elements) {
1408 if ($handle_referer) {
1412 if ($part ==
"DEFAULT") {
1413 $html = $this->
template->get();
1415 $html = $this->
template->get($part);
1430 public function printToStdout($part =
"DEFAULT", $a_fill_tabs =
true, $a_skip_main_menu =
false)
1435 switch (
$http->request()->getHeaderLine(
'Accept')) {
1436 case 'application/json':
1437 $string = json_encode([
1438 self::MESSAGE_TYPE_SUCCESS => is_null($this->message[self::MESSAGE_TYPE_FAILURE]),
1442 $http->saveResponse(
$http->response()->withBody($stream));
1443 $http->sendResponse();
1447 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1450 header(
'P3P: CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
1451 header(
"Content-type: text/html; charset=UTF-8");
1456 if ($part !==
false) {
1469 if (!$a_skip_main_menu) {
1513 if ($part ==
"DEFAULT" or is_bool($part)) {
1514 $html = $this->
template->getUnmodified();
1516 $html = $this->
template->getUnmodified($part);
1522 $ilPluginAdmin =
$DIC[
"ilPluginAdmin"];
1523 $pl_names = $ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"UIComponent",
"uihk");
1524 foreach ($pl_names as $pl) {
1526 $gui_class = $ui_plugin->getUIClassInstance();
1528 $resp = $gui_class->getHTML(
1531 array(
"tpl_id" => $this->tplIdentifier,
"tpl_obj" => $this,
"html" => $html)
1535 $html = $gui_class->modifyHTML($html,
$resp);
1556 if (((substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"error.php")
1557 && (substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"adm_menu.php")
1558 && (substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"chat.php"))
1564 $url_parts = @parse_url(
$_SERVER[
"REQUEST_URI"]);
1566 $protocol = (isset(
$_SERVER[
'HTTPS']) ?
'https' :
'http') .
'://';
1569 $url_parts = @parse_url($protocol . $host . $path);
1572 if (isset($url_parts[
"query"]) && preg_match(
"/cmd=gateway/", $url_parts[
"query"]) && (isset(
$_POST[
"cmd"][
"create"]))) {
1573 foreach (
$_POST as $key => $val) {
1574 if (is_array($val)) {
1578 $str .=
"&" . $key .
"=" . $val;
1581 $_SESSION[
"referer"] = preg_replace(
"/cmd=gateway/", substr($str, 1),
$_SERVER[
"REQUEST_URI"]);
1584 if (isset($url_parts[
"query"]) && preg_match(
"/cmd=post/", $url_parts[
"query"]) && (isset(
$_POST[
"cmd"][
"create"]))) {
1585 foreach (
$_POST as $key => $val) {
1586 if (is_array($val)) {
1590 $str .=
"&" . $key .
"=" . $val;
1593 $_SESSION[
"referer"] = preg_replace(
"/cmd=post/", substr($str, 1),
$_SERVER[
"REQUEST_URI"]);
1594 if (isset(
$_GET[
'ref_id'])) {
1601 if (isset(
$_GET[
'ref_id'])) {
1623 if (is_object(
$ilUser) &&
$ilUser->getPref(
"screen_reader_optimization") && $this->blockExists(
"sr_focus")) {
1641 if ($this->tree_flat_link !=
"") {
1642 if ($this->left_nav_content !=
"") {
1647 $this->
setVariable(
"LINK_MODE", $this->tree_flat_link);
1648 if (
$ilSetting->get(
"tree_frame") ==
"right") {
1649 if ($this->tree_flat_mode ==
"tree") {
1657 if ($this->tree_flat_mode ==
"tree") {
1663 $this->
setVariable(
"ALT_TREE",
$lng->txt($this->tree_flat_mode .
"view"));
1665 include_once(
"./Services/Accessibility/classes/class.ilAccessKeyGUI.php");
1688 $this->tree_flat_link = $a_link;
1689 $this->tree_flat_mode = $a_mode;
1698 $this->lightbox[$a_id] = $a_html;
1713 foreach ($this->lightbox as $lb) {
1739 $this->admin_panel_commands_toolbar = $toolb;
1740 $this->admin_panel_arrow = $a_arrow;
1741 $this->admin_panel_bottom = $a_bottom_panel;
1755 if ($this->admin_panel_commands_toolbar ===
null) {
1763 if ($this->admin_panel_arrow) {
1771 $this->
setVariable(
"ADM_PANEL1", $toolb->getHTML());
1775 if ($this->admin_panel_bottom) {
1779 if ($this->admin_panel_arrow) {
1783 $this->
setVariable(
"ADM_PANEL2", $toolb->getHTML());
1791 $this->permanent_link = array(
1794 "append" => $a_append,
1795 "target" => $a_target,
1796 "title" => $a_title,
1806 if (is_array($this->permanent_link)) {
1807 include_once(
"./Services/PermanentLink/classes/class.ilPermanentLinkGUI.php");
1809 $this->permanent_link[
"type"],
1810 $this->permanent_link[
"id"],
1811 $this->permanent_link[
"append"],
1812 $this->permanent_link[
"target"]
1814 if ($this->permanent_link[
"title"] !=
"") {
1815 $plinkgui->setTitle($this->permanent_link[
"title"]);
1817 $this->
setVariable(
"PRMLINK", $plinkgui->getHTML());
1834 if ($a_reset_header_action) {
1845 $this->enable_fileupload = $a_ref_id;
1858 public function get($part =
"DEFAULT")
1860 return $this->
template->get($part);
1866 return $this->
template->setVariable($variable, $value);
1872 return $this->
template->variableExists($a_variablename);
1885 return $this->
template->setCurrentBlock($part);
1900 return $this->
template->touchBlock($block);
1915 return $this->
template->parseCurrentBlock($part);
1933 return $this->
template->addBlockFile($var, $block, $tplname, $in_module);
1948 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
Base class for ILIAS Exception handling.
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(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl