19 declare(strict_types=1);
37 self::MESSAGE_TYPE_FAILURE,
38 self::MESSAGE_TYPE_INFO,
39 self::MESSAGE_TYPE_SUCCESS,
40 self::MESSAGE_TYPE_QUESTION,
57 public function setOnScreenMessage(
string $type,
string $a_txt,
bool $a_keep =
false): void;
62 public function addJavaScript(
string $a_js_file,
bool $a_add_version_parameter =
true,
int $a_batch = 2): void;
67 public function addOnLoadCode(
string $a_code,
int $a_batch = 2): void;
87 public function addCss(
string $a_css_file,
string $media =
"screen"): void;
92 public function addInlineCss(
string $a_css,
string $media =
"screen"): void;
97 public function setBodyClass(
string $a_class =
""): void;
110 public function setTitle(
string $a_title,
bool $hidden =
false): void;
120 public function setTitleIcon(
string $a_icon_path,
string $a_icon_desc =
""): void;
151 public function setTabs(
string $a_tabs_html): void;
156 public function setSubTabs(
string $a_tabs_html): void;
161 public function setContent(
string $a_html): void;
193 string $part = self::DEFAULT_BLOCK,
194 bool $add_error_mess =
false,
195 bool $handle_referer =
false,
196 bool $add_ilias_footer =
false,
197 bool $add_standard_elements =
false,
198 bool $a_main_menu =
true,
207 string $part = self::DEFAULT_BLOCK,
208 bool $has_tabs =
true,
209 bool $skip_main_menu =
false 230 bool $is_bottom_panel =
true,
231 bool $has_arrow =
false 240 string $a_append =
"",
241 string $a_target =
"",
258 public function get(
string $part = self::DEFAULT_BLOCK):
string;
264 public function setVariable(
string $variable, $value =
''): void;
269 public function setCurrentBlock(
string $part = self::DEFAULT_BLOCK): bool;
274 public function parseCurrentBlock(
string $block_name = self::DEFAULT_BLOCK): bool;
279 public function touchBlock(
string $block): bool;
284 public function addBlockFile(
string $var,
string $block,
string $template_name, ?
string $in_module =
null): bool;
290 public function blockExists(
string $block_name): bool;
setOnScreenMessage(string $type, string $a_txt, bool $a_keep=false)
Set a message to be displayed to the user.
setRightContent(string $a_html)
Sets content of right column.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setLeftContent(string $a_html)
Sets content of left column.
setTabs(string $a_tabs_html)
sets tabs in standard template
setFileUploadRefId(int $a_ref_id)
Enables the file upload into this object by dropping a file.
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
touchBlock(string $block)
overwrites ITX::touchBlock.
addBlockFile(string $var, string $block, string $template_name, ?string $in_module=null)
overwrites ITX::addBlockFile
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.
fillJavaScriptFiles(bool $a_force=false)
Probably adds javascript files.
setContent(string $a_html)
Sets content for standard template.
printToString()
Use this method to get the finally rendered page as string.
addAdminPanelToolbar(\ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false)
Add admin panel commands as toolbar.
setTreeFlatIcon(string $a_link, string $a_mode)
Sets a tree or flat icon.
const MESSAGE_TYPE_QUESTION
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
const MESSAGE_TYPE_SUCCESS
setVariable(string $variable, $value='')
Sets the given variable to the given value.
setLocator()
Insert locator.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
blockExists(string $block_name)
check if block exists in actual template
addInlineCss(string $a_css, string $media="screen")
Add a css file that should be included in the header.
hideFooter()
Make the template hide the footer.
setHeaderPageTitle(string $a_title)
Sets the title of the page (for browser window).
setPageFormAction(string $a_action)
Sets the pages form action.
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.
setLoginTargetPar(string $a_val)
Set target parameter for login (public sector).
setAlertProperties(array $alerts)
Set alert properties.
resetHeaderBlock(bool $a_reset_header_action=true)
Reset all header properties: title, icon, description, alerts, action menu.
setLeftNavContent(string $a_content)
Sets content of left navigation column.
clearHeader()
Clear header.
loadStandardTemplate()
This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STA...
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
getOnLoadCodeForAsynch()
Get js onload code for ajax calls.
setBodyClass(string $a_class="")
Sets the body-tags class.
setDescription(string $a_descr)
Sets description below title in standard template.
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
setPermanentLink(string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
Generates and sets a permanent ilias link.
setHeaderActionMenu(string $a_header)
Set header action menu.
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.
resetJavascript()
Reset javascript files.
const MESSAGE_TYPE_FAILURE
setSubTabs(string $a_tabs_html)
sets subtabs in standard template