ILIAS  release_8 Revision v8.24
interface.ilGlobalTemplateInterface.php
Go to the documentation of this file.
1<?php
2
25{
26 public const MESSAGE_TYPE_FAILURE = 'failure';
27 public const MESSAGE_TYPE_SUCCESS = "success";
28 public const MESSAGE_TYPE_QUESTION = "question";
29 public const MESSAGE_TYPE_INFO = "info";
30
34 public const MESSAGE_TYPES = [
39 ];
40
44 public const DEFAULT_BLOCK = 'DEFAULT';
45
49 public function hideFooter(): void;
50
55 public function setOnScreenMessage(string $type, string $a_txt, bool $a_keep = false): void;
56
60 public function addJavaScript(string $a_js_file, bool $a_add_version_parameter = true, int $a_batch = 2): void;
61
65 public function addOnLoadCode(string $a_code, int $a_batch = 2): void;
66
70 public function getOnLoadCodeForAsynch(): string;
71
75 public function resetJavascript(): void;
76
80 public function fillJavaScriptFiles(bool $a_force = false): void;
81
85 public function addCss(string $a_css_file, string $media = "screen"): void;
86
90 public function addInlineCss(string $a_css, string $media = "screen"): void;
91
95 public function setBodyClass(string $a_class = ""): void;
96
102 public function loadStandardTemplate(): void;
103
108 public function setTitle(string $a_title, bool $hidden = false): void;
109
113 public function setDescription(string $a_descr): void;
114
118 public function setTitleIcon(string $a_icon_path, string $a_icon_desc = ""): void;
119
124 public function setAlertProperties(array $alerts): void;
125
129 public function clearHeader(): void;
130
134 public function setHeaderActionMenu(string $a_header): void;
135
139 public function setHeaderPageTitle(string $a_title): void;
140
144 public function setLocator(): void;
145
149 public function setTabs(string $a_tabs_html): void;
150
154 public function setSubTabs(string $a_tabs_html): void;
155
159 public function setContent(string $a_html): void;
160
164 public function setLeftContent(string $a_html): void;
165
169 public function setLeftNavContent(string $a_content): void;
170
174 public function setRightContent(string $a_html): void;
175
179 public function setPageFormAction(string $a_action): void;
180
185 public function setLoginTargetPar(string $a_val): void;
186
190 public function getSpecial(
191 string $part = self::DEFAULT_BLOCK,
192 bool $add_error_mess = false,
193 bool $handle_referer = false,
194 bool $add_ilias_footer = false,
195 bool $add_standard_elements = false,
196 bool $a_main_menu = true,
197 bool $a_tabs = true
198 ): string;
199
204 public function printToStdout(
205 string $part = self::DEFAULT_BLOCK,
206 bool $has_tabs = true,
207 bool $skip_main_menu = false
208 ): void;
209
213 public function printToString(): string;
214
219 public function setTreeFlatIcon(string $a_link, string $a_mode): void;
220
224 public function addLightbox(string $a_html, string $a_id): void;
225
231 public function addAdminPanelToolbar(
232 ilToolbarGUI $toolbar,
233 bool $is_bottom_panel = true,
234 bool $has_arrow = false
235 ): void;
236
240 public function setPermanentLink(
241 string $a_type,
242 ?int $a_id,
243 string $a_append = "",
244 string $a_target = "",
245 string $a_title = ""
246 ): void;
247
251 public function resetHeaderBlock(bool $a_reset_header_action = true): void;
252
256 public function setFileUploadRefId(int $a_ref_id): void;
257
261 public function get(string $part = self::DEFAULT_BLOCK): string;
262
267 public function setVariable(string $variable, $value = ''): void;
268
272 public function setCurrentBlock(string $part = self::DEFAULT_BLOCK): bool;
273
277 public function parseCurrentBlock(string $block_name = self::DEFAULT_BLOCK): bool;
278
282 public function touchBlock(string $block): bool;
283
287 public function addBlockFile(string $var, string $block, string $template_name, string $in_module = null): bool;
288
293 public function blockExists(string $block_name): bool;
294}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setDescription(string $a_descr)
Sets description below title in standard template.
setLeftNavContent(string $a_content)
Sets content of left navigation column.
hideFooter()
Make the template hide the footer.
addJavaScript(string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
Add a javascript file that should be included in the header.
fillJavaScriptFiles(bool $a_force=false)
Probably adds javascript files.
blockExists(string $block_name)
check if block exists in actual template
printToString()
Use this method to get the finally rendered page as string.
setContent(string $a_html)
Sets content for standard template.
getSpecial(string $part=self::DEFAULT_BLOCK, bool $add_error_mess=false, bool $handle_referer=false, bool $add_ilias_footer=false, bool $add_standard_elements=false, bool $a_main_menu=true, bool $a_tabs=true)
Renders the page with specific elements enabled.
setTreeFlatIcon(string $a_link, string $a_mode)
Sets a tree or flat icon.
setLoginTargetPar(string $a_val)
Set target parameter for login (public sector).
getOnLoadCodeForAsynch()
Get js onload code for ajax calls.
setFileUploadRefId(int $a_ref_id)
Enables the file upload into this object by dropping a file.
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
setHeaderActionMenu(string $a_header)
Set header action menu.
setTabs(string $a_tabs_html)
sets tabs in standard template
setPageFormAction(string $a_action)
Sets the pages form action.
addAdminPanelToolbar(ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false)
Add admin panel commands as toolbar.
setLeftContent(string $a_html)
Sets content of left column.
setOnScreenMessage(string $type, string $a_txt, bool $a_keep=false)
Set a message to be displayed to the user.
setSubTabs(string $a_tabs_html)
sets subtabs in standard template
setBodyClass(string $a_class="")
Sets the body-tags class.
setPermanentLink(string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
Generates and sets a permanent ilias link.
addBlockFile(string $var, string $block, string $template_name, string $in_module=null)
overwrites ITX::addBlockFile
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
touchBlock(string $block)
overwrites ITX::touchBlock.
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
addLightbox(string $a_html, string $a_id)
Add a lightbox html to the template.
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.
setHeaderPageTitle(string $a_title)
Sets the title of the page (for browser window).
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
addInlineCss(string $a_css, string $media="screen")
Add a css file that should be included in the header.
setAlertProperties(array $alerts)
Set alert properties.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
resetHeaderBlock(bool $a_reset_header_action=true)
Reset all header properties: title, icon, description, alerts, action menu.
resetJavascript()
Reset javascript files.
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
clearHeader()
Clear header.
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
loadStandardTemplate()
This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STA...
setRightContent(string $a_html)
Sets content of right column.
setLocator()
Insert locator.
$type