|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Special template class to simplify handling of ITX/PEAR. More...
Inheritance diagram for ilRTEGlobalTemplate:
Collaboration diagram for ilRTEGlobalTemplate:Public Member Functions | |
| __construct (string $file, bool $flag1, bool $flag2, string $in_module='', string $vars='DEFAULT', bool $plugin=false, bool $a_use_cache=true) | |
| printToString () | |
| Use this method to get the finally rendered page as string. More... | |
| hideFooter () | |
| Make the template hide the footer. More... | |
| setOnScreenMessage (string $type, string $a_txt, bool $a_keep=false) | |
| Set a message to be displayed to the user. More... | |
| 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. More... | |
| addOnLoadCode (string $a_code, int $a_batch=2) | |
| Add on load code. More... | |
| getOnLoadCodeForAsynch () | |
| Get js onload code for ajax calls. More... | |
| resetJavascript () | |
| Reset javascript files. More... | |
| fillJavaScriptFiles (bool $a_force=false) | |
| Probably adds javascript files. More... | |
| addCss (string $a_css_file, string $media="screen") | |
| Add a css file that should be included in the header. More... | |
| addInlineCss (string $a_css, string $media="screen") | |
| Add a css file that should be included in the header. More... | |
| setBodyClass (string $a_class='') | |
| Sets the body-tags class. More... | |
| loadStandardTemplate () | |
| This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STATUSLINE placeholders if they are not already loaded. More... | |
| setTitle (string $a_title, bool $hidden=false) | |
| Sets title in standard template. More... | |
| setDescription (string $a_descr) | |
| Sets description below title in standard template. More... | |
| setTitleIcon (string $a_icon_path, string $a_icon_desc="") | |
| set title icon More... | |
| setAlertProperties (array $alerts) | |
| Set alert properties. More... | |
| clearHeader () | |
| Clear header. More... | |
| setHeaderActionMenu (string $a_header) | |
| Set header action menu. More... | |
| setHeaderPageTitle (string $a_title) | |
| Sets the title of the page (for browser window). More... | |
| setLocator () | |
| Insert locator. More... | |
| setTabs (string $a_tabs_html) | |
| sets tabs in standard template More... | |
| setSubTabs (string $a_tabs_html) | |
| sets subtabs in standard template More... | |
| setContent (string $a_html) | |
| Sets content for standard template. More... | |
| setLeftContent (string $a_html) | |
| Sets content of left column. More... | |
| setLeftNavContent (string $a_content) | |
| Sets content of left navigation column. More... | |
| setRightContent (string $a_html) | |
| Sets content of right column. More... | |
| setPageFormAction (string $a_action) | |
| Sets the pages form action. More... | |
| setLoginTargetPar (string $a_val) | |
| Set target parameter for login (public sector). More... | |
| 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. More... | |
| printToStdout (string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false) | |
| setTreeFlatIcon (string $a_link, string $a_mode) | |
| Sets a tree or flat icon. More... | |
| addAdminPanelToolbar (ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false) | |
| Add admin panel commands as toolbar. More... | |
| setPermanentLink (string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="") | |
| Generates and sets a permanent ilias link. More... | |
| resetHeaderBlock (bool $a_reset_header_action=true) | |
| Reset all header properties: title, icon, description, alerts, action menu. More... | |
| setFileUploadRefId (int $a_ref_id) | |
| Enables the file upload into this object by dropping a file. More... | |
| get (string $part=self::DEFAULT_BLOCK) | |
| Renders the given block and returns the html string. More... | |
| setVariable (string $variable, $value='') | |
| Sets the given variable to the given value. More... | |
| setCurrentBlock (string $part=self::DEFAULT_BLOCK) | |
| Sets the template to the given block. More... | |
| touchBlock (string $block) | |
| overwrites ITX::touchBlock. More... | |
| parseCurrentBlock (string $block_name=self::DEFAULT_BLOCK) | |
| Parses the given block. More... | |
| addBlockFile (string $var, string $block, string $template_name, string $in_module=null) | |
| overwrites ITX::addBlockFile More... | |
| blockExists (string $block_name) | |
| check if block exists in actual template More... | |
Protected Member Functions | |
| fillJavascriptFile (string $file, string $vers) | |
Protected Attributes | |
| string | $tree_flat_link = '' |
| string | $page_form_action = '' |
| bool | $permanent_link = false |
| bool | $standard_template_loaded = false |
| ilTemplate | $template |
| string | $body_class = '' |
| array | $js_files = [0 => './Services/JavaScript/js/Basic.js'] |
| array | $js_files_vp = ['./Services/JavaScript/js/Basic.js' => true] |
| array | $js_files_batch = ['./Services/JavaScript/js/Basic.js' => 1] |
Private Member Functions | |
| fillBodyClass () | |
Additional Inherited Members | |
Data Fields inherited from ilGlobalTemplateInterface | |
| const | MESSAGE_TYPE_FAILURE = 'failure' |
| const | MESSAGE_TYPE_SUCCESS = "success" |
| const | MESSAGE_TYPE_QUESTION = "question" |
| const | MESSAGE_TYPE_INFO = "info" |
| const | MESSAGE_TYPES |
| const | DEFAULT_BLOCK = 'DEFAULT' |
Special template class to simplify handling of ITX/PEAR.
Definition at line 26 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::__construct | ( | string | $file, |
| bool | $flag1, | ||
| bool | $flag2, | ||
| string | $in_module = '', |
||
| string | $vars = 'DEFAULT', |
||
| bool | $plugin = false, |
||
| bool | $a_use_cache = true |
||
| ) |
Definition at line 52 of file class.ilRTEGlobalTemplate.php.
References XapiProxy\$plugin, and setBodyClass().
Here is the call graph for this function:| ilRTEGlobalTemplate::addAdminPanelToolbar | ( | ilToolbarGUI | $toolbar, |
| bool | $is_bottom_panel = true, |
||
| bool | $has_arrow = false |
||
| ) |
Add admin panel commands as toolbar.
| bool | $is_bottom_panel | if the panel should be rendered at the bottom of the page as well. |
| bool | $has_arrow | if the panel should be rendered with an arrow icon. |
Implements ilGlobalTemplateInterface.
Definition at line 316 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::addBlockFile | ( | string | $var, |
| string | $block, | ||
| string | $template_name, | ||
| string | $in_module = null |
||
| ) |
overwrites ITX::addBlockFile
Implements ilGlobalTemplateInterface.
Definition at line 365 of file class.ilRTEGlobalTemplate.php.
Referenced by loadStandardTemplate().
Here is the caller graph for this function:| ilRTEGlobalTemplate::addCss | ( | string | $a_css_file, |
| string | $media = "screen" |
||
| ) |
Add a css file that should be included in the header.
Implements ilGlobalTemplateInterface.
Definition at line 163 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::addInlineCss | ( | string | $a_css, |
| string | $media = "screen" |
||
| ) |
Add a css file that should be included in the header.
Implements ilGlobalTemplateInterface.
Definition at line 167 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::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.
Implements ilGlobalTemplateInterface.
Definition at line 78 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::addOnLoadCode | ( | string | $a_code, |
| int | $a_batch = 2 |
||
| ) |
Add on load code.
Implements ilGlobalTemplateInterface.
Definition at line 101 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::blockExists | ( | string | $block_name | ) |
check if block exists in actual template
| string | $block_name |
Implements ilGlobalTemplateInterface.
Definition at line 370 of file class.ilRTEGlobalTemplate.php.
Referenced by fillBodyClass(), and fillJavaScriptFiles().
Here is the caller graph for this function:| ilRTEGlobalTemplate::clearHeader | ( | ) |
Clear header.
Implements ilGlobalTemplateInterface.
Definition at line 218 of file class.ilRTEGlobalTemplate.php.
|
private |
Definition at line 176 of file class.ilRTEGlobalTemplate.php.
References blockExists(), parseCurrentBlock(), setCurrentBlock(), and setVariable().
Referenced by printToStdout().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 152 of file class.ilRTEGlobalTemplate.php.
References ilUtil\appendUrlParameterString(), parseCurrentBlock(), setCurrentBlock(), and setVariable().
Referenced by fillJavaScriptFiles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRTEGlobalTemplate::fillJavaScriptFiles | ( | bool | $a_force = false | ) |
Probably adds javascript files.
Implements ilGlobalTemplateInterface.
Definition at line 118 of file class.ilRTEGlobalTemplate.php.
References $DIC, $ilSetting, blockExists(), fillJavascriptFile(), and ILIAS_VERSION.
Referenced by printToStdout().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRTEGlobalTemplate::get | ( | string | $part = self::DEFAULT_BLOCK | ) |
Renders the given block and returns the html string.
Implements ilGlobalTemplateInterface.
Definition at line 340 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::getOnLoadCodeForAsynch | ( | ) |
Get js onload code for ajax calls.
Implements ilGlobalTemplateInterface.
Definition at line 106 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::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.
Implements ilGlobalTemplateInterface.
Definition at line 267 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::hideFooter | ( | ) |
Make the template hide the footer.
Implements ilGlobalTemplateInterface.
Definition at line 70 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::loadStandardTemplate | ( | ) |
This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STATUSLINE placeholders if they are not already loaded.
Implements ilGlobalTemplateInterface.
Definition at line 185 of file class.ilRTEGlobalTemplate.php.
References addBlockFile(), ilUIFramework\init(), iljQueryUtil\initjQuery(), and iljQueryUtil\initjQueryUI().
Here is the call graph for this function:| ilRTEGlobalTemplate::parseCurrentBlock | ( | string | $block_name = self::DEFAULT_BLOCK | ) |
Parses the given block.
Implements ilGlobalTemplateInterface.
Definition at line 360 of file class.ilRTEGlobalTemplate.php.
Referenced by fillBodyClass(), and fillJavascriptFile().
Here is the caller graph for this function:| ilRTEGlobalTemplate::printToStdout | ( | string | $part = self::DEFAULT_BLOCK, |
| bool | $has_tabs = true, |
||
| bool | $skip_main_menu = false |
||
| ) |
| bool | $has_tabs | if template variable {TABS} should be filled with content of ilTabs |
| bool | $skip_main_menu | if the main menu should be rendered. |
Implements ilGlobalTemplateInterface.
Definition at line 279 of file class.ilRTEGlobalTemplate.php.
References $DIC, $http, fillBodyClass(), fillJavaScriptFiles(), ILIAS\UI\examples\Symbol\Glyph\Header\header(), ilYuiUtil\initDom(), and setCurrentBlock().
Here is the call graph for this function:| ilRTEGlobalTemplate::printToString | ( | ) |
Use this method to get the finally rendered page as string.
Implements ilGlobalTemplateInterface.
Definition at line 65 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::resetHeaderBlock | ( | bool | $a_reset_header_action = true | ) |
Reset all header properties: title, icon, description, alerts, action menu.
Implements ilGlobalTemplateInterface.
Definition at line 332 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::resetJavascript | ( | ) |
Reset javascript files.
Implements ilGlobalTemplateInterface.
Definition at line 111 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setAlertProperties | ( | array | $alerts | ) |
Set alert properties.
| array<int,array> | $alerts |
Implements ilGlobalTemplateInterface.
Definition at line 214 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setBodyClass | ( | string | $a_class = '' | ) |
Sets the body-tags class.
Implements ilGlobalTemplateInterface.
Definition at line 171 of file class.ilRTEGlobalTemplate.php.
Referenced by __construct().
Here is the caller graph for this function:| ilRTEGlobalTemplate::setContent | ( | string | $a_html | ) |
Sets content for standard template.
Implements ilGlobalTemplateInterface.
Definition at line 243 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setCurrentBlock | ( | string | $part = self::DEFAULT_BLOCK | ) |
Sets the template to the given block.
Implements ilGlobalTemplateInterface.
Definition at line 350 of file class.ilRTEGlobalTemplate.php.
Referenced by fillBodyClass(), fillJavascriptFile(), and printToStdout().
Here is the caller graph for this function:| ilRTEGlobalTemplate::setDescription | ( | string | $a_descr | ) |
Sets description below title in standard template.
Implements ilGlobalTemplateInterface.
Definition at line 206 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setFileUploadRefId | ( | int | $a_ref_id | ) |
Enables the file upload into this object by dropping a file.
Implements ilGlobalTemplateInterface.
Definition at line 336 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setHeaderActionMenu | ( | string | $a_header | ) |
Set header action menu.
Implements ilGlobalTemplateInterface.
Definition at line 222 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setHeaderPageTitle | ( | string | $a_title | ) |
Sets the title of the page (for browser window).
Implements ilGlobalTemplateInterface.
Definition at line 226 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setLeftContent | ( | string | $a_html | ) |
Sets content of left column.
Implements ilGlobalTemplateInterface.
Definition at line 247 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setLeftNavContent | ( | string | $a_content | ) |
Sets content of left navigation column.
Implements ilGlobalTemplateInterface.
Definition at line 251 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setLocator | ( | ) |
Insert locator.
Implements ilGlobalTemplateInterface.
Definition at line 230 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setLoginTargetPar | ( | string | $a_val | ) |
Set target parameter for login (public sector).
This is used by the main menu
Implements ilGlobalTemplateInterface.
Definition at line 263 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setOnScreenMessage | ( | string | $type, |
| string | $a_txt, | ||
| bool | $a_keep = false |
||
| ) |
Set a message to be displayed to the user.
Please use instead of ilUtil::sendInfo(), ilUtil::sendSuccess() and ilUtil::sendFailure().
Implements ilGlobalTemplateInterface.
Definition at line 74 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setPageFormAction | ( | string | $a_action | ) |
Sets the pages form action.
Implements ilGlobalTemplateInterface.
Definition at line 259 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setPermanentLink | ( | string | $a_type, |
| ?int | $a_id, | ||
| string | $a_append = "", |
||
| string | $a_target = "", |
||
| string | $a_title = "" |
||
| ) |
Generates and sets a permanent ilias link.
Implements ilGlobalTemplateInterface.
Definition at line 323 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setRightContent | ( | string | $a_html | ) |
Sets content of right column.
Implements ilGlobalTemplateInterface.
Definition at line 255 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setSubTabs | ( | string | $a_tabs_html | ) |
sets subtabs in standard template
Implements ilGlobalTemplateInterface.
Definition at line 239 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setTabs | ( | string | $a_tabs_html | ) |
sets tabs in standard template
Implements ilGlobalTemplateInterface.
Definition at line 234 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setTitle | ( | string | $a_title, |
| bool | $hidden = false |
||
| ) |
Sets title in standard template.
Will override the header_page_title.
Implements ilGlobalTemplateInterface.
Definition at line 202 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setTitleIcon | ( | string | $a_icon_path, |
| string | $a_icon_desc = "" |
||
| ) |
set title icon
Implements ilGlobalTemplateInterface.
Definition at line 210 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setTreeFlatIcon | ( | string | $a_link, |
| string | $a_mode | ||
| ) |
Sets a tree or flat icon.
| string | $a_mode | ("tree" | "flat") |
Implements ilGlobalTemplateInterface.
Definition at line 312 of file class.ilRTEGlobalTemplate.php.
| ilRTEGlobalTemplate::setVariable | ( | string | $variable, |
$value = '' |
|||
| ) |
Sets the given variable to the given value.
| mixed | $value |
Implements ilGlobalTemplateInterface.
Definition at line 345 of file class.ilRTEGlobalTemplate.php.
Referenced by fillBodyClass(), and fillJavascriptFile().
Here is the caller graph for this function:| ilRTEGlobalTemplate::touchBlock | ( | string | $block | ) |
overwrites ITX::touchBlock.
Implements ilGlobalTemplateInterface.
Definition at line 355 of file class.ilRTEGlobalTemplate.php.
|
protected |
Definition at line 33 of file class.ilRTEGlobalTemplate.php.
|
protected |
Definition at line 38 of file class.ilRTEGlobalTemplate.php.
|
protected |
Definition at line 50 of file class.ilRTEGlobalTemplate.php.
|
protected |
Definition at line 44 of file class.ilRTEGlobalTemplate.php.
|
protected |
Definition at line 29 of file class.ilRTEGlobalTemplate.php.
|
protected |
Definition at line 30 of file class.ilRTEGlobalTemplate.php.
|
protected |
Definition at line 31 of file class.ilRTEGlobalTemplate.php.
|
protected |
Definition at line 32 of file class.ilRTEGlobalTemplate.php.
|
protected |
Definition at line 28 of file class.ilRTEGlobalTemplate.php.