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;
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);
877 if (count((array) $this->title_alerts)) {
878 foreach ($this->title_alerts as $alert) {
880 if (!($alert[
'propertyNameVisible'] ===
false)) {
881 $this->
setVariable(
'H_PROP', $alert[
'property'] .
':');
889 if ($this->enable_fileupload !=
null) {
890 $ref_id = $this->enable_fileupload;
891 $upload_id =
"dropzone_" . $ref_id;
893 include_once(
"./Services/FileUpload/classes/class.ilFileUploadGUI.php");
896 $this->
setVariable(
"FILEUPLOAD_DROPZONE_ID",
" id=\"$upload_id\"");
899 $this->
setVariable(
"HEADER_FILEUPLOAD_SCRIPT", $upload->getHTML());
928 $ilMainMenu =
$DIC[
"ilMainMenu"];
929 $ilLocator =
$DIC[
"ilLocator"];
931 $ilPluginAdmin =
$DIC[
"ilPluginAdmin"];
941 if (is_object($ilPluginAdmin)) {
942 include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
946 array(
"locator_gui" => $ilLocator)
948 if (!$uip->replaced()) {
949 $html = $ilLocator->getHTML();
951 $html = $uip->getHTML($html);
953 $html = $ilLocator->getHTML();
981 if ($a_tabs_html !=
"" && $this->
blockExists(
"tabs_outer_start")) {
1006 if ($this->tabs_html !=
"") {
1009 $this->
setVariable(
"SUB_TABS", $this->sub_tabs_html);
1017 $ilTabs =
$DIC[
"ilTabs"];
1020 $this->sub_tabs_html = $ilTabs->getSubTabHTML();
1021 $this->tabs_html = $ilTabs->getHTML(
true);
1037 if ($a_html !=
"") {
1038 $this->main_content = $a_html;
1047 $this->left_content = $a_html;
1063 if (trim($this->left_nav_content) !=
"") {
1065 $this->
setVariable(
"LEFT_NAV_CONTENT", $this->left_nav_content);
1076 $this->right_content = $a_html;
1084 $center_column_class =
"";
1085 if (trim($this->right_content) !=
"" && trim($this->left_content) !=
"") {
1086 $center_column_class =
"two_side_col";
1087 } elseif (trim($this->right_content) !=
"" || trim($this->left_content) !=
"") {
1088 $center_column_class =
"one_side_col";
1091 switch ($center_column_class) {
1092 case "one_side_col": $center_column_class =
"col-sm-9";
break;
1093 case "two_side_col": $center_column_class =
"col-sm-6";
break;
1094 default: $center_column_class =
"col-sm-12";
break;
1096 if (trim($this->left_content) !=
"") {
1097 $center_column_class .=
" col-sm-push-3";
1101 $this->
setVariable(
"CENTER_COL", $center_column_class);
1107 if (trim($this->main_content) !=
"") {
1108 $this->
setVariable(
"ADM_CONTENT", $this->main_content);
1114 if (trim($this->left_content) !=
"") {
1116 $this->
setVariable(
"LEFT_CONTENT", $this->left_content);
1117 $left_col_class = (trim($this->right_content) ==
"")
1118 ?
"col-sm-3 col-sm-pull-9"
1119 :
"col-sm-3 col-sm-pull-6";
1120 $this->
setVariable(
"LEFT_COL_CLASS", $left_col_class);
1127 if (trim($this->right_content) !=
"") {
1129 $this->
setVariable(
"RIGHT_CONTENT", $this->right_content);
1145 $ilToolbar =
$DIC[
"ilToolbar"];
1148 $thtml = $ilToolbar->getHTML();
1170 $contentLanguage =
'en';
1171 $rtl = array(
'ar',
'fa',
'ur',
'he');
1177 $contentLanguage =
$ilUser->getLanguage();
1178 } elseif (is_object(
$lng)) {
1179 $contentLanguage =
$lng->getDefaultLanguage();
1182 $this->
setVariable(
'META_CONTENT_LANGUAGE', $contentLanguage);
1183 if (in_array($contentLanguage, $rtl)) {
1186 $this->
setVariable(
'LANGUAGE_DIRECTION', $textdir);
1196 if ($this->header_page_title !=
"") {
1201 if (
$ilSetting->get(
'short_inst_name') !=
"") {
1221 $this->page_form_action = $a_action;
1226 if ($this->page_form_action !=
"") {
1228 $this->
setVariable(
"PAGE_FORM_ACTION", $this->page_form_action);
1246 $this->login_target_par = $a_val;
1254 return $this->login_target_par;
1278 $add_error_mess =
false,
1279 $handle_referer =
false,
1280 $add_ilias_footer =
false,
1281 $add_standard_elements =
false,
1282 $a_main_menu =
true,
1287 if ($add_error_mess) {
1291 if ($add_ilias_footer) {
1296 if ($add_standard_elements) {
1349 if ($handle_referer) {
1353 if ($part ==
"DEFAULT") {
1354 $html = $this->
template->get();
1356 $html = $this->
template->get($part);
1370 public function printToStdout($part =
"DEFAULT", $a_fill_tabs =
true, $a_skip_main_menu =
false)
1375 switch (
$http->request()->getHeaderLine(
'Accept')) {
1376 case 'application/json':
1377 $string = json_encode([
1378 self::MESSAGE_TYPE_SUCCESS => is_null($this->message[self::MESSAGE_TYPE_FAILURE]),
1382 $http->saveResponse(
$http->response()->withBody($stream));
1383 $http->sendResponse();
1387 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1390 header(
'P3P: CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
1391 header(
"Content-type: text/html; charset=UTF-8");
1396 if ($part !==
false) {
1409 if (!$a_skip_main_menu) {
1453 if ($part ==
"DEFAULT" or is_bool($part)) {
1454 $html = $this->
template->getUnmodified();
1456 $html = $this->
template->getUnmodified($part);
1462 $ilPluginAdmin =
$DIC[
"ilPluginAdmin"];
1463 $pl_names = $ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"UIComponent",
"uihk");
1464 foreach ($pl_names as $pl) {
1466 $gui_class = $ui_plugin->getUIClassInstance();
1468 $resp = $gui_class->getHTML(
1471 array(
"tpl_id" => $this->tplIdentifier,
"tpl_obj" => $this,
"html" => $html)
1475 $html = $gui_class->modifyHTML($html,
$resp);
1496 if (((substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"error.php")
1497 && (substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"adm_menu.php")
1498 && (substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"chat.php"))) {
1503 $url_parts = @parse_url(
$_SERVER[
"REQUEST_URI"]);
1505 $protocol = (isset(
$_SERVER[
'HTTPS']) ?
'https' :
'http') .
'://';
1508 $url_parts = @parse_url($protocol . $host . $path);
1511 if (isset($url_parts[
"query"]) && preg_match(
"/cmd=gateway/", $url_parts[
"query"]) && (isset(
$_POST[
"cmd"][
"create"]))) {
1512 foreach (
$_POST as $key => $val) {
1513 if (is_array($val)) {
1517 $str .=
"&" . $key .
"=" . $val;
1520 $_SESSION[
"referer"] = preg_replace(
"/cmd=gateway/", substr($str, 1),
$_SERVER[
"REQUEST_URI"]);
1522 } elseif (isset($url_parts[
"query"]) && preg_match(
"/cmd=post/", $url_parts[
"query"]) && (isset(
$_POST[
"cmd"][
"create"]))) {
1523 foreach (
$_POST as $key => $val) {
1524 if (is_array($val)) {
1528 $str .=
"&" . $key .
"=" . $val;
1531 $_SESSION[
"referer"] = preg_replace(
"/cmd=post/", substr($str, 1),
$_SERVER[
"REQUEST_URI"]);
1532 if (isset(
$_GET[
'ref_id'])) {
1539 if (isset(
$_GET[
'ref_id'])) {
1560 if (is_object(
$ilUser) &&
$ilUser->getPref(
"screen_reader_optimization") && $this->blockExists(
"sr_focus")) {
1577 if ($this->tree_flat_link !=
"") {
1578 if ($this->left_nav_content !=
"") {
1583 $this->
setVariable(
"LINK_MODE", $this->tree_flat_link);
1584 if (
$ilSetting->get(
"tree_frame") ==
"right") {
1585 if ($this->tree_flat_mode ==
"tree") {
1593 if ($this->tree_flat_mode ==
"tree") {
1599 $this->
setVariable(
"ALT_TREE",
$lng->txt($this->tree_flat_mode .
"view"));
1601 include_once(
"./Services/Accessibility/classes/class.ilAccessKeyGUI.php");
1622 $this->tree_flat_link = $a_link;
1623 $this->tree_flat_mode = $a_mode;
1632 $this->lightbox[$a_id] = $a_html;
1645 foreach ($this->lightbox as $lb) {
1670 $this->admin_panel_commands_toolbar = $toolb;
1671 $this->admin_panel_arrow = $a_arrow;
1672 $this->admin_panel_bottom = $a_bottom_panel;
1685 if ($this->admin_panel_commands_toolbar ===
null) {
1693 if ($this->admin_panel_arrow) {
1701 $this->
setVariable(
"ADM_PANEL1", $toolb->getHTML());
1705 if ($this->admin_panel_bottom) {
1709 if ($this->admin_panel_arrow) {
1713 $this->
setVariable(
"ADM_PANEL2", $toolb->getHTML());
1720 $this->permanent_link = array(
1723 "append" => $a_append,
1724 "target" => $a_target,
1725 "title" => $a_title);
1733 if (is_array($this->permanent_link)) {
1734 include_once(
"./Services/PermanentLink/classes/class.ilPermanentLinkGUI.php");
1736 $this->permanent_link[
"type"],
1737 $this->permanent_link[
"id"],
1738 $this->permanent_link[
"append"],
1739 $this->permanent_link[
"target"]
1741 if ($this->permanent_link[
"title"] !=
"") {
1742 $plinkgui->setTitle($this->permanent_link[
"title"]);
1744 $this->
setVariable(
"PRMLINK", $plinkgui->getHTML());
1760 if ($a_reset_header_action) {
1770 $this->enable_fileupload = $a_ref_id;
1782 public function get($part =
"DEFAULT")
1784 return $this->
template->get($part);
1789 return $this->
template->setVariable($variable, $value);
1794 return $this->
template->variableExists($a_variablename);
1804 return $this->
template->setCurrentBlock($part);
1815 return $this->
template->touchBlock($block);
1826 return $this->
template->parseCurrentBlock($part);
1840 return $this->
template->addBlockFile($var, $block, $tplname, $in_module);
1851 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
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