ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
special template class to simplify handling of ITX/PEAR More...
Public Member Functions | |
__construct ( $file, $flag1, $flag2, $in_module=false, $vars="DEFAULT", $plugin=false, $a_use_cache=true) | |
constructor More... | |
init () | |
setAddFooter ($value) | |
getAddFooter () | |
getAsynch () | |
Use this for final get before sending asynchronous output (ajax) per echo to output. More... | |
get ( $part="DEFAULT", $add_error_mess=false, $handle_referer=false, $add_ilias_footer=false, $add_standard_elements=false, $a_main_menu=true, $a_tabs=true) | |
??? public More... | |
setMessage ($a_type, $a_txt, $a_keep=false) | |
Set message. More... | |
hasMessage ($a_type) | |
fillMessage () | |
getMessageHTML ($a_txt, $a_type="info") | |
Get HTML for a system message. More... | |
getContentType () | |
Get the content type for the template output. More... | |
setContentType ($a_content_type="text/html") | |
Set the content type for the template output. More... | |
show ($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false) | |
fillContentLanguage () | |
Add current user language to meta tags. More... | |
fillWindowTitle () | |
getTabsHTML () | |
Get tabs HTML. More... | |
fillTabs () | |
fillToolbar () | |
fillPageFormAction () | |
fillJavaScriptFiles ($a_force=false) | |
fillCssFiles ($a_force=false) | |
Fill in the css file tags. More... | |
fillInlineCss () | |
Fill in the inline css. More... | |
setContentStyleSheet ($a_style) | |
Set content style (used for page content editor) More... | |
fillContentStyle () | |
Fill Content Style. More... | |
getMainMenu () | |
fillMainMenu () | |
initHelp () | |
Init help. More... | |
addILIASFooter () | |
add ILIAS footer More... | |
handleReferer () | |
TODO: this is nice, but shouldn't be done here (-> maybe at the end of ilias.php!?, alex) More... | |
blockExists ($a_blockname) | |
check if block exists in actual template private More... | |
fillVars () | |
all template vars defined in $vars will be replaced automatically without setting and parsing them with setVariable & parseCurrentBlock private More... | |
setCurrentBlock ($part="DEFAULT") | |
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt. More... | |
touchBlock ($block) | |
overwrites ITX::touchBlock. More... | |
parseCurrentBlock ($part="DEFAULT") | |
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public. More... | |
replaceFromDatabase (&$DB, $block, $conv, $select="default") | |
??? TODO: Adjust var names to ilias. More... | |
prepareForFormular ($vars) | |
Wird angewendet, wenn die Daten in ein Formular replaced werden sollen, Dann wird erst noch ein htmlspecialchars drumherum gemacht. More... | |
replace () | |
??? public More... | |
replaceDefault () | |
??? public More... | |
checkTopic ($a_block, $a_topic) | |
checks for a topic in the template private More... | |
includeNavigation () | |
check if there is a NAVIGATION-topic public More... | |
includeTree () | |
check if there is a TREE-topic public More... | |
fileExists ($filename) | |
check if a file exists public More... | |
addBlockFile ($var, $block, $tplname, $in_module=false) | |
overwrites ITX::addBlockFile public More... | |
loadTemplatefile ( $filename, $removeUnknownVariables=true, $removeEmptyBlocks=true) | |
Reads a template file from the disk. More... | |
getTemplatePath ($a_tplname, $a_in_module=false, $a_plugin=false) | |
builds a full template path with template and module name More... | |
getTemplateIdentifier ($a_tplname, $a_in_module=false) | |
get a unique template identifier More... | |
setHeaderPageTitle ($a_title) | |
setStyleSheetLocation ($a_stylesheet) | |
setNewContentStyleSheetLocation ($a_stylesheet) | |
getStandardTemplate () | |
setTitle ($a_title) | |
sets title in standard template More... | |
setTitleUrl ($a_url) | |
sets title url in standard template More... | |
setTitleColor ($a_val) | |
Set title color. More... | |
getTitleColor () | |
Get title color. More... | |
setAlertProperties (array $a_props) | |
Set alert properties. More... | |
clearHeader () | |
Clear header. More... | |
setTitleIcon ($a_icon_path, $a_icon_desc="") | |
set title icon More... | |
setBodyClass ($a_class="") | |
fillBodyClass () | |
setPageFormAction ($a_action) | |
setDescription ($a_descr) | |
sets title in standard template More... | |
stopTitleFloating () | |
set stop floating (if no tabs are used) More... | |
setHeaderActionMenu ($a_header) | |
Set header action menu. More... | |
getHeaderActionMenu () | |
Get header action menu. More... | |
setContent ($a_html) | |
sets content for standard template More... | |
fillMainContent () | |
Fill main content. More... | |
setRightContent ($a_html) | |
sets content of right column More... | |
setLeftContent ($a_html) | |
sets content of left column More... | |
setLeftNavContent ($a_content) | |
Sets content of left navigation column. More... | |
fillLeftNav () | |
Fill left navigation frame. 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... | |
setUpperIcon ($a_link, $a_frame="") | |
sets icon to upper level More... | |
setLoginTargetPar ($a_val) | |
Set target parameter for login (public sector). More... | |
getLoginTargetPar () | |
Get target parameter for login. More... | |
fillScreenReaderFocus () | |
Accessibility focus for screen readers. More... | |
fillSideIcons () | |
Fill side icons (upper icon, tree icon, webfolder icon) More... | |
setMountWebfolderIcon ($a_ref_id) | |
shows icon for mounting a webfolder More... | |
setTreeFlatIcon ($a_link, $a_mode) | |
set tree/flat icon 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... | |
resetJavascript () | |
Reset javascript files. More... | |
resetCss () | |
Reset css files. More... | |
addOnLoadCode ($a_code, $a_batch=2) | |
Add on load code. More... | |
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... | |
addLightbox ($a_html, $a_id) | |
Add lightbox html. More... | |
fillLightbox () | |
Fill lightbox content. More... | |
setPageActions ($a_page_actions_html) | |
Show admin view button. More... | |
setEditPageButton ($a_link, $a_txt, $a_frame) | |
Show admin view button. More... | |
addAdminPanelCommand ($a_cmd, $a_txt, $a_arrow=false) | |
Add a command to the admin panel. More... | |
addAdminPanelToolbar (ilToolbarGUI $toolb, $a_bottom_panel=true, $a_arrow=false) | |
Add admin panel commands as toolbar. More... | |
fillAdminPanel () | |
Put admin panel into template: More... | |
setPermanentLink ($a_type, $a_id, $a_append="", $a_target="", $a_title="") | |
fillPermanentLink () | |
Fill in permanent link. More... | |
fillOnLoadCode () | |
Fill add on load code. More... | |
getOnLoadCodeForAsynch () | |
Get js onload code for ajax calls. More... | |
setBackgroundColor ($a_bg_color) | |
setBanner ($a_img, $a_width=1370, $a_height=100, $a_export=false) | |
Set banner. More... | |
resetHeaderBlock ($a_reset_header_action=true) | |
Set variable. More... | |
enableDragDropFileUpload ($a_ref_id) | |
Enables the file upload into this object by dropping a file. More... | |
__construct ($file, $flag1, $flag2, $in_module=false, $vars="DEFAULT") | |
constructor More... | |
getTemplatePath ($a_tplname, $a_in_module=false, $a_plugin=false) | |
builds a full template path with template and module name More... | |
addBlockFile ($var, $block, $tplname, $in_module=false) | |
show ($part="DEFAULT") | |
public More... | |
getMessageHTML ($a_txt, $a_type="info") | |
Get HTML for a system message. More... | |
setCurrentBlock ($part="DEFAULT") | |
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt. More... | |
touchBlock ($block) | |
overwrites ITX::touchBlock. More... | |
parseCurrentBlock ($part="DEFAULT") | |
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public. More... | |
setMessage ($a_type, $a_txt, $a_keep=false) | |
Set message. More... | |
fillMessage () | |
blockExists ($a_blockname) | |
check if block exists in actual template private More... | |
addJavaScript ($a_js_file) | |
Add a javascript file that should be included in the header. More... | |
fillJavaScriptFiles () | |
addCss ($a_css_file, $media="screen") | |
Add a css file that should be included in the header. More... | |
fillCssFiles ($a_force=false) | |
Fill in the css file tags. More... | |
get ($part="DEFAULT") | |
Public Member Functions inherited from HTML_Template_ITX | |
__construct ($root='') | |
Builds some complex regexps and calls the constructor of the parent class. More... | |
init () | |
replaceBlock ($block, $template, $keep_content=false) | |
Replaces an existing block with new content. More... | |
replaceBlockfile ($block, $filename, $keep_content=false) | |
Replaces an existing block with new content from a file. More... | |
addBlock ($placeholder, $blockname, $template) | |
Adds a block to the template changing a variable placeholder to a block placeholder. More... | |
addBlockfile ($placeholder, $blockname, $filename) | |
Adds a block taken from a file to the template changing a variable placeholder to a block placeholder. More... | |
placeholderExists ($placeholder, $block='') | |
Returns the name of the (first) block that contains the specified placeholder. More... | |
performCallback () | |
Checks the list of function calls in the template and calls their callback function. More... | |
getFunctioncalls () | |
Returns a list of all function calls in the current template. More... | |
setFunctioncontent ($functionID, $replacement) | |
Replaces a function call with the given replacement. More... | |
setCallbackFunction ($tplfunction, $callbackfunction, $callbackobject='', $expandCallbackParameters=false) | |
Sets a callback function. More... | |
setCallbackFuntiontable ($functions) | |
Sets the Callback function lookup table. More... | |
removeBlockData ($block) | |
Recursively removes all data assiciated with a block, including all inner blocks. More... | |
getBlocklist () | |
Returns a list of blocknames in the template. More... | |
blockExists ($blockname) | |
Checks wheter a block exists. More... | |
getBlockvariables ($block) | |
Returns a list of variables of a block. More... | |
BlockvariableExists ($block, $variable) | |
Checks wheter a block variable exists. More... | |
buildFunctionlist () | |
Builds a functionlist from the template. More... | |
getValue ($code, $delimiter) | |
Truncates the given code from the first occurence of $delimiter but ignores $delimiter enclosed by " or '. More... | |
deleteFromBlockvariablelist ($block, $variables) | |
Deletes one or many variables from the block variable list. More... | |
updateBlockvariablelist ($block) | |
Updates the variable list of a block. More... | |
findPlaceholderBlocks ($variable) | |
Returns an array of blocknames where the given variable placeholder is used. More... | |
warning ($message, $file='', $line=0) | |
Handles warnings, saves them to $warn and prints them or calls die() depending on the flags. More... | |
Public Member Functions inherited from HTML_Template_IT | |
__construct ($root='', $options=null) | |
Builds some complex regular expressions and optinally sets the file root directory. More... | |
setOption ($option, $value) | |
Sets the option for the template class. More... | |
setOptions ($options) | |
Sets the options for the template class. More... | |
show ($block='__global__') | |
Print a certain block with all replacements done. More... | |
get ($block='__global__') | |
Returns a block with all replacements done. More... | |
parse ($block='__global__', $flag_recursion=false) | |
Parses the given block. More... | |
parseCurrentBlock () | |
Parses the current block. More... | |
setVariable ($variable, $value='') | |
Sets a variable value. More... | |
setCurrentBlock ($block='__global__') | |
Sets the name of the current block that is the block where variables are added. More... | |
touchBlock ($block) | |
Preserves an empty block even if removeEmptyBlocks is true. More... | |
init () | |
Clears all datafields of the object and rebuild the internal blocklist. More... | |
free () | |
Clears all datafields of the object. More... | |
setTemplate ( $template, $removeUnknownVariables=true, $removeEmptyBlocks=true) | |
Sets the template. More... | |
loadTemplatefile ( $filename, $removeUnknownVariables=true, $removeEmptyBlocks=true) | |
Reads a template file from the disk. More... | |
setRoot ($root) | |
Sets the file root. More... | |
buildBlockvariablelist () | |
Build a list of all variables within of a block. More... | |
getGlobalvariables () | |
Returns a list of all global variables. More... | |
findBlocks ($string) | |
Recusively builds a list of all blocks within the template. More... | |
getFile ($filename) | |
Reads a file from disk and returns its content. More... | |
_addPregDelimiters ($str) | |
Adds delimiters to a string, so it can be used as a pattern in preg_* functions. More... | |
_preserveOpeningDelimiter ($str) | |
Replaces an opening delimiter by a special string. More... | |
errorMessage ($value, $blockname='') | |
Return a textual error message for a IT error code. More... | |
Static Public Member Functions | |
static | buildLoginTarget () |
Add current object (repository/workspace) as target for login url. More... | |
Data Fields | |
const | MESSAGE_TYPE_FAILURE = 'failure' |
const | MESSAGE_TYPE_INFO = "info" |
const | MESSAGE_TYPE_SUCCESS = "success" |
const | MESSAGE_TYPE_QUESTION = "question" |
$contenttype | |
$vars | |
$activeBlock | |
$js_files = array(0 => "./Services/JavaScript/js/Basic.js") | |
$js_files_vp = array("./Services/JavaScript/js/Basic.js" => true) | |
$js_files_batch = array("./Services/JavaScript/js/Basic.js" => 1) | |
$css_files = array() | |
$inline_css = array() | |
$admin_panel_commands = array() | |
Data Fields inherited from HTML_Template_ITX | |
$warn = array() | |
$printWarning = false | |
$haltOnWarning = false | |
$checkblocknameRegExp = '' | |
$functionPrefix = 'func_' | |
$functionnameRegExp = '[_a-zA-Z]+[A-Za-z_0-9]*' | |
$functionRegExp = '' | |
$functions = array() | |
$callback = array() | |
Data Fields inherited from HTML_Template_IT | |
$err = array() | |
$clearCache = false | |
$openingDelimiter = '{' | |
$closingDelimiter = '}' | |
$blocknameRegExp = '[\.0-9A-Za-z_-]+' | |
$variablenameRegExp = '[\.0-9A-Za-z_-]+' | |
$variablesRegExp = '' | |
$removeVariablesRegExp = '' | |
RegExp used to strip unused variable placeholder. More... | |
$removeUnknownVariables = true | |
$removeEmptyBlocks = true | |
$blockRegExp = '' | |
$currentBlock = '__global__' | |
$template = '' | |
$blocklist = array() | |
$blockdata = array() | |
$blockvariables = array() | |
$blockinner = array() | |
$touchedBlocks = array() | |
List of blocks to preverse even if they are "empty". More... | |
$_hiddenBlocks = array() | |
List of blocks which should not be shown even if not "empty". More... | |
$variableCache = array() | |
$clearCacheOnParse = false | |
$fileRoot = '' | |
$flagBlocktrouble = false | |
$flagGlobalParsed = false | |
$flagCacheTemplatefile = true | |
$lastTemplatefile = '' | |
EXPERIMENTAL! FIXME! More... | |
$_options | |
$_options['preserve_data'] Whether to substitute variables and remove empty placeholders in data passed through setVariable (see also bugs #20199, #21951). More... | |
Protected Member Functions | |
fillJavascriptFile ($file, $vers) | |
Protected Attributes | |
$tpl | |
$message = array() | |
$title_desc = "" | |
$title_url = "" | |
$upper_icon = "" | |
$tree_flat_link = "" | |
$mount_webfolder = "" | |
$stop_floating = "" | |
$page_form_action = "" | |
$page_actions = array() | |
$permanent_link = false | |
$content_style_sheet = "" | |
$main_content = "" | |
$title_alerts = array() | |
$header_action | |
$lightbox = array() | |
$standard_template_loaded = false | |
$translation_linked = false | |
Static Protected Attributes | |
static | $message_types |
static | $il_cache = array() |
Private Member Functions | |
fillNewContentStyle () | |
Fill Content Style. More... | |
variableExists ($a_variablename) | |
fillHeader () | |
Fill header. More... | |
fillStopFloating () | |
stop floating More... | |
fillRightContent () | |
Fill right content. More... | |
setCenterColumnClass () | |
fillLeftContent () | |
Fill left content. More... | |
getMessageTextForType ($m) | |
Private Attributes | |
$addFooter | |
special template class to simplify handling of ITX/PEAR
Definition at line 13 of file class.ilTemplate.php.
ilTemplate::__construct | ( | $file, | |
$flag1, | |||
$flag2, | |||
$in_module = false , |
|||
$vars = "DEFAULT" , |
|||
$plugin = false , |
|||
$a_use_cache = true |
|||
) |
constructor
string | $file | templatefile (mit oder ohne pfad) |
boolean | $flag1 | remove unknown variables |
boolean | $flag2 | remove empty blocks |
boolean | $in_module | should be set to true, if template file is in module subdirectory |
array | $vars | variables to replace public |
Definition at line 93 of file class.ilTemplate.php.
References $DIC, $ilErr, getTemplateIdentifier(), getTemplatePath(), loadTemplatefile(), setBodyClass(), and HTML_Template_IT\setOption().
ilTemplate::__construct | ( | $file, | |
$flag1, | |||
$flag2, | |||
$in_module = false , |
|||
$vars = "DEFAULT" |
|||
) |
constructor
string | $file | templatefile (mit oder ohne pfad) |
boolean | $flag1 | remove unknown variables |
boolean | $flag2 | remove empty blocks |
boolean | $in_module | should be set to true, if template file is in module subdirectory |
array | $vars | variables to replace public |
Definition at line 50 of file class.ilTemplate.php.
References getTemplatePath(), loadTemplatefile(), and HTML_Template_IT\setOption().
ilTemplate::addAdminPanelCommand | ( | $a_cmd, | |
$a_txt, | |||
$a_arrow = false |
|||
) |
Add a command to the admin panel.
Definition at line 2260 of file class.ilTemplate.php.
ilTemplate::addAdminPanelToolbar | ( | ilToolbarGUI | $toolb, |
$a_bottom_panel = true , |
|||
$a_arrow = false |
|||
) |
Add admin panel commands as toolbar.
ilToolbarGUI | $toolb | |
bool | $a_top_only |
Definition at line 2275 of file class.ilTemplate.php.
ilTemplate::addBlockFile | ( | $var, | |
$block, | |||
$tplname, | |||
$in_module = false |
|||
) |
Definition at line 125 of file class.ilTemplate.php.
References DEBUG, and getTemplatePath().
ilTemplate::addBlockFile | ( | $var, | |
$block, | |||
$tplname, | |||
$in_module = false |
|||
) |
overwrites ITX::addBlockFile public
string | ||
string | ||
string | $tplname | template name |
boolean | $in_module | should be set to true, if template file is in module subdirectory |
Definition at line 1340 of file class.ilTemplate.php.
References $DIC, $id, HTML_Template_IT\$template, HTML_Template_ITX\addBlock(), DEBUG, HTML_Template_IT\getFile(), ilPluginAdmin\getPluginObject(), getTemplateIdentifier(), getTemplatePath(), IL_COMP_SERVICE, and ilUIHookPluginGUI\KEEP.
Referenced by getStandardTemplate().
ilTemplate::addCss | ( | $a_css_file, | |
$media = "screen" |
|||
) |
Add a css file that should be included in the header.
Definition at line 413 of file class.ilTemplate.php.
ilTemplate::addCss | ( | $a_css_file, | |
$media = "screen" |
|||
) |
Add a css file that should be included in the header.
Definition at line 2200 of file class.ilTemplate.php.
ilTemplate::addILIASFooter | ( | ) |
add ILIAS footer
Definition at line 875 of file class.ilTemplate.php.
References $_GET, $_SERVER, $DIC, $f, $GLOBALS, $ilBench, $ilCtrl, $ilDB, $ilSetting, $l, $lng, $total, $url, ilObjLanguageAccess\_checkTranslate(), ilLink\_getStaticLink(), ilObjLanguageAccess\_getTranslationLink(), ilObjLanguageAccess\_isPageTranslation(), ilUtil\appendUrlParameterString(), getAddFooter(), ilSystemSupportContactsGUI\getFooterLink(), ilSystemSupportContactsGUI\getFooterText(), ilImprint\isActive(), ilUtil\secureUrl(), HTML_Template_IT\setVariable(), ilUtil\sortArray(), and ilValidatorAdapter\validate().
Referenced by get(), and show().
ilTemplate::addInlineCss | ( | $a_css, | |
$media = "screen" |
|||
) |
Add a css file that should be included in the header.
Definition at line 2210 of file class.ilTemplate.php.
ilTemplate::addJavaScript | ( | $a_js_file | ) |
Add a javascript file that should be included in the header.
Definition at line 389 of file class.ilTemplate.php.
ilTemplate::addJavaScript | ( | $a_js_file, | |
$a_add_version_parameter = true , |
|||
$a_batch = 2 |
|||
) |
Add a javascript file that should be included in the header.
Definition at line 2142 of file class.ilTemplate.php.
Referenced by assQuestionGUI\populateJavascriptFilesRequiredForWorkForm(), and assMultipleChoiceGUI\populateJavascriptFilesRequiredForWorkForm().
ilTemplate::addLightbox | ( | $a_html, | |
$a_id | |||
) |
Add lightbox html.
Definition at line 2218 of file class.ilTemplate.php.
ilTemplate::addOnLoadCode | ( | $a_code, | |
$a_batch = 2 |
|||
) |
Add on load code.
Definition at line 2188 of file class.ilTemplate.php.
Referenced by ilWikiPageGUI\initEditingJS().
ilTemplate::blockExists | ( | $a_blockname | ) |
check if block exists in actual template private
string | blockname |
Definition at line 380 of file class.ilTemplate.php.
ilTemplate::blockExists | ( | $a_blockname | ) |
check if block exists in actual template private
string | blockname |
Definition at line 1111 of file class.ilTemplate.php.
Referenced by fillBodyClass(), fillCssFiles(), fillInlineCss(), fillJavaScriptFiles(), fillScreenReaderFocus(), fillTabs(), get(), getTabsHTML(), ilTinyMCE\handleImgContextMenuItem(), setCenterColumnClass(), setTabs(), and show().
|
static |
Add current object (repository/workspace) as target for login url.
Definition at line 2451 of file class.ilTemplate.php.
References $_GET, $DIC, $ilUser, $tree, $type, ilObject\_lookupObjId(), and ilObject\_lookupType().
Referenced by ilMainMenuGUI\setTemplateVars().
ilTemplate::checkTopic | ( | $a_block, | |
$a_topic | |||
) |
checks for a topic in the template private
string | |
string |
Definition at line 1295 of file class.ilTemplate.php.
Referenced by includeNavigation(), and includeTree().
ilTemplate::clearHeader | ( | ) |
Clear header.
Definition at line 1646 of file class.ilTemplate.php.
References setAlertProperties(), setDescription(), setTitle(), and setTitleIcon().
ilTemplate::enableDragDropFileUpload | ( | $a_ref_id | ) |
Enables the file upload into this object by dropping a file.
Definition at line 2516 of file class.ilTemplate.php.
Referenced by resetHeaderBlock().
ilTemplate::fileExists | ( | $filename | ) |
check if a file exists public
Definition at line 1325 of file class.ilTemplate.php.
References $filename.
ilTemplate::fillAdminPanel | ( | ) |
Put admin panel into template:
Definition at line 2287 of file class.ilTemplate.php.
References $DIC, $lng, fillPageFormAction(), ilUtil\getImagePath(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillBodyClass | ( | ) |
Definition at line 1755 of file class.ilTemplate.php.
References blockExists(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillContentLanguage | ( | ) |
Add current user language to meta tags.
public
Definition at line 615 of file class.ilTemplate.php.
References $DIC, $ilUser, $lng, and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillContentStyle | ( | ) |
Fill Content Style.
Definition at line 814 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillCssFiles | ( | $a_force = false | ) |
Fill in the css file tags.
boolean | $a_force |
Definition at line 425 of file class.ilTemplate.php.
References $filename, blockExists(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
ilTemplate::fillCssFiles | ( | $a_force = false | ) |
Fill in the css file tags.
boolean | $a_force |
Definition at line 766 of file class.ilTemplate.php.
References $filename, blockExists(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
|
private |
Fill header.
Definition at line 1658 of file class.ilTemplate.php.
References $DIC, $header, $lng, getHeaderActionMenu(), getTitleColor(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), HTML_Template_IT\setVariable(), and ilUtil\stripScriptHTML().
Referenced by get(), and show().
ilTemplate::fillInlineCss | ( | ) |
Fill in the inline css.
boolean | $a_force |
Definition at line 790 of file class.ilTemplate.php.
References blockExists(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
|
protected |
string | $file | |
string | $vers |
Definition at line 149 of file class.ilTemplate.php.
References ilUtil\appendUrlParameterString(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by fillJavaScriptFiles().
ilTemplate::fillJavaScriptFiles | ( | ) |
Definition at line 396 of file class.ilTemplate.php.
References blockExists(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillJavaScriptFiles | ( | $a_force = false | ) |
Definition at line 728 of file class.ilTemplate.php.
References $DIC, $i, $ilSetting, blockExists(), and fillJavascriptFile().
|
private |
Fill left content.
Definition at line 1893 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillLeftNav | ( | ) |
Fill left navigation frame.
Definition at line 1917 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), HTML_Template_IT\setVariable(), and touchBlock().
Referenced by get(), and show().
ilTemplate::fillLightbox | ( | ) |
Fill lightbox content.
Definition at line 2229 of file class.ilTemplate.php.
References $html, and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillMainContent | ( | ) |
Fill main content.
Definition at line 1829 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillMainMenu | ( | ) |
Definition at line 852 of file class.ilTemplate.php.
References $DIC, $tpl, and variableExists().
Referenced by get(), and show().
ilTemplate::fillMessage | ( | ) |
Definition at line 331 of file class.ilTemplate.php.
References $lng, $m, $out, $txt, ilSession\clear(), ilSession\get(), and HTML_Template_IT\setVariable().
ilTemplate::fillMessage | ( | ) |
Definition at line 381 of file class.ilTemplate.php.
References $_SESSION, $DIC, $m, $out, $request, $txt, getMessageHTML(), getMessageTextForType(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
|
private |
Fill Content Style.
Definition at line 829 of file class.ilTemplate.php.
References ilUtil\getNewContentStyleSheetLocation(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillOnLoadCode | ( | ) |
Fill add on load code.
Definition at line 2375 of file class.ilTemplate.php.
References $code, $i, HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillPageFormAction | ( | ) |
Definition at line 718 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), HTML_Template_IT\setVariable(), and touchBlock().
Referenced by fillAdminPanel().
ilTemplate::fillPermanentLink | ( | ) |
Fill in permanent link.
Definition at line 2355 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable().
Referenced by get(), and show().
|
private |
Fill right content.
Definition at line 1847 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillScreenReaderFocus | ( | ) |
Accessibility focus for screen readers.
Definition at line 2016 of file class.ilTemplate.php.
References $DIC, $ilUser, blockExists(), and touchBlock().
Referenced by get(), and show().
ilTemplate::fillSideIcons | ( | ) |
Fill side icons (upper icon, tree icon, webfolder icon)
Definition at line 2030 of file class.ilTemplate.php.
References $DIC, $ilSetting, $lng, $mount_webfolder, ilFrameTargetInfo\_getFrame(), ilAccessKeyGUI\getAttribute(), ilUtil\getImagePath(), ilWebDAVUtil\getInstance(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), HTML_Template_IT\setVariable(), touchBlock(), ilAccessKey\TREE_OFF, and ilAccessKey\TREE_ON.
Referenced by get(), and show().
|
private |
stop floating
Definition at line 1789 of file class.ilTemplate.php.
References touchBlock().
Referenced by get(), and show().
ilTemplate::fillTabs | ( | ) |
Definition at line 688 of file class.ilTemplate.php.
References blockExists(), HTML_Template_IT\setVariable(), and touchBlock().
Referenced by get(), and show().
ilTemplate::fillToolbar | ( | ) |
Definition at line 703 of file class.ilTemplate.php.
References $DIC, HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillVars | ( | ) |
all template vars defined in $vars will be replaced automatically without setting and parsing them with setVariable & parseCurrentBlock private
Definition at line 1128 of file class.ilTemplate.php.
References $key, and HTML_Template_IT\setVariable().
Referenced by parseCurrentBlock(), and touchBlock().
ilTemplate::fillWindowTitle | ( | ) |
Definition at line 645 of file class.ilTemplate.php.
References $DIC, $ilSetting, HTML_Template_IT\setVariable(), and ilUtil\stripScriptHTML().
Referenced by get(), and show().
ilTemplate::get | ( | $part = "DEFAULT" , |
|
$add_error_mess = false , |
|||
$handle_referer = false , |
|||
$add_ilias_footer = false , |
|||
$add_standard_elements = false , |
|||
$a_main_menu = true , |
|||
$a_tabs = true |
|||
) |
??? public
string |
Definition at line 238 of file class.ilTemplate.php.
References $DIC, $html, ilObjLanguageAccess\_saveUsages(), addILIASFooter(), blockExists(), fillAdminPanel(), fillBodyClass(), fillContentLanguage(), fillContentStyle(), fillCssFiles(), fillHeader(), fillInlineCss(), fillJavaScriptFiles(), fillLeftContent(), fillLeftNav(), fillLightbox(), fillMainContent(), fillMainMenu(), fillMessage(), fillNewContentStyle(), fillOnLoadCode(), fillPermanentLink(), fillRightContent(), fillScreenReaderFocus(), fillSideIcons(), fillStopFloating(), fillTabs(), fillToolbar(), fillWindowTitle(), ILIAS\GlobalScreen\get(), getMainMenu(), ilPluginAdmin\getPluginObject(), getTabsHTML(), handleReferer(), IL_COMP_SERVICE, initHelp(), ilUIHookPluginGUI\KEEP, HTML_Template_IT\parseCurrentBlock(), setCenterColumnClass(), and setCurrentBlock().
Referenced by ilPDSelectedItemsBlockGUI\getViewBlockHtml().
ilTemplate::get | ( | $part = "DEFAULT" | ) |
Definition at line 445 of file class.ilTemplate.php.
References ILIAS\GlobalScreen\get().
ilTemplate::getAddFooter | ( | ) |
Definition at line 216 of file class.ilTemplate.php.
References $addFooter.
Referenced by addILIASFooter().
ilTemplate::getAsynch | ( | ) |
Use this for final get before sending asynchronous output (ajax) per echo to output.
Definition at line 226 of file class.ilTemplate.php.
References getContentType().
ilTemplate::getContentType | ( | ) |
Get the content type for the template output.
Definition at line 450 of file class.ilTemplate.php.
References $contenttype.
Referenced by getAsynch(), and show().
ilTemplate::getHeaderActionMenu | ( | ) |
Get header action menu.
Definition at line 1811 of file class.ilTemplate.php.
References $header_action.
Referenced by fillHeader().
ilTemplate::getLoginTargetPar | ( | ) |
Get target parameter for login.
Definition at line 2008 of file class.ilTemplate.php.
Referenced by getMainMenu().
ilTemplate::getMainMenu | ( | ) |
Definition at line 839 of file class.ilTemplate.php.
References $DIC, getLoginTargetPar(), and variableExists().
Referenced by get(), and show().
ilTemplate::getMessageHTML | ( | $a_txt, | |
$a_type = "info" |
|||
) |
Get HTML for a system message.
Definition at line 237 of file class.ilTemplate.php.
ilTemplate::getMessageHTML | ( | $a_txt, | |
$a_type = "info" |
|||
) |
Get HTML for a system message.
Definition at line 430 of file class.ilTemplate.php.
References $a_type, $DIC, and $lng.
Referenced by fillMessage(), and show().
|
private |
$m |
Definition at line 2527 of file class.ilTemplate.php.
References $_SESSION, $m, and $txt.
Referenced by fillMessage().
ilTemplate::getOnLoadCodeForAsynch | ( | ) |
Get js onload code for ajax calls.
Definition at line 2396 of file class.ilTemplate.php.
References $code, $i, and $js.
ilTemplate::getStandardTemplate | ( | ) |
Definition at line 1571 of file class.ilTemplate.php.
References addBlockFile(), ilUIFramework\init(), iljQueryUtil\initjQuery(), and iljQueryUtil\initjQueryUI().
ilTemplate::getTabsHTML | ( | ) |
Get tabs HTML.
Definition at line 675 of file class.ilTemplate.php.
References $DIC, and blockExists().
Referenced by get(), and show().
ilTemplate::getTemplateIdentifier | ( | $a_tplname, | |
$a_in_module = false |
|||
) |
get a unique template identifier
The identifier is common for default or customized skins but distincts templates of different services with the same name.
This is used by the UI plugin hook for template input/output
string | $a_tplname | template name |
string | $in_module | Component, e.g. "Modules/Forum" boolean $in_module or true, if component should be determined by ilCtrl |
Definition at line 1522 of file class.ilTemplate.php.
References $_GET, $DIC, $ilCtrl, and ILIAS_MODULE.
Referenced by __construct(), and addBlockFile().
ilTemplate::getTemplatePath | ( | $a_tplname, | |
$a_in_module = false , |
|||
$a_plugin = false |
|||
) |
builds a full template path with template and module name
string | $a_tplname | template name |
boolean | $in_module | should be set to true, if template file is in module subdirectory |
Definition at line 89 of file class.ilTemplate.php.
References $_GET, $ilCtrl, and ILIAS_MODULE.
ilTemplate::getTemplatePath | ( | $a_tplname, | |
$a_in_module = false , |
|||
$a_plugin = false |
|||
) |
builds a full template path with template and module name
string | $a_tplname | template name |
boolean | $in_module | should be set to true, if template file is in module subdirectory |
Definition at line 1447 of file class.ilTemplate.php.
References $_GET, $DIC, $ilCtrl, $style, ilStyleDefinition\getCurrentSkin(), ilStyleDefinition\getCurrentStyle(), and ILIAS_MODULE.
Referenced by __construct(), and addBlockFile().
ilTemplate::getTitleColor | ( | ) |
Get title color.
Definition at line 1628 of file class.ilTemplate.php.
Referenced by fillHeader().
ilTemplate::handleReferer | ( | ) |
TODO: this is nice, but shouldn't be done here (-> maybe at the end of ilias.php!?, alex)
Definition at line 1049 of file class.ilTemplate.php.
References $_GET, $_POST, $_SERVER, $_SESSION, $key, $path, and GuzzleHttp\Psr7\$protocol.
Referenced by get(), and show().
ilTemplate::hasMessage | ( | $a_type | ) |
ilTemplate::includeNavigation | ( | ) |
check if there is a NAVIGATION-topic public
Definition at line 1305 of file class.ilTemplate.php.
References checkTopic().
ilTemplate::includeTree | ( | ) |
check if there is a TREE-topic public
Definition at line 1315 of file class.ilTemplate.php.
References checkTopic().
ilTemplate::init | ( | ) |
Definition at line 161 of file class.ilTemplate.php.
References HTML_Template_IT\$blockdata, HTML_Template_IT\$blockinner, HTML_Template_IT\$blocklist, HTML_Template_IT\$blockvariables, HTML_Template_IT\$err, HTML_Template_IT\$flagBlocktrouble, HTML_Template_IT\buildBlockvariablelist(), HTML_Template_ITX\buildFunctionlist(), HTML_Template_IT\findBlocks(), and HTML_Template_IT\free().
ilTemplate::initHelp | ( | ) |
Init help.
Definition at line 865 of file class.ilTemplate.php.
References ilHelpGUI\initHelp().
Referenced by get(), and show().
ilTemplate::loadTemplatefile | ( | $filename, | |
$removeUnknownVariables = true , |
|||
$removeEmptyBlocks = true |
|||
) |
Reads a template file from the disk.
overwrites IT:loadTemplateFile to include the template input hook
string | name of the template file |
bool | how to handle unknown variables. |
bool | how to handle empty blocks. public |
Definition at line 1392 of file class.ilTemplate.php.
References $DIC, $filename, HTML_Template_IT\$removeEmptyBlocks, HTML_Template_IT\$removeUnknownVariables, HTML_Template_IT\$template, HTML_Template_IT\getFile(), ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, ilUIHookPluginGUI\KEEP, and HTML_Template_IT\setTemplate().
Referenced by __construct().
ilTemplate::parseCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public.
string |
Definition at line 290 of file class.ilTemplate.php.
References $activeBlock.
ilTemplate::parseCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public.
string |
Definition at line 1186 of file class.ilTemplate.php.
References $activeBlock, and fillVars().
Referenced by ilBTPopOverGUI\addButton(), ilContainerRenderer\addHeaderRow(), ilPDSelectedItemsBlockGUI\addSectionHeader(), ilContainerRenderer\addSeparatorRow(), ilContainerRenderer\addStandardRow(), ilPDSelectedItemsBlockGUI\getViewBlockHtml(), ilOrgUnitAuthorityInputGUI\insert(), ilChatroomAuthInputGUI\insert(), ilEMailInputGUI\insert(), ilCaptchaInputGUI\insert(), ilClozeGapInputBuilderGUI\insert(), ilSCORMExplorer\insertObject(), ilTestQuestionNavigationGUI\parseButtonsBlock(), ilTestQuestionNavigationGUI\parseNavigation(), ilAssQuestionPreviewGUI\populateGenericQuestionFeedback(), ilAssQuestionPreviewGUI\populateInstantResponseHeader(), ilAssQuestionPreviewGUI\populateNotesPanel(), ilAssQuestionPreviewGUI\populateReachedPointsOutput(), ilAssQuestionPreviewGUI\populateSolutionOutput(), ilAssQuestionPreviewGUI\populateSpecificQuestionFeedback(), ilTestQuestionNavigationGUI\renderActionsIcon(), ilTestQuestionNavigationGUI\renderButtonInstance(), ilAssLacLegendGUI\renderCommonLegendPart(), ilContainerRenderer\renderDetails(), ilAssLacLegendGUI\renderExample(), ilContainerRenderer\renderHelperGeneric(), ilTestQuestionNavigationGUI\renderIcon(), ilSurveyPageGUI\renderPageNode(), ilForumExportGUI\renderPostHtml(), ilAssLacLegendGUI\renderQuestSpecificLegendPart(), ilContainerRenderer\renderSelectAllBlock(), ilMainMenuGUI\renderStatusBox(), and ilKioskPageRenderer\setHeaderVars().
ilTemplate::prepareForFormular | ( | $vars | ) |
Wird angewendet, wenn die Daten in ein Formular replaced werden sollen, Dann wird erst noch ein htmlspecialchars drumherum gemacht.
public
string |
Definition at line 1250 of file class.ilTemplate.php.
ilTemplate::replace | ( | ) |
??? public
Definition at line 1270 of file class.ilTemplate.php.
References $key, and HTML_Template_IT\setVariable().
Referenced by replaceDefault(), and replaceFromDatabase().
ilTemplate::replaceDefault | ( | ) |
??? public
Definition at line 1283 of file class.ilTemplate.php.
References replace().
ilTemplate::replaceFromDatabase | ( | & | $DB, |
$block, | |||
$conv, | |||
$select = "default" |
|||
) |
??? TODO: Adjust var names to ilias.
This method wasn't used so far and isn't translated yet public
string | |
string | |
string | |
string |
Definition at line 1219 of file class.ilTemplate.php.
References $key, $res, $result, HTML_Template_IT\parseCurrentBlock(), replace(), and setCurrentBlock().
ilTemplate::resetCss | ( | ) |
ilTemplate::resetHeaderBlock | ( | $a_reset_header_action = true | ) |
Set variable.
Reset all header properties: title, icon, description, alerts, action menu
Definition at line 2499 of file class.ilTemplate.php.
References enableDragDropFileUpload(), setAlertProperties(), setDescription(), setHeaderActionMenu(), setTitle(), and setTitleIcon().
ilTemplate::resetJavascript | ( | ) |
Reset javascript files.
Definition at line 2166 of file class.ilTemplate.php.
ilTemplate::setAddFooter | ( | $value | ) |
Definition at line 206 of file class.ilTemplate.php.
ilTemplate::setAlertProperties | ( | array | $a_props | ) |
Set alert properties.
array | $a_props |
Definition at line 1638 of file class.ilTemplate.php.
Referenced by clearHeader(), and resetHeaderBlock().
ilTemplate::setBackgroundColor | ( | $a_bg_color | ) |
Definition at line 2413 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable().
ilTemplate::setBanner | ( | $a_img, | |
$a_width = 1370 , |
|||
$a_height = 100 , |
|||
$a_export = false |
|||
) |
Set banner.
string | $a_img | banner full path (background image) |
int | $a_width | banner width |
int | $a_height | banner height |
bool | $a_export |
Definition at line 2431 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
ilTemplate::setBodyClass | ( | $a_class = "" | ) |
Definition at line 1750 of file class.ilTemplate.php.
Referenced by __construct().
|
private |
Definition at line 1856 of file class.ilTemplate.php.
References blockExists(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::setContent | ( | $a_html | ) |
sets content for standard template
Definition at line 1819 of file class.ilTemplate.php.
ilTemplate::setContentStyleSheet | ( | $a_style | ) |
Set content style (used for page content editor)
Definition at line 806 of file class.ilTemplate.php.
ilTemplate::setContentType | ( | $a_content_type = "text/html" | ) |
Set the content type for the template output.
Set the content type for the template output Usually this is text/html. For MathML output the content type should be set to text/xml
string | $a_content_type | Content type public |
Definition at line 465 of file class.ilTemplate.php.
ilTemplate::setCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
public
string |
Definition at line 256 of file class.ilTemplate.php.
ilTemplate::setCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
public
string |
Definition at line 1152 of file class.ilTemplate.php.
Referenced by ilBTPopOverGUI\addButton(), ilContainerRenderer\addHeaderRow(), ilPDSelectedItemsBlockGUI\addSectionHeader(), ilContainerRenderer\addSeparatorRow(), ilContainerRenderer\addStandardRow(), fillAdminPanel(), fillBodyClass(), fillContentStyle(), fillCssFiles(), fillHeader(), fillInlineCss(), fillJavascriptFile(), fillJavaScriptFiles(), fillLeftContent(), fillLeftNav(), fillOnLoadCode(), fillPageFormAction(), fillRightContent(), fillSideIcons(), fillToolbar(), get(), ilPDSelectedItemsBlockGUI\getViewBlockHtml(), ilOrgUnitAuthorityInputGUI\insert(), ilChatroomAuthInputGUI\insert(), ilEMailInputGUI\insert(), ilCaptchaInputGUI\insert(), ilClozeGapInputBuilderGUI\insert(), ilSCORMExplorer\insertObject(), ilTestQuestionNavigationGUI\parseButtonsBlock(), ilTestQuestionNavigationGUI\parseNavigation(), ilAssQuestionPreviewGUI\populateGenericQuestionFeedback(), ilAssQuestionPreviewGUI\populateInstantResponseHeader(), ilAssQuestionPreviewGUI\populateNotesPanel(), ilAssQuestionPreviewGUI\populateReachedPointsOutput(), ilAssQuestionPreviewGUI\populateSolutionOutput(), ilAssQuestionPreviewGUI\populateSpecificQuestionFeedback(), ilTestQuestionNavigationGUI\renderActionsIcon(), ilTestQuestionNavigationGUI\renderButtonInstance(), ilAssLacLegendGUI\renderCommonLegendPart(), ilContainerRenderer\renderDetails(), ilAssLacLegendGUI\renderExample(), ilContainerRenderer\renderHelperGeneric(), ilTestQuestionNavigationGUI\renderIcon(), ilSurveyPageGUI\renderPageNode(), ilForumExportGUI\renderPostHtml(), ilAssLacLegendGUI\renderQuestSpecificLegendPart(), ilContainerRenderer\renderSelectAllBlock(), ilMainMenuGUI\renderStatusBox(), replaceFromDatabase(), setBanner(), setCenterColumnClass(), ilKioskPageRenderer\setHeaderVars(), show(), and touchBlock().
ilTemplate::setDescription | ( | $a_descr | ) |
sets title in standard template
Definition at line 1772 of file class.ilTemplate.php.
Referenced by clearHeader(), and resetHeaderBlock().
ilTemplate::setEditPageButton | ( | $a_link, | |
$a_txt, | |||
$a_frame | |||
) |
Show admin view button.
Definition at line 2250 of file class.ilTemplate.php.
ilTemplate::setHeaderActionMenu | ( | $a_header | ) |
Set header action menu.
string | $a_gui | $a_header |
Definition at line 1801 of file class.ilTemplate.php.
Referenced by resetHeaderBlock().
ilTemplate::setHeaderPageTitle | ( | $a_title | ) |
Definition at line 1555 of file class.ilTemplate.php.
References ilUtil\stripScriptHTML().
ilTemplate::setLeftContent | ( | $a_html | ) |
sets content of left column
Definition at line 1885 of file class.ilTemplate.php.
ilTemplate::setLeftNavContent | ( | $a_content | ) |
Sets content of left navigation column.
Definition at line 1909 of file class.ilTemplate.php.
References $a_content.
ilTemplate::setLocator | ( | ) |
Insert locator.
Definition at line 1930 of file class.ilTemplate.php.
References $DIC, $html, ilMainMenuGUI\MODE_TOPBAR_ONLY, ilMainMenuGUI\MODE_TOPBAR_REDUCED, and HTML_Template_IT\setVariable().
ilTemplate::setLoginTargetPar | ( | $a_val | ) |
Set target parameter for login (public sector).
This is used by the main menu
Definition at line 2000 of file class.ilTemplate.php.
ilTemplate::setMessage | ( | $a_type, | |
$a_txt, | |||
$a_keep = false |
|||
) |
Set message.
Please use ilUtil::sendInfo(), ilUtil::sendSuccess() and ilUtil::sendFailure()
Definition at line 316 of file class.ilTemplate.php.
References $a_type, and ilSession\set().
ilTemplate::setMessage | ( | $a_type, | |
$a_txt, | |||
$a_keep = false |
|||
) |
Set message.
Please use ilUtil::sendInfo(), ilUtil::sendSuccess() and ilUtil::sendFailure()
string | $a_type | ::MESSAGE_TYPE_SUCCESS, ::MESSAGE_TYPE_FAILURE,, ::MESSAGE_TYPE_QUESTION, ::MESSAGE_TYPE_INFO |
string | $a_txt | The message to be sent |
bool | $a_keep | Keep this message over one redirect |
Definition at line 361 of file class.ilTemplate.php.
References $_SESSION, and $a_type.
ilTemplate::setMountWebfolderIcon | ( | $a_ref_id | ) |
shows icon for mounting a webfolder
Definition at line 2122 of file class.ilTemplate.php.
ilTemplate::setNewContentStyleSheetLocation | ( | $a_stylesheet | ) |
Definition at line 1566 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable().
ilTemplate::setPageActions | ( | $a_page_actions_html | ) |
Show admin view button.
Definition at line 2242 of file class.ilTemplate.php.
ilTemplate::setPageFormAction | ( | $a_action | ) |
Definition at line 1764 of file class.ilTemplate.php.
ilTemplate::setPermanentLink | ( | $a_type, | |
$a_id, | |||
$a_append = "" , |
|||
$a_target = "" , |
|||
$a_title = "" |
|||
) |
ilTemplate::setRightContent | ( | $a_html | ) |
sets content of right column
Definition at line 1839 of file class.ilTemplate.php.
ilTemplate::setStyleSheetLocation | ( | $a_stylesheet | ) |
Definition at line 1561 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable().
ilTemplate::setSubTabs | ( | $a_tabs_html | ) |
sets subtabs in standard template
Definition at line 1982 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable().
ilTemplate::setTabs | ( | $a_tabs_html | ) |
sets tabs in standard template
Definition at line 1968 of file class.ilTemplate.php.
References blockExists(), HTML_Template_IT\setVariable(), and touchBlock().
ilTemplate::setTitle | ( | $a_title | ) |
sets title in standard template
Definition at line 1599 of file class.ilTemplate.php.
References ilUtil\stripScriptHTML().
Referenced by clearHeader(), and resetHeaderBlock().
ilTemplate::setTitleColor | ( | $a_val | ) |
ilTemplate::setTitleIcon | ( | $a_icon_path, | |
$a_icon_desc = "" |
|||
) |
set title icon
Definition at line 1744 of file class.ilTemplate.php.
Referenced by clearHeader(), and resetHeaderBlock().
ilTemplate::setTitleUrl | ( | $a_url | ) |
sets title url in standard template
Definition at line 1608 of file class.ilTemplate.php.
ilTemplate::setTreeFlatIcon | ( | $a_link, | |
$a_mode | |||
) |
set tree/flat icon
string | link target |
strong | mode ("tree" | "flat") |
Definition at line 2133 of file class.ilTemplate.php.
ilTemplate::setUpperIcon | ( | $a_link, | |
$a_frame = "" |
|||
) |
sets icon to upper level
Definition at line 1990 of file class.ilTemplate.php.
ilTemplate::show | ( | $part = "DEFAULT" | ) |
public
string |
Definition at line 144 of file class.ilTemplate.php.
References $_GET, $_POST, $_SERVER, $key, $m, $out, $path, GuzzleHttp\Psr7\$protocol, $txt, blockExists(), ilSession\clear(), fillCssFiles(), fillJavaScriptFiles(), ilSession\get(), getMessageHTML(), ilSession\set(), and HTML_Template_IT\setVariable().
ilTemplate::show | ( | $part = "DEFAULT" , |
|
$a_fill_tabs = true , |
|||
$a_skip_main_menu = false |
|||
) |
string | $part | |
bool | $a_fill_tabs | fill template variable {TABS} with content of ilTabs |
bool | $a_skip_main_menu |
Definition at line 476 of file class.ilTemplate.php.
References $DIC, $html, $http, GuzzleHttp\Psr7\$stream, $tpl, ilObjLanguageAccess\_saveUsages(), addILIASFooter(), blockExists(), exit, fillAdminPanel(), fillBodyClass(), fillContentLanguage(), fillContentStyle(), fillCssFiles(), fillHeader(), fillInlineCss(), fillJavaScriptFiles(), fillLeftContent(), fillLeftNav(), fillLightbox(), fillMainContent(), fillMainMenu(), fillMessage(), fillNewContentStyle(), fillOnLoadCode(), fillPermanentLink(), fillRightContent(), fillScreenReaderFocus(), fillSideIcons(), fillStopFloating(), fillTabs(), fillToolbar(), fillWindowTitle(), ILIAS\GlobalScreen\get(), getContentType(), getMainMenu(), ilPluginAdmin\getPluginObject(), getTabsHTML(), handleReferer(), IL_COMP_SERVICE, ilYuiUtil\initDom(), initHelp(), ilUIHookPluginGUI\KEEP, ILIAS\Filesystem\Stream\Streams\ofString(), HTML_Template_IT\parseCurrentBlock(), setCenterColumnClass(), setCurrentBlock(), and variableExists().
ilTemplate::stopTitleFloating | ( | ) |
set stop floating (if no tabs are used)
Definition at line 1781 of file class.ilTemplate.php.
ilTemplate::touchBlock | ( | $block | ) |
overwrites ITX::touchBlock.
public
string |
Definition at line 273 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), and setCurrentBlock().
ilTemplate::touchBlock | ( | $block | ) |
overwrites ITX::touchBlock.
public
string |
Definition at line 1169 of file class.ilTemplate.php.
References fillVars(), HTML_Template_IT\parseCurrentBlock(), and setCurrentBlock().
Referenced by ilContainerRenderer\addHeaderRow(), ilPDSelectedItemsBlockGUI\addSectionHeader(), ilContainerRenderer\addStandardRow(), fillLeftNav(), fillPageFormAction(), fillScreenReaderFocus(), fillSideIcons(), fillStopFloating(), fillTabs(), ilTinyMCE\handleImgContextMenuItem(), ilSurveyPageGUI\renderPageNode(), and setTabs().
|
private |
Definition at line 1117 of file class.ilTemplate.php.
Referenced by fillMainMenu(), getMainMenu(), and show().
ilTemplate::$activeBlock |
Definition at line 51 of file class.ilTemplate.php.
Referenced by parseCurrentBlock().
|
private |
Definition at line 60 of file class.ilTemplate.php.
Referenced by getAddFooter().
ilTemplate::$admin_panel_commands = array() |
Definition at line 58 of file class.ilTemplate.php.
|
protected |
Definition at line 74 of file class.ilTemplate.php.
ilTemplate::$contenttype |
Definition at line 38 of file class.ilTemplate.php.
Referenced by getContentType().
ilTemplate::$css_files = array() |
Definition at line 56 of file class.ilTemplate.php.
|
protected |
Definition at line 78 of file class.ilTemplate.php.
Referenced by getHeaderActionMenu().
|
staticprotected |
Definition at line 62 of file class.ilTemplate.php.
ilTemplate::$inline_css = array() |
Definition at line 57 of file class.ilTemplate.php.
ilTemplate::$js_files = array(0 => "./Services/JavaScript/js/Basic.js") |
Definition at line 53 of file class.ilTemplate.php.
ilTemplate::$js_files_batch = array("./Services/JavaScript/js/Basic.js" => 1) |
Definition at line 55 of file class.ilTemplate.php.
ilTemplate::$js_files_vp = array("./Services/JavaScript/js/Basic.js" => true) |
Definition at line 54 of file class.ilTemplate.php.
|
protected |
Definition at line 79 of file class.ilTemplate.php.
|
protected |
Definition at line 75 of file class.ilTemplate.php.
|
protected |
Definition at line 63 of file class.ilTemplate.php.
|
staticprotected |
Definition at line 27 of file class.ilTemplate.php.
|
protected |
Definition at line 69 of file class.ilTemplate.php.
Referenced by fillSideIcons().
|
protected |
Definition at line 72 of file class.ilTemplate.php.
|
protected |
Definition at line 71 of file class.ilTemplate.php.
|
protected |
Definition at line 73 of file class.ilTemplate.php.
|
protected |
Definition at line 80 of file class.ilTemplate.php.
|
protected |
Definition at line 70 of file class.ilTemplate.php.
|
protected |
Definition at line 77 of file class.ilTemplate.php.
|
protected |
Definition at line 65 of file class.ilTemplate.php.
|
protected |
Definition at line 66 of file class.ilTemplate.php.
|
protected |
Definition at line 18 of file class.ilTemplate.php.
Referenced by fillMainMenu(), and show().
|
protected |
Definition at line 82 of file class.ilTemplate.php.
|
protected |
Definition at line 68 of file class.ilTemplate.php.
|
protected |
Definition at line 67 of file class.ilTemplate.php.
ilTemplate::$vars |
Definition at line 43 of file class.ilTemplate.php.
Referenced by ilIndependentTemplate\__construct(), LTI\ilTemplate\__construct(), and prepareForFormular().
const ilTemplate::MESSAGE_TYPE_FAILURE = 'failure' |
Definition at line 20 of file class.ilTemplate.php.
const ilTemplate::MESSAGE_TYPE_INFO = "info" |
Definition at line 21 of file class.ilTemplate.php.
const ilTemplate::MESSAGE_TYPE_QUESTION = "question" |
Definition at line 23 of file class.ilTemplate.php.
const ilTemplate::MESSAGE_TYPE_SUCCESS = "success" |
Definition at line 22 of file class.ilTemplate.php.
Referenced by ilPersonalProfileGUI\__construct(), and ilUserCertificateGUI\executeCommand().