ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilGlobalPageTemplate. More...
Public Member Functions | |
__construct (Services $gs, UIServices $ui, HTTPServices $http) | |
@inheritDoc More... | |
printToStdout ($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false) | |
@inheritDoc More... | |
printToString () | |
@inheritDoc More... | |
addJavaScript ($a_js_file, $a_add_version_parameter=true, $a_batch=2) | |
@inheritDoc More... | |
addCss ($a_css_file, $media="screen") | |
@inheritDoc More... | |
addOnLoadCode ($a_code, $a_batch=2) | |
@inheritDoc More... | |
addInlineCss ($a_css, $media="screen") | |
@inheritDoc More... | |
setContent ($a_html) | |
@inheritDoc More... | |
setLeftContent ($a_html) | |
@inheritDoc More... | |
setRightContent ($a_html) | |
@inheritDoc More... | |
setFilter (string $filter) | |
setTitle ($a_title, $hidden=false) | |
@inheritDoc More... | |
setDescription ($a_descr) | |
@inheritDoc More... | |
setTitleIcon ($a_icon_path, $a_icon_desc="") | |
@inheritDoc More... | |
setBanner (string $img_src) | |
setAlertProperties (array $a_props) | |
@inheritDoc More... | |
setOnScreenMessage ($a_type, $a_txt, $a_keep=false) | |
@inheritDoc More... | |
enableDragDropFileUpload ($a_ref_id) | |
@inheritDoc More... | |
setHeaderActionMenu ($a_header) | |
@inheritDoc More... | |
setHeaderPageTitle ($a_title) | |
@inheritDoc More... | |
addLightbox ($a_html, $a_id) | |
@inheritDoc More... | |
setPageFormAction ($a_action) | |
addAdminPanelToolbar (ilToolbarGUI $toolb, $a_bottom_panel=true, $a_arrow=false) | |
@inheritDoc More... | |
setVariable ($variable, $value='') | |
resetJavascript () | |
@inheritDoc More... | |
get ($part="DEFAULT") | |
@inheritDoc More... | |
setCurrentBlock ($blockname="DEFAULT") | |
@inheritDoc More... | |
touchBlock ($blockname) | |
@inheritDoc More... | |
parseCurrentBlock ($blockname="DEFAULT") | |
@inheritDoc More... | |
addBlockFile ($var, $block, $tplname, $in_module=false) | |
@inheritDoc More... | |
blockExists ($blockname) | |
@inheritDoc More... | |
loadStandardTemplate () | |
@inheritDoc More... | |
setLocator () | |
@inheritDoc More... | |
setPermanentLink ($a_type, $a_id, $a_append="", $a_target="", $a_title="") | |
@inheritDoc More... | |
setTreeFlatIcon ($a_link, $a_mode) | |
@inheritDoc More... | |
hideFooter () | |
@inheritDoc More... | |
setLeftNavContent ($a_content) | |
@inheritDoc More... | |
resetHeaderBlock ($a_reset_header_action=true) | |
@inheritDoc More... | |
setLoginTargetPar ($a_val) | |
@inheritDoc More... | |
getOnLoadCodeForAsynch () | |
@inheritDoc More... | |
fillJavaScriptFiles ($a_force=false) | |
setBodyClass ($a_class="") | |
@inheritDoc More... | |
clearHeader () | |
@inheritDoc More... | |
setTabs ($a_tabs_html) | |
@inheritDoc More... | |
setSubTabs ($a_tabs_html) | |
@inheritDoc More... | |
getSpecial ($part="DEFAULT", $add_error_mess=false, $handle_referer=false, $add_ilias_footer=false, $add_standard_elements=false, $a_main_menu=true, $a_tabs=true) | |
@inheritDoc More... | |
hideFooter () | |
Make the template hide the footer. More... | |
setOnScreenMessage ($a_type, $a_txt, $a_keep=false) | |
Set a message to be displayed to the user. More... | |
addJavaScript ($a_js_file, $a_add_version_parameter=true, $a_batch=2) | |
Add a javascript file that should be included in the header. More... | |
addOnLoadCode ($a_code, $a_batch=2) | |
Add on load code. More... | |
getOnLoadCodeForAsynch () | |
Get js onload code for ajax calls. More... | |
resetJavascript () | |
Reset javascript files. More... | |
fillJavaScriptFiles ($a_force=false) | |
addCss ($a_css_file, $media="screen") | |
Add a css file that should be included in the header. More... | |
addInlineCss ($a_css, $media="screen") | |
Add a css file that should be included in the header. More... | |
setBodyClass ($a_class="") | |
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 ($a_title, $hidden=false) | |
Sets title in standard template. More... | |
setDescription ($a_descr) | |
Sets descripton below title in standard template. More... | |
setTitleIcon ($a_icon_path, $a_icon_desc="") | |
set title icon More... | |
setAlertProperties (array $a_props) | |
Set alert properties. More... | |
clearHeader () | |
Clear header. More... | |
setHeaderActionMenu ($a_header) | |
Set header action menu. More... | |
setHeaderPageTitle ($a_title) | |
Sets the title of the page (for browser window). More... | |
setLocator () | |
Insert locator. More... | |
setTabs ($a_tabs_html) | |
sets tabs in standard template More... | |
setSubTabs ($a_tabs_html) | |
sets subtabs in standard template More... | |
setContent ($a_html) | |
Sets content for standard template. More... | |
setLeftContent ($a_html) | |
Sets content of left column. More... | |
setLeftNavContent ($a_content) | |
Sets content of left navigation column. More... | |
setRightContent ($a_html) | |
Sets content of right column. More... | |
setPageFormAction ($a_action) | |
setLoginTargetPar ($a_val) | |
Set target parameter for login (public sector). More... | |
getSpecial ($part="DEFAULT", $add_error_mess=false, $handle_referer=false, $add_ilias_footer=false, $add_standard_elements=false, $a_main_menu=true, $a_tabs=true) | |
printToStdout ($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false) | |
printToString () | |
Use this method to get the finally rendered page as string. More... | |
setTreeFlatIcon ($a_link, $a_mode) | |
set tree/flat icon More... | |
addLightbox ($a_html, $a_id) | |
Add lightbox html. More... | |
addAdminPanelToolbar (ilToolbarGUI $toolb, $a_bottom_panel=true, $a_arrow=false) | |
Add admin panel commands as toolbar. More... | |
setPermanentLink ($a_type, $a_id, $a_append="", $a_target="", $a_title="") | |
resetHeaderBlock ($a_reset_header_action=true) | |
Reset all header properties: title, icon, description, alerts, action menu. More... | |
enableDragDropFileUpload ($a_ref_id) | |
Enables the file upload into this object by dropping a file. More... | |
get ($part="DEFAULT") | |
setVariable ($variable, $value='') | |
setCurrentBlock ($part="DEFAULT") | |
@access public More... | |
touchBlock ($block) | |
overwrites ITX::touchBlock. More... | |
parseCurrentBlock ($part="DEFAULT") | |
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt. More... | |
addBlockFile ($var, $block, $tplname, $in_module=false) | |
overwrites ITX::addBlockFile More... | |
blockExists ($a_blockname) | |
check if block exists in actual template More... | |
Private Member Functions | |
prepareOutputHeaders () | |
prepareBasicJS () | |
prepareBasicCSS () | |
handleReferer () | |
Old method from global template fixing #26968. More... | |
Private Attributes | |
$http | |
$gs | |
$ui | |
$legacy_content_template | |
$lng | |
Static Private Attributes | |
static | $ignored_blocks = ['ContentStyle', "DEFAULT", "SyntaxStyle", ""] |
Class ilGlobalPageTemplate.
Definition at line 15 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::__construct | ( | Services | $gs, |
UIServices | $ui, | ||
HTTPServices | $http | ||
) |
@inheritDoc
Definition at line 50 of file class.ilGlobalPageTemplate.php.
References $DIC, $gs, $http, $ui, ILIAS\FileDelivery\http(), and ui().
ilGlobalPageTemplate::addAdminPanelToolbar | ( | ilToolbarGUI | $toolb, |
$a_bottom_panel = true , |
|||
$a_arrow = false |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 336 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::addBlockFile | ( | $var, | |
$block, | |||
$tplname, | |||
$in_module = false |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 434 of file class.ilGlobalPageTemplate.php.
References blockExists().
ilGlobalPageTemplate::addCss | ( | $a_css_file, | |
$media = "screen" |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 154 of file class.ilGlobalPageTemplate.php.
Referenced by setVariable().
ilGlobalPageTemplate::addInlineCss | ( | $a_css, | |
$media = "screen" |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 172 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::addJavaScript | ( | $a_js_file, | |
$a_add_version_parameter = true , |
|||
$a_batch = 2 |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 145 of file class.ilGlobalPageTemplate.php.
Referenced by ilTermsOfServiceAcceptanceHistoryTableGUI\__construct().
ilGlobalPageTemplate::addLightbox | ( | $a_html, | |
$a_id | |||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 318 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::addOnLoadCode | ( | $a_code, | |
$a_batch = 2 |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 163 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::blockExists | ( | $blockname | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 447 of file class.ilGlobalPageTemplate.php.
Referenced by addBlockFile(), parseCurrentBlock(), setCurrentBlock(), and touchBlock().
ilGlobalPageTemplate::clearHeader | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 579 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::enableDragDropFileUpload | ( | $a_ref_id | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 291 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::fillJavaScriptFiles | ( | $a_force = false | ) |
bool | $a_force |
Implements ilGlobalTemplateInterface.
Definition at line 561 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::get | ( | $part = "DEFAULT" | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 376 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::getOnLoadCodeForAsynch | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 542 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::getSpecial | ( | $part = "DEFAULT" , |
|
$add_error_mess = false , |
|||
$handle_referer = false , |
|||
$add_ilias_footer = false , |
|||
$add_standard_elements = false , |
|||
$a_main_menu = true , |
|||
$a_tabs = true |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 606 of file class.ilGlobalPageTemplate.php.
|
private |
Old method from global template fixing #26968.
Definition at line 615 of file class.ilGlobalPageTemplate.php.
References $_GET, $_POST, $_SERVER, and $_SESSION.
Referenced by printToStdout().
ilGlobalPageTemplate::hideFooter | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 503 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::loadStandardTemplate | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 466 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::parseCurrentBlock | ( | $blockname = "DEFAULT" | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 418 of file class.ilGlobalPageTemplate.php.
References blockExists().
|
private |
Definition at line 95 of file class.ilGlobalPageTemplate.php.
References ilUtil\getNewContentStyleSheetLocation(), and ilUtil\getStyleSheetLocation().
Referenced by printToStdout(), and printToString().
|
private |
Definition at line 73 of file class.ilGlobalPageTemplate.php.
References ilSessionReminder\createInstanceWithCurrentUserSession(), ilUIFramework\init(), ilBuddySystemGUI\initializeFrontend(), ilOnScreenChatGUI\initializeFrontend(), iljQueryUtil\initjQuery(), iljQueryUtil\initjQueryUI(), and ILIAS\Accessibility\GlobalPageHandler\initPage().
Referenced by printToStdout(), and printToString().
|
private |
Definition at line 62 of file class.ilGlobalPageTemplate.php.
References ILIAS\FileDelivery\http(), and ILIAS_HTTP_PATH.
Referenced by printToStdout(), and printToString().
ilGlobalPageTemplate::printToStdout | ( | $part = "DEFAULT" , |
|
$a_fill_tabs = true , |
|||
$a_skip_main_menu = false |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 105 of file class.ilGlobalPageTemplate.php.
References ilObjLanguageAccess\_saveUsages(), handleReferer(), prepareBasicCSS(), prepareBasicJS(), prepareOutputHeaders(), print, and ui().
ilGlobalPageTemplate::printToString | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 125 of file class.ilGlobalPageTemplate.php.
References prepareBasicCSS(), prepareBasicJS(), prepareOutputHeaders(), and ui().
Referenced by ILIAS\Blog\Export\BlogHtmlExport\writeExportFile().
ilGlobalPageTemplate::resetHeaderBlock | ( | $a_reset_header_action = true | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 521 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::resetJavascript | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 367 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setAlertProperties | ( | array | $a_props | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 271 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setBanner | ( | string | $img_src | ) |
Definition at line 260 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setBodyClass | ( | $a_class = "" | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 570 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setContent | ( | $a_html | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 184 of file class.ilGlobalPageTemplate.php.
Referenced by ILIAS\Blog\Export\BlogHtmlExport\writeExportFile().
ilGlobalPageTemplate::setCurrentBlock | ( | $blockname = "DEFAULT" | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 385 of file class.ilGlobalPageTemplate.php.
References blockExists().
ilGlobalPageTemplate::setDescription | ( | $a_descr | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 244 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setFilter | ( | string | $filter | ) |
string | $filter |
Definition at line 213 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setHeaderActionMenu | ( | $a_header | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 300 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setHeaderPageTitle | ( | $a_title | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 309 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setLeftContent | ( | $a_html | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 193 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setLeftNavContent | ( | $a_content | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 512 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setLocator | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 475 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setLoginTargetPar | ( | $a_val | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 530 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setOnScreenMessage | ( | $a_type, | |
$a_txt, | |||
$a_keep = false |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 280 of file class.ilGlobalPageTemplate.php.
References $a_type.
ilGlobalPageTemplate::setPageFormAction | ( | $a_action | ) |
$a_action |
Implements ilGlobalTemplateInterface.
Definition at line 327 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setPermanentLink | ( | $a_type, | |
$a_id, | |||
$a_append = "" , |
|||
$a_target = "" , |
|||
$a_title = "" |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 484 of file class.ilGlobalPageTemplate.php.
References $a_type, and ilLink\_getStaticLink().
ilGlobalPageTemplate::setRightContent | ( | $a_html | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 202 of file class.ilGlobalPageTemplate.php.
Referenced by ILIAS\Blog\Export\BlogHtmlExport\writeExportFile().
ilGlobalPageTemplate::setSubTabs | ( | $a_tabs_html | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 597 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setTabs | ( | $a_tabs_html | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 588 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setTitle | ( | $a_title, | |
$hidden = false |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 225 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setTitleIcon | ( | $a_icon_path, | |
$a_icon_desc = "" |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 253 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setTreeFlatIcon | ( | $a_link, | |
$a_mode | |||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 494 of file class.ilGlobalPageTemplate.php.
ilGlobalPageTemplate::setVariable | ( | $variable, | |
$value = '' |
|||
) |
$variable | ||
string | $value |
Implements ilGlobalTemplateInterface.
Definition at line 353 of file class.ilGlobalPageTemplate.php.
References addCss().
ilGlobalPageTemplate::touchBlock | ( | $blockname | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 402 of file class.ilGlobalPageTemplate.php.
References blockExists().
|
private |
Definition at line 32 of file class.ilGlobalPageTemplate.php.
Referenced by __construct().
|
private |
Definition at line 28 of file class.ilGlobalPageTemplate.php.
Referenced by __construct().
|
staticprivate |
Definition at line 21 of file class.ilGlobalPageTemplate.php.
|
private |
Definition at line 40 of file class.ilGlobalPageTemplate.php.
|
private |
Definition at line 44 of file class.ilGlobalPageTemplate.php.
|
private |
Definition at line 36 of file class.ilGlobalPageTemplate.php.
Referenced by __construct().