4include_once(
"./Services/UICore/lib/html-it/IT.php");
5include_once(
"./Services/UICore/lib/html-it/ITX.php");
46 $this->
template =
new ilTemplate($file, $flag1, $flag2, $in_module, $vars,
$plugin, $a_use_cache);
77 $this->show_footer =
false;
91 $ilCtrl =
$DIC->ctrl();
94 if (!$this->show_footer) {
98 $ftpl =
new ilTemplate(
"tpl.footer.html",
true,
true,
"Services/UICore");
102 $php =
", PHP " . phpversion();
104 $ftpl->setVariable(
"ILIAS_VERSION",
$ilSetting->get(
"ilias_version") . $php);
106 $link_items = array();
109 include_once
"Services/Imprint/classes/class.ilImprint.php";
111 include_once
"Services/Link/classes/class.ilLink.php";
116 include_once(
"./Modules/SystemFolder/classes/class.ilSystemSupportContactsGUI.php");
122 if (function_exists(
"tidy_parse_string")) {
129 include_once(
"Services/Language/classes/class.ilObjLanguageAccess.php");
135 foreach ($link_items as
$url => $caption) {
138 $ftpl->touchBlock(
"blank");
140 if ($cnt <
sizeof($link_items)) {
141 $ftpl->touchBlock(
"item_separator");
144 $ftpl->setCurrentBlock(
"items");
146 $ftpl->setVariable(
"TXT_ITEM", $caption[0]);
147 $ftpl->parseCurrentBlock();
152 $t1 = explode(
" ",
$GLOBALS[
'ilGlobalStartTime']);
153 $t2 = explode(
" ", microtime());
154 $diff = $t2[0] - $t1[0] + $t2[1] - $t1[1];
156 $mem_usage = array();
157 if (function_exists(
"memory_get_usage")) {
159 "Memory Usage: " . memory_get_usage() .
" Bytes";
161 if (function_exists(
"xdebug_peak_memory_usage")) {
163 "XDebug Peak Memory Usage: " . xdebug_peak_memory_usage() .
" Bytes";
165 $mem_usage[] = round($diff, 4) .
" Seconds";
167 if (
sizeof($mem_usage)) {
168 $ftpl->setVariable(
"MEMORY_USAGE",
"<br>" . implode(
" | ", $mem_usage));
171 if (!empty(
$_GET[
"do_dev_validate"]) && $ftpl->blockExists(
"xhtml_validation")) {
172 require_once(
"Services/XHTMLValidator/classes/class.ilValidatorAdapter.php");
173 $template2 = clone($this);
174 $ftpl->setCurrentBlock(
"xhtml_validation");
183 ),
$_GET[
"do_dev_validate"])
185 $ftpl->parseCurrentBlock();
189 if (is_object($ilCtrl) && $ftpl->blockExists(
"c_entry") &&
190 $ftpl->blockExists(
"call_history")) {
191 $hist = $ilCtrl->getCallHistory();
192 foreach ($hist as $entry) {
193 $ftpl->setCurrentBlock(
"c_entry");
194 $ftpl->setVariable(
"C_ENTRY", $entry[
"class"]);
195 if (is_object(
$ilDB)) {
196 $file = $ilCtrl->lookupClassPath($entry[
"class"]);
197 $add = $entry[
"mode"] .
" - " . $entry[
"cmd"];
199 $add .=
" - " . $file;
201 $ftpl->setVariable(
"C_FILE", $add);
203 $ftpl->parseCurrentBlock();
205 $ftpl->setCurrentBlock(
"call_history");
206 $ftpl->parseCurrentBlock();
210 if (is_object($ilCtrl) && $ftpl->blockExists(
"i_entry") &&
211 $ftpl->blockExists(
"included_files")) {
212 $fs = get_included_files();
215 foreach ($fs as
$f) {
216 $ifiles[] = array(
"file" =>
$f,
"size" => filesize(
$f));
220 foreach ($ifiles as
$f) {
221 $ftpl->setCurrentBlock(
"i_entry");
222 $ftpl->setVariable(
"I_ENTRY",
$f[
"file"] .
" (" .
$f[
"size"] .
" Bytes, " . round(100 /
$total *
$f[
"size"], 2) .
"%)");
223 $ftpl->parseCurrentBlock();
225 $ftpl->setCurrentBlock(
"i_entry");
226 $ftpl->setVariable(
"I_ENTRY",
"Total (" .
$total .
" Bytes, 100%)");
227 $ftpl->parseCurrentBlock();
228 $ftpl->setCurrentBlock(
"included_files");
229 $ftpl->parseCurrentBlock();
236 $ilBench->stop(
"Core",
"ElapsedTimeUntilFooter");
239 ", " . number_format(
$ilBench->getMeasuredTime(
"Core",
"ElapsedTimeUntilFooter"), 1) .
' seconds'
267 $ilMainMenu =
$DIC[
"ilMainMenu"];
271 $this->main_menu = $ilMainMenu->getHTML();
272 $this->main_menu_spacer = $ilMainMenu->getSpacerClass();
281 $tpl->setVariable(
"MAINMENU", $this->main_menu);
282 $tpl->setVariable(
"MAINMENU_SPACER", $this->main_menu_spacer);
298 include_once(
"./Services/Help/classes/class.ilHelpGUI.php");
320 self::MESSAGE_TYPE_FAILURE,
321 self::MESSAGE_TYPE_INFO,
322 self::MESSAGE_TYPE_SUCCESS,
323 self::MESSAGE_TYPE_QUESTION,
341 if (!in_array($a_type, self::$message_types) || $a_txt ==
"") {
345 $this->message[$a_type] = $a_txt;
360 foreach (self::$message_types as $m) {
367 $request =
$DIC->http()->request();
368 $accept_header = $request->getHeaderLine(
'Accept');
369 if (isset(
$_SESSION[$m]) &&
$_SESSION[$m] && ($accept_header !==
'application/json')) {
391 if (isset($this->message[$m])) {
392 $txt = $this->message[$m];
409 protected $js_files = array(0 =>
"./Services/JavaScript/js/Basic.js");
415 protected $js_files_vp = array(
"./Services/JavaScript/js/Basic.js" =>
true);
426 public function addJavaScript($a_js_file, $a_add_version_parameter =
true, $a_batch = 2)
429 if ($a_batch < 1 || $a_batch > 3) {
434 if (is_int(strpos($a_js_file,
"Services/jQuery")) ||
435 is_int(strpos($a_js_file,
"/jquery.js")) ||
436 is_int(strpos($a_js_file,
"/jquery-min.js"))) {
440 if (!in_array($a_js_file, $this->js_files)) {
441 $this->js_files[] = $a_js_file;
442 $this->js_files_vp[$a_js_file] = $a_add_version_parameter;
443 $this->js_files_batch[$a_js_file] = $a_batch;
453 if ($a_batch < 1 || $a_batch > 3) {
456 $this->on_load_code[$a_batch][] = $a_code;
467 for (
$i = 1;
$i <= 3;
$i++) {
468 if (is_array($this->on_load_code[
$i])) {
469 foreach ($this->on_load_code[
$i] as $code) {
475 return '<script type="text/javascript">' .
"\n" .
489 $this->js_files = array();
490 $this->js_files_vp = array();
491 $this->js_files_batch = array();
507 $vers =
"vers=" . str_replace(array(
".",
" "),
"-",
$ilSetting->get(
"ilias_version"));
510 $vers .=
'-' . time();
515 for (
$i = 0;
$i <= 3;
$i++) {
516 reset($this->js_files);
517 foreach ($this->js_files as $file) {
518 if ($this->js_files_batch[$file] ==
$i) {
519 if (is_file($file) || substr($file, 0, 4) ==
"http" || substr($file, 0, 2) ==
"//" || $a_force) {
521 } elseif (substr($file, 0, 2) ==
'./') {
522 $url_parts = parse_url($file);
523 if (is_file($url_parts[
'path'])) {
538 for (
$i = 1;
$i <= 3;
$i++) {
539 if (is_array($this->on_load_code[
$i])) {
541 foreach ($this->on_load_code[
$i] as $code) {
559 if ($this->js_files_vp[$file]) {
589 public function addCss($a_css_file, $media =
"screen")
591 if (!array_key_exists($a_css_file . $media, $this->css_files)) {
592 $this->css_files[$a_css_file . $media] = array(
"file" => $a_css_file,
"media" => $media);
605 $this->inline_css[] = array(
"css" => $a_css,
"media" => $media);
623 foreach ($this->css_files as $css) {
649 $this->body_class = $a_class;
654 if ($this->body_class !=
"" && $this->
blockExists(
"body_class")) {
656 $this->
setVariable(
"BODY_CLASS", $this->body_class);
666 $this->css_files = array();
679 foreach ($this->inline_css as $css) {
692 "LOCATION_NEWCONTENT_STYLESHEET_TAG",
693 '<link rel="stylesheet" type="text/css" href="' .
715 if ($this->standard_template_loaded) {
720 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
725 include_once(
"./Services/UICore/classes/class.ilUIFramework.php");
728 $this->
addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
729 $this->
addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
731 $this->standard_template_loaded =
true;
752 public function setTitle($a_title, $hidden =
false)
754 $this->title = $a_title;
755 $this->header_page_title = $a_title;
763 $this->title_desc = $a_descr;
771 $this->icon_desc = $a_icon_desc;
772 $this->icon_path = $a_icon_path;
782 $this->title_alerts = $a_props;
812 $this->header_action = $a_header;
825 $this->header_page_title = $a_title;
838 if ($this->icon_path !=
"") {
841 if ($this->icon_desc !=
"") {
842 $this->
setVariable(
"IMAGE_DESC",
$lng->txt(
"icon") .
" " . $this->icon_desc);
843 $this->
setVariable(
"IMAGE_ALT",
$lng->txt(
"icon") .
" " . $this->icon_desc);
846 $this->
setVariable(
"IMG_HEADER", $this->icon_path);
851 if ($this->title !=
"") {
863 if ($this->title_desc !=
"") {
865 $this->
setVariable(
"H_DESCRIPTION", $this->title_desc);
876 if (count((array) $this->title_alerts)) {
877 foreach ($this->title_alerts as $alert) {
879 if (!($alert[
'propertyNameVisible'] ===
false)) {
880 $this->
setVariable(
'H_PROP', $alert[
'property'] .
':');
888 if ($this->enable_fileupload !=
null) {
889 $ref_id = $this->enable_fileupload;
890 $upload_id =
"dropzone_" . $ref_id;
892 include_once(
"./Services/FileUpload/classes/class.ilFileUploadGUI.php");
895 $this->
setVariable(
"FILEUPLOAD_DROPZONE_ID",
" id=\"$upload_id\"");
898 $this->
setVariable(
"HEADER_FILEUPLOAD_SCRIPT", $upload->getHTML());
927 $ilMainMenu =
$DIC[
"ilMainMenu"];
928 $ilLocator =
$DIC[
"ilLocator"];
930 $ilPluginAdmin =
$DIC[
"ilPluginAdmin"];
940 if (is_object($ilPluginAdmin)) {
941 include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
945 array(
"locator_gui" => $ilLocator)
947 if (!$uip->replaced()) {
948 $html = $ilLocator->getHTML();
950 $html = $uip->getHTML($html);
952 $html = $ilLocator->getHTML();
980 if ($a_tabs_html !=
"" && $this->
blockExists(
"tabs_outer_start")) {
1005 if ($this->tabs_html !=
"") {
1008 $this->
setVariable(
"SUB_TABS", $this->sub_tabs_html);
1016 $ilTabs =
$DIC[
"ilTabs"];
1019 $this->sub_tabs_html = $ilTabs->getSubTabHTML();
1020 $this->tabs_html = $ilTabs->getHTML(
true);
1036 if ($a_html !=
"") {
1037 $this->main_content = $a_html;
1046 $this->left_content = $a_html;
1054 $this->left_nav_content = $a_content;
1062 if (trim($this->left_nav_content) !=
"") {
1064 $this->
setVariable(
"LEFT_NAV_CONTENT", $this->left_nav_content);
1075 $this->right_content = $a_html;
1083 $center_column_class =
"";
1084 if (trim($this->right_content) !=
"" && trim($this->left_content) !=
"") {
1085 $center_column_class =
"two_side_col";
1086 } elseif (trim($this->right_content) !=
"" || trim($this->left_content) !=
"") {
1087 $center_column_class =
"one_side_col";
1090 switch ($center_column_class) {
1091 case "one_side_col": $center_column_class =
"col-sm-9";
break;
1092 case "two_side_col": $center_column_class =
"col-sm-6";
break;
1093 default: $center_column_class =
"col-sm-12";
break;
1095 if (trim($this->left_content) !=
"") {
1096 $center_column_class .=
" col-sm-push-3";
1100 $this->
setVariable(
"CENTER_COL", $center_column_class);
1106 if (trim($this->main_content) !=
"") {
1107 $this->
setVariable(
"ADM_CONTENT", $this->main_content);
1113 if (trim($this->left_content) !=
"") {
1115 $this->
setVariable(
"LEFT_CONTENT", $this->left_content);
1116 $left_col_class = (trim($this->right_content) ==
"")
1117 ?
"col-sm-3 col-sm-pull-9"
1118 :
"col-sm-3 col-sm-pull-6";
1119 $this->
setVariable(
"LEFT_COL_CLASS", $left_col_class);
1126 if (trim($this->right_content) !=
"") {
1128 $this->
setVariable(
"RIGHT_CONTENT", $this->right_content);
1144 $ilToolbar =
$DIC[
"ilToolbar"];
1147 $thtml = $ilToolbar->getHTML();
1167 if (is_object(
$lng)) {
1168 $this->
setVariable(
'META_CONTENT_LANGUAGE',
$lng->getContentLanguage());
1179 if ($this->header_page_title !=
"") {
1184 if (
$ilSetting->get(
'short_inst_name') !=
"") {
1204 $this->page_form_action = $a_action;
1209 if ($this->page_form_action !=
"") {
1211 $this->
setVariable(
"PAGE_FORM_ACTION", $this->page_form_action);
1229 $this->login_target_par = $a_val;
1237 return $this->login_target_par;
1261 $add_error_mess =
false,
1262 $handle_referer =
false,
1263 $add_ilias_footer =
false,
1264 $add_standard_elements =
false,
1265 $a_main_menu =
true,
1270 if ($add_error_mess) {
1274 if ($add_ilias_footer) {
1279 if ($add_standard_elements) {
1332 if ($handle_referer) {
1336 if ($part ==
"DEFAULT") {
1337 $html = $this->
template->get();
1339 $html = $this->
template->get($part);
1353 public function printToStdout($part =
"DEFAULT", $a_fill_tabs =
true, $a_skip_main_menu =
false)
1358 switch (
$http->request()->getHeaderLine(
'Accept')) {
1359 case 'application/json':
1360 $string = json_encode([
1361 self::MESSAGE_TYPE_SUCCESS => is_null($this->message[self::MESSAGE_TYPE_FAILURE]),
1365 $http->saveResponse(
$http->response()->withBody($stream));
1366 $http->sendResponse();
1370 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1373 header(
'P3P: CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
1374 header(
"Content-type: text/html; charset=UTF-8");
1379 if ($part !==
false) {
1392 if (!$a_skip_main_menu) {
1436 if ($part ==
"DEFAULT" or is_bool($part)) {
1437 $html = $this->
template->getUnmodified();
1439 $html = $this->
template->getUnmodified($part);
1445 $ilPluginAdmin =
$DIC[
"ilPluginAdmin"];
1446 $pl_names = $ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"UIComponent",
"uihk");
1447 foreach ($pl_names as $pl) {
1449 $gui_class = $ui_plugin->getUIClassInstance();
1451 $resp = $gui_class->getHTML(
1454 array(
"tpl_id" => $this->tplIdentifier,
"tpl_obj" => $this,
"html" => $html)
1458 $html = $gui_class->modifyHTML($html,
$resp);
1479 if (((substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"error.php")
1480 && (substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"adm_menu.php")
1481 && (substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"chat.php"))) {
1484 $url_parts = @parse_url(
$_SERVER[
"REQUEST_URI"]);
1486 $protocol = (isset(
$_SERVER[
'HTTPS']) ?
'https' :
'http') .
'://';
1489 $url_parts = @parse_url($protocol . $host . $path);
1492 if (isset($url_parts[
"query"]) && preg_match(
"/cmd=gateway/", $url_parts[
"query"]) && (isset(
$_POST[
"cmd"][
"create"]))) {
1493 foreach (
$_POST as $key => $val) {
1494 if (is_array($val)) {
1498 $str .=
"&" . $key .
"=" . $val;
1501 $_SESSION[
"referer"] = preg_replace(
"/cmd=gateway/", substr($str, 1),
$_SERVER[
"REQUEST_URI"]);
1503 } elseif (isset($url_parts[
"query"]) && preg_match(
"/cmd=post/", $url_parts[
"query"]) && (isset(
$_POST[
"cmd"][
"create"]))) {
1504 foreach (
$_POST as $key => $val) {
1505 if (is_array($val)) {
1509 $str .=
"&" . $key .
"=" . $val;
1512 $_SESSION[
"referer"] = preg_replace(
"/cmd=post/", substr($str, 1),
$_SERVER[
"REQUEST_URI"]);
1513 if (isset(
$_GET[
'ref_id'])) {
1520 if (isset(
$_GET[
'ref_id'])) {
1541 if (is_object(
$ilUser) &&
$ilUser->getPref(
"screen_reader_optimization") && $this->blockExists(
"sr_focus")) {
1558 if ($this->tree_flat_link !=
"") {
1559 if ($this->left_nav_content !=
"") {
1564 $this->
setVariable(
"LINK_MODE", $this->tree_flat_link);
1565 if (
$ilSetting->get(
"tree_frame") ==
"right") {
1566 if ($this->tree_flat_mode ==
"tree") {
1574 if ($this->tree_flat_mode ==
"tree") {
1580 $this->
setVariable(
"ALT_TREE",
$lng->txt($this->tree_flat_mode .
"view"));
1582 include_once(
"./Services/Accessibility/classes/class.ilAccessKeyGUI.php");
1603 $this->tree_flat_link = $a_link;
1604 $this->tree_flat_mode = $a_mode;
1613 $this->lightbox[$a_id] = $a_html;
1626 foreach ($this->lightbox as $lb) {
1651 $this->admin_panel_commands_toolbar = $toolb;
1652 $this->admin_panel_arrow = $a_arrow;
1653 $this->admin_panel_bottom = $a_bottom_panel;
1666 if ($this->admin_panel_commands_toolbar ===
null) {
1674 if ($this->admin_panel_arrow) {
1682 $this->
setVariable(
"ADM_PANEL1", $toolb->getHTML());
1686 if ($this->admin_panel_bottom) {
1690 if ($this->admin_panel_arrow) {
1694 $this->
setVariable(
"ADM_PANEL2", $toolb->getHTML());
1699 public function setPermanentLink($a_type, $a_id, $a_append =
"", $a_target =
"", $a_title =
"")
1701 $this->permanent_link = array(
1704 "append" => $a_append,
1705 "target" => $a_target,
1706 "title" => $a_title);
1714 if (is_array($this->permanent_link)) {
1715 include_once(
"./Services/PermanentLink/classes/class.ilPermanentLinkGUI.php");
1717 $this->permanent_link[
"type"],
1718 $this->permanent_link[
"id"],
1719 $this->permanent_link[
"append"],
1720 $this->permanent_link[
"target"]
1722 if ($this->permanent_link[
"title"] !=
"") {
1723 $plinkgui->setTitle($this->permanent_link[
"title"]);
1725 $this->
setVariable(
"PRMLINK", $plinkgui->getHTML());
1741 if ($a_reset_header_action) {
1751 $this->enable_fileupload = $a_ref_id;
1763 public function get($part =
"DEFAULT")
1765 return $this->
template->get($part);
1770 return $this->
template->setVariable($variable, $value);
1775 return $this->
template->variableExists($a_variablename);
1785 return $this->
template->setCurrentBlock($part);
1796 return $this->
template->touchBlock($block);
1807 return $this->
template->parseCurrentBlock($part);
1821 return $this->
template->addBlockFile($var, $block, $tplname, $in_module);
1832 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
touchBlock($block)
overwrites ITX::touchBlock.
const MESSAGE_TYPE_QUESTION
setPageFormAction($a_action)
getOnLoadCodeForAsynch()
Get js onload code for ajax calls.
setTitle($a_title, $hidden=false)
Sets title in standard template.
loadStandardTemplate()
This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STA...
setLeftNavContent($a_content)
Sets content of left navigation column.
fillContentLanguage()
Add current user language to meta tags.
fillSideIcons()
Fill side icons (upper icon, tree icon, webfolder icon)
resetCss()
Reset css files.
printToString()
@inheritDoc
setRightContent($a_html)
Sets content of right column.
setLoginTargetPar($a_val)
Set target parameter for login (public sector).
setLocator()
Insert locator.
getHeaderActionMenu()
Get header action menu.
fillScreenReaderFocus()
Accessibility focus for screen readers.
hideFooter()
Make the template hide the footer.
fillInlineCss()
Fill in the inline css.
setOnScreenMessage($a_type, $a_txt, $a_keep=false)
Set a message to be displayed to the user.
setHeaderActionMenu($a_header)
Set header action menu.
fillLeftNav()
Fill left navigation frame.
const MESSAGE_TYPE_SUCCESS
setContent($a_html)
Sets content for standard template.
fillCssFiles($a_force=false)
Fill in the css file tags.
variableExists($a_variablename)
resetHeaderBlock($a_reset_header_action=true)
Reset all header properties: title, icon, description, alerts, action menu.
resetJavascript()
Reset javascript files.
clearHeader()
Clear header.
fillPermanentLink()
Fill in permanent link.
fillJavascriptFile($file, $vers)
fillFooter()
Fill the footer area.
setDescription($a_descr)
Sets descripton below title in standard template.
addJavaScript($a_js_file, $a_add_version_parameter=true, $a_batch=2)
Add a javascript file that should be included in the header.
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)
fillLightbox()
Fill lightbox content.
setTabs($a_tabs_html)
sets tabs in standard template
const MESSAGE_TYPE_FAILURE
setAlertProperties(array $a_props)
Set alert properties.
setTreeFlatIcon($a_link, $a_mode)
set tree/flat icon
$standard_template_loaded
setBodyClass($a_class="")
$admin_panel_commands_toolbar
handleReferer()
TODO: this is nice, but shouldn't be done here (-> maybe at the end of ilias.php!?...
setLeftContent($a_html)
Sets content of left column.
fillNewContentStyle()
Fill Content Style.
fillAdminPanel()
Put admin panel into template:
$inline_css
Stores CSS to be included directly.
addInlineCss($a_css, $media="screen")
Add a css file that should be included in the header.
addBlockFile($var, $block, $tplname, $in_module=false)
overwrites ITX::addBlockFile @access public
fillOnLoadCode()
Fill add on load code.
addLightbox($a_html, $a_id)
Add lightbox html.
printToStdout($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false)
addCss($a_css_file, $media="screen")
Add a css file that should be included in the header.
addAdminPanelToolbar(ilToolbarGUI $toolb, $a_bottom_panel=true, $a_arrow=false)
Add admin panel commands as toolbar.
setVariable($variable, $value='')
setPermanentLink($a_type, $a_id, $a_append="", $a_target="", $a_title="")
setCurrentBlock($part="DEFAULT")
@access public
__construct( $file, $flag1, $flag2, $in_module=false, $vars="DEFAULT", $plugin=false, $a_use_cache=true)
constructor
addOnLoadCode($a_code, $a_batch=2)
Add on load code.
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt @access public.
setHeaderPageTitle($a_title)
Sets the title of the page (for browser window).
enableDragDropFileUpload($a_ref_id)
Enables the file upload into this object by dropping a file.
fillJavaScriptFiles($a_force=false)
getMessageTextForType($m)
blockExists($a_blockname)
check if block exists in actual template @access private
fillMessage()
Fill message area.
setTitleIcon($a_icon_path, $a_icon_desc="")
set title icon
getLoginTargetPar()
Get target parameter for login.
setSubTabs($a_tabs_html)
sets subtabs in standard template
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