19 declare(strict_types=1);
38 public function addJavaScript(
string $a_js_file,
bool $a_add_version_parameter =
true,
int $a_batch = 2): void
63 public function addCss(
string $a_css_file,
string $media =
"screen"): void
68 public function addInlineCss(
string $a_css,
string $media =
"screen"): void
83 public function setTitle(
string $a_title,
bool $hidden =
false): void
93 public function setTitleIcon(
string $a_icon_path,
string $a_icon_desc =
""): void
123 public function setTabs(
string $a_tabs_html): void
164 string $part = self::DEFAULT_BLOCK,
165 bool $add_error_mess =
false,
166 bool $handle_referer =
false,
167 bool $add_ilias_footer =
false,
168 bool $add_standard_elements =
false,
169 bool $a_main_menu =
true,
177 $add_standard_elements,
184 string $part = self::DEFAULT_BLOCK,
185 bool $has_tabs =
true,
186 bool $skip_main_menu =
false 203 bool $is_bottom_panel =
true,
204 bool $has_arrow =
false 212 string $a_append =
"",
213 string $a_target =
"",
229 public function get(
string $part = self::DEFAULT_BLOCK):
string 254 public function addBlockFile(
string $var,
string $block,
string $template_name, ?
string $in_module =
null): bool
267 return $DIC->ui()->mainTemplate();
setHeaderActionMenu(string $a_header)
Set header action menu.
getLegacyGlobalTemplateInstance()
setLeftNavContent(string $a_content)
Sets content of left navigation column.
setLocator()
Insert locator.
blockExists(string $block_name)
check if block exists in actual template
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.
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.
setLoginTargetPar(string $a_val)
Set target parameter for login (public sector).
hideFooter()
Make the template hide the footer.
resetHeaderBlock(bool $a_reset_header_action=true)
Reset all header properties: title, icon, description, alerts, action menu.
setHeaderPageTitle(string $a_title)
Sets the title of the page (for browser window).
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
getOnLoadCodeForAsynch()
Get js onload code for ajax calls.
resetJavascript()
Reset javascript files.
setOnScreenMessage(string $type, string $a_txt, bool $a_keep=false)
Set a message to be displayed to the user.
setTreeFlatIcon(string $a_link, string $a_mode)
Sets a tree or flat icon.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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.
setLeftContent(string $a_html)
Sets content of left column.
setFileUploadRefId(int $a_ref_id)
Enables the file upload into this object by dropping a file.
setSubTabs(string $a_tabs_html)
sets subtabs in standard template
touchBlock(string $block)
overwrites ITX::touchBlock.
setTabs(string $a_tabs_html)
sets tabs in standard template
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
printToString()
Use this method to get the finally rendered page as string.
loadStandardTemplate()
This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STA...
addBlockFile(string $var, string $block, string $template_name, ?string $in_module=null)
overwrites ITX::addBlockFile
setContent(string $a_html)
Sets content for standard template.
setDescription(string $a_descr)
Sets description below title in standard template.
addAdminPanelToolbar(ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false)
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
clearHeader()
Clear header.
setPermanentLink(string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
Generates and sets a permanent ilias link.
setAlertProperties(array $alerts)
Set alert properties.
setRightContent(string $a_html)
Sets content of right column.
setBodyClass(string $a_class="")
Sets the body-tags class.
setPageFormAction(string $a_action)
Sets the pages form action.
addInlineCss(string $a_css, string $media="screen")
Add a css file that should be included in the header.