19declare(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
188 $this->getLegacyGlobalTemplateInstance()->printToStdout($part, $has_tabs, $skip_main_menu);
193 return $this->getLegacyGlobalTemplateInstance()->printToString();
198 $this->getLegacyGlobalTemplateInstance()->setTreeFlatIcon($a_link, $a_mode);
203 bool $is_bottom_panel =
true,
204 bool $has_arrow =
false
206 $this->getLegacyGlobalTemplateInstance()->addAdminPanelToolbar($toolbar, $is_bottom_panel, $has_arrow);
212 string $a_append =
"",
213 string $a_target =
"",
216 $this->getLegacyGlobalTemplateInstance()->setPermanentLink($a_type, $a_id, $a_append, $a_target, $a_title);
221 $this->getLegacyGlobalTemplateInstance()->resetHeaderBlock($a_reset_header_action);
226 $this->getLegacyGlobalTemplateInstance()->setFileUploadRefId($a_ref_id);
229 public function get(
string $part = self::DEFAULT_BLOCK):
string
231 return $this->getLegacyGlobalTemplateInstance()->get($part);
236 $this->getLegacyGlobalTemplateInstance()->setVariable($variable, $value);
241 return $this->getLegacyGlobalTemplateInstance()->setCurrentBlock($part);
246 return $this->getLegacyGlobalTemplateInstance()->parseCurrentBlock($block_name);
251 return $this->getLegacyGlobalTemplateInstance()->touchBlock($block);
254 public function addBlockFile(
string $var,
string $block,
string $template_name, ?
string $in_module =
null): bool
256 return $this->getLegacyGlobalTemplateInstance()->addBlockFile($var, $block, $template_name, $in_module);
261 return $this->getLegacyGlobalTemplateInstance()->blockExists($block_name);
267 return $DIC->ui()->mainTemplate();
blockExists(string $block_name)
check if block exists in actual template
setPermanentLink(string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
Generates and sets a permanent ilias link.
hideFooter()
Make the template hide the footer.
addBlockFile(string $var, string $block, string $template_name, ?string $in_module=null)
overwrites ITX::addBlockFile
loadStandardTemplate()
This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STA...
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.
setBodyClass(string $a_class="")
Sets the body-tags class.
setHeaderPageTitle(string $a_title)
Sets the title of the page (for browser window).
setTabs(string $a_tabs_html)
sets tabs in standard template
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
setContent(string $a_html)
Sets content for standard template.
setTreeFlatIcon(string $a_link, string $a_mode)
Sets a tree or flat icon.
setSubTabs(string $a_tabs_html)
sets subtabs in standard template
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
setHeaderActionMenu(string $a_header)
Set header action menu.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
setLeftContent(string $a_html)
Sets content of left column.
getOnLoadCodeForAsynch()
Get js onload code for ajax calls.
resetHeaderBlock(bool $a_reset_header_action=true)
Reset all header properties: title, icon, description, alerts, action menu.
setRightContent(string $a_html)
Sets content of right column.
setDescription(string $a_descr)
Sets description below title in standard template.
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
addAdminPanelToolbar(ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false)
addInlineCss(string $a_css, string $media="screen")
Add a css file that should be included in the header.
fillJavaScriptFiles(bool $a_force=false)
Probably adds javascript files.
setLeftNavContent(string $a_content)
Sets content of left navigation column.
setFileUploadRefId(int $a_ref_id)
Enables the file upload into this object by dropping a file.
touchBlock(string $block)
overwrites ITX::touchBlock.
setAlertProperties(array $alerts)
Set alert properties.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setOnScreenMessage(string $type, string $a_txt, bool $a_keep=false)
Set a message to be displayed to the user.
getLegacyGlobalTemplateInstance()
printToString()
Use this method to get the finally rendered page as string.
setPageFormAction(string $a_action)
Sets the pages form action.
setLoginTargetPar(string $a_val)
Set target parameter for login (public sector).
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.
resetJavascript()
Reset javascript files.
setLocator()
Insert locator.
clearHeader()
Clear header.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...