ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
special template class to simplify handling of ITX/PEAR More...
Public Member Functions | |
__construct (string $file, bool $flag1, bool $flag2, string $in_module="", string $vars="DEFAULT", bool $plugin=false, bool $a_use_cache=true) | |
constructor ilTemplate constructor. More... | |
blockExists ($a_blockname) | |
check if block exists in actual template @access private More... | |
get ($part="DEFAULT") | |
getUnmodified ($part="DEFAULT") | |
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 @access public. More... | |
addBlockFile ($var, $block, $tplname, $in_module=false) | |
overwrites ITX::addBlockFile @access public More... | |
loadTemplatefile ( $filename, $removeUnknownVariables=true, $removeEmptyBlocks=true) | |
Reads a template file from the disk. More... | |
variableExists ($a_variablename) | |
__construct ($file, $flag1, $flag2, $in_module=false, $vars="DEFAULT") | |
constructor More... | |
printToString () | |
@inheritDoc 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) | |
overwrites ITX::addBlockFile More... | |
show ($part="DEFAULT") | |
@access 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 @access public. More... | |
setOnScreenMessage ($a_type, $a_txt, $a_keep=false) | |
Set message. More... | |
fillMessage () | |
blockExists ($a_blockname) | |
check if block exists in actual template @access private 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... | |
fillJavaScriptFiles ($force=true) | |
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") | |
hideFooter () | |
@inheritDoc More... | |
addOnLoadCode ($a_code, $a_batch=2) | |
@inheritDoc More... | |
getOnLoadCodeForAsynch () | |
@inheritDoc More... | |
resetJavascript () | |
@inheritDoc More... | |
addInlineCss ($a_css, $media="screen") | |
@inheritDoc More... | |
setBodyClass ($a_class="") | |
loadStandardTemplate () | |
@inheritDoc More... | |
setTitle ($a_title, $hidden=false) | |
@inheritDoc More... | |
setDescription ($a_descr) | |
@inheritDoc More... | |
setTitleIcon ($a_icon_path, $a_icon_desc="") | |
@inheritDoc More... | |
setAlertProperties (array $a_props) | |
@inheritDoc More... | |
clearHeader () | |
@inheritDoc More... | |
setHeaderActionMenu ($a_header) | |
@inheritDoc More... | |
setHeaderPageTitle ($a_title) | |
@inheritDoc More... | |
setLocator () | |
@inheritDoc More... | |
setTabs ($a_tabs_html) | |
@inheritDoc More... | |
setSubTabs ($a_tabs_html) | |
@inheritDoc More... | |
setContent ($a_html) | |
@inheritDoc More... | |
setLeftContent ($a_html) | |
@inheritDoc More... | |
setLeftNavContent ($a_content) | |
@inheritDoc More... | |
setRightContent ($a_html) | |
@inheritDoc More... | |
setPageFormAction ($a_action) | |
setLoginTargetPar ($a_val) | |
@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... | |
printToStdout ($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false) | |
@inheritDoc More... | |
setTreeFlatIcon ($a_link, $a_mode) | |
@inheritDoc More... | |
addLightbox ($a_html, $a_id) | |
@inheritDoc More... | |
addAdminPanelToolbar (ilToolbarGUI $toolb, $a_bottom_panel=true, $a_arrow=false) | |
@inheritDoc More... | |
setPermanentLink ($a_type, $a_id, $a_append="", $a_target="", $a_title="") | |
resetHeaderBlock ($a_reset_header_action=true) | |
@inheritDoc More... | |
enableDragDropFileUpload ($a_ref_id) | |
@inheritDoc More... | |
![]() | |
__construct ($root='') | |
Builds some complex regexps and calls the constructor of the parent class. More... | |
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... | |
![]() | |
__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... | |
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... | |
![]() | |
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... | |
Data Fields | |
$vars | |
$activeBlock | |
$js_files = array() | |
$css_files = array() | |
![]() | |
$warn = array() | |
$printWarning = false | |
$haltOnWarning = false | |
$checkblocknameRegExp = '' | |
$functionPrefix = 'func_' | |
$functionnameRegExp = '[_a-zA-Z]+[A-Za-z_0-9]*' | |
$functionRegExp = '' | |
$functions = array() | |
$callback = array() | |
![]() | |
$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() | |
$blockparents = 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 | |
init () | |
Clears all datafields of the object and rebuild the internal blocklist. More... | |
getTemplatePath ($a_tplname, $a_in_module=false, $a_plugin=false) | |
builds a full template path with template and module name More... | |
init () | |
Clears all datafields of the object and rebuild the internal blocklist. More... | |
init () | |
Clears all datafields of the object and rebuild the internal blocklist. More... | |
Protected Attributes | |
$il_use_cache | |
$il_cur_key | |
$tplName | |
$tplPath | |
$tplIdentifier | |
Static Protected Attributes | |
static | $il_cache = array() |
Private Member Functions | |
fillVars () | |
all template vars defined in $vars will be replaced automatically without setting and parsing them with setVariable & parseCurrentBlock @access private More... | |
getTemplateIdentifier ($a_tplname, $a_in_module=false) | |
get a unique template identifier More... | |
special template class to simplify handling of ITX/PEAR
Definition at line 13 of file class.ilTemplate.php.
ilTemplate::__construct | ( | string | $file, |
bool | $flag1, | ||
bool | $flag2, | ||
string | $in_module = "" , |
||
string | $vars = "DEFAULT" , |
||
bool | $plugin = false , |
||
bool | $a_use_cache = true |
||
) |
constructor ilTemplate constructor.
string | $file | template file |
bool | $flag1 | remove unknown variables |
bool | $flag2 | remove empty blocks |
string | $in_module | module/service subdirectory |
string | $vars | variables to replace |
bool | $plugin | plugin template |
bool | $a_use_cache | us cache |
ilTemplateException |
Definition at line 71 of file class.ilTemplate.php.
References XapiProxy\$plugin, $tplPath, ILIAS\GlobalScreen\Provider\__construct(), getTemplateIdentifier(), getTemplatePath(), loadTemplatefile(), 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 @access public |
Definition at line 50 of file class.ilTemplate.php.
References $tplPath, ILIAS\GlobalScreen\Provider\__construct(), getTemplatePath(), loadTemplatefile(), and HTML_Template_IT\setOption().
ilTemplate::addAdminPanelToolbar | ( | ilToolbarGUI | $toolb, |
$a_bottom_panel = true , |
|||
$a_arrow = false |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 707 of file class.ilTemplate.php.
ilTemplate::addBlockFile | ( | $var, | |
$block, | |||
$tplname, | |||
$in_module = false |
|||
) |
overwrites ITX::addBlockFile @access public
string | ||
string | ||
string | $tplname | template name |
boolean | $in_module | should be set to true, if template file is in module subdirectory |
Implements ilGlobalTemplateInterface.
Definition at line 279 of file class.ilTemplate.php.
References $DIC, XapiProxy\$resp, HTML_Template_IT\$template, HTML_Template_ITX\addBlock(), DEBUG, HTML_Template_IT\getFile(), ilPluginAdmin\getPluginObject(), getTemplateIdentifier(), getTemplatePath(), IL_COMP_SERVICE, and ilUIHookPluginGUI\KEEP.
ilTemplate::addBlockFile | ( | $var, | |
$block, | |||
$tplname, | |||
$in_module = false |
|||
) |
overwrites ITX::addBlockFile
@access public
string | ||
string | ||
string | $tplname | template name |
boolean | $in_module | should be set to true, if template file is in module subdirectory |
Implements ilGlobalTemplateInterface.
Definition at line 134 of file class.ilTemplate.php.
References DEBUG, and getTemplatePath().
ilTemplate::addCss | ( | $a_css_file, | |
$media = "screen" |
|||
) |
Add a css file that should be included in the header.
Implements ilGlobalTemplateInterface.
Definition at line 422 of file class.ilTemplate.php.
ilTemplate::addInlineCss | ( | $a_css, | |
$media = "screen" |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 506 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.
Implements ilGlobalTemplateInterface.
Definition at line 398 of file class.ilTemplate.php.
ilTemplate::addLightbox | ( | $a_html, | |
$a_id | |||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 698 of file class.ilTemplate.php.
ilTemplate::addOnLoadCode | ( | $a_code, | |
$a_batch = 2 |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 479 of file class.ilTemplate.php.
ilTemplate::blockExists | ( | $a_blockname | ) |
check if block exists in actual template @access private
string | blockname |
Implements ilGlobalTemplateInterface.
Definition at line 154 of file class.ilTemplate.php.
Referenced by fillCssFiles(), fillJavaScriptFiles(), ilTinyMCE\handleImgContextMenuItem(), and show().
ilTemplate::blockExists | ( | $a_blockname | ) |
check if block exists in actual template @access private
string | blockname |
Implements ilGlobalTemplateInterface.
Definition at line 389 of file class.ilTemplate.php.
ilTemplate::clearHeader | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 566 of file class.ilTemplate.php.
ilTemplate::enableDragDropFileUpload | ( | $a_ref_id | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 731 of file class.ilTemplate.php.
ilTemplate::fillCssFiles | ( | $a_force = false | ) |
Fill in the css file tags.
boolean | $a_force |
Definition at line 434 of file class.ilTemplate.php.
References $filename, blockExists(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and ilGlobalTemplateInterface\setVariable().
Referenced by show().
ilTemplate::fillJavaScriptFiles | ( | $force = true | ) |
Implements ilGlobalTemplateInterface.
Definition at line 405 of file class.ilTemplate.php.
References blockExists(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and ilGlobalTemplateInterface\setVariable().
Referenced by show().
ilTemplate::fillMessage | ( | ) |
Definition at line 340 of file class.ilTemplate.php.
References $lng, $out, $txt, ilSession\clear(), ilSession\get(), and ilGlobalTemplateInterface\setVariable().
|
private |
all template vars defined in $vars will be replaced automatically without setting and parsing them with setVariable & parseCurrentBlock @access private
Definition at line 323 of file class.ilTemplate.php.
References ilGlobalTemplateInterface\setVariable().
Referenced by parseCurrentBlock(), and touchBlock().
ilTemplate::get | ( | $part = "DEFAULT" | ) |
string |
Implements ilGlobalTemplateInterface.
Reimplemented in ilIndependantTemplate.
Definition at line 164 of file class.ilTemplate.php.
References $DIC, XapiProxy\$resp, ilPluginAdmin\getPluginObject(), getUnmodified(), IL_COMP_SERVICE, and ilUIHookPluginGUI\KEEP.
ilTemplate::get | ( | $part = "DEFAULT" | ) |
string |
Implements ilGlobalTemplateInterface.
Reimplemented in ilIndependantTemplate.
Definition at line 454 of file class.ilTemplate.php.
References ILIAS\GlobalScreen\get().
ilTemplate::getMessageHTML | ( | $a_txt, | |
$a_type = "info" |
|||
) |
Get HTML for a system message.
Definition at line 246 of file class.ilTemplate.php.
Referenced by show().
ilTemplate::getOnLoadCodeForAsynch | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 488 of file class.ilTemplate.php.
ilTemplate::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 671 of file class.ilTemplate.php.
|
private |
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 474 of file class.ilTemplate.php.
References $_GET, $DIC, $ilCtrl, and ILIAS_MODULE.
Referenced by __construct(), and addBlockFile().
|
protected |
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 409 of file class.ilTemplate.php.
References $DIC, $ilCtrl, ilStyleDefinition\getCurrentSkin(), and ilStyleDefinition\getCurrentStyle().
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 98 of file class.ilTemplate.php.
References $_GET, $ilCtrl, and ILIAS_MODULE.
ilTemplate::getUnmodified | ( | $part = "DEFAULT" | ) |
string |
Definition at line 195 of file class.ilTemplate.php.
References $DIC, and ILIAS\GlobalScreen\get().
Referenced by get().
ilTemplate::hideFooter | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 467 of file class.ilTemplate.php.
|
protected |
Clears all datafields of the object and rebuild the internal blocklist.
LoadTemplatefile() and setTemplate() automatically call this function when a new template is given. Don't use this function unless you know what you're doing.
@access public
Reimplemented from HTML_Template_ITX.
Definition at line 108 of file class.ilTemplate.php.
References HTML_Template_IT\$blockdata, HTML_Template_IT\$blockinner, HTML_Template_IT\$blocklist, HTML_Template_IT\$blockparents, HTML_Template_IT\$blockvariables, HTML_Template_IT\$err, HTML_Template_IT\$flagBlocktrouble, $il_cur_key, HTML_Template_IT\buildBlockvariablelist(), HTML_Template_ITX\buildFunctionlist(), HTML_Template_IT\findBlocks(), and HTML_Template_IT\free().
ilTemplate::loadStandardTemplate | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 521 of file class.ilTemplate.php.
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. @access public |
Reimplemented from HTML_Template_IT.
Reimplemented in ilIndependantTemplate.
Definition at line 354 of file class.ilTemplate.php.
References $DIC, $filename, HTML_Template_IT\$removeEmptyBlocks, HTML_Template_IT\$removeUnknownVariables, XapiProxy\$resp, 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 @access public.
string |
Implements ilGlobalTemplateInterface.
Definition at line 247 of file class.ilTemplate.php.
References $activeBlock, and fillVars().
Referenced by ilCalendarBlockGUI\addConsultationHourButtons(), ilContainerRenderer\addHeaderRow(), ilContainerRenderer\addSeparatorRow(), ilContainerRenderer\addStandardRow(), ilCalendarBlockGUI\addSubscriptionButton(), ilChatroomAuthInputGUI\insert(), ilOrgUnitAuthorityInputGUI\insert(), ilCaptchaInputGUI\insert(), ilEMailInputGUI\insert(), ilClozeGapInputBuilderGUI\insert(), ilContainerRenderer\renderDetails(), ilContainerRenderer\renderHelperGeneric(), ilSurveyPageGUI\renderPageNode(), and ilContainerRenderer\renderSelectAllBlock().
ilTemplate::parseCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt @access public.
string |
Implements ilGlobalTemplateInterface.
Definition at line 299 of file class.ilTemplate.php.
References $activeBlock.
ilTemplate::printToStdout | ( | $part = "DEFAULT" , |
|
$a_fill_tabs = true , |
|||
$a_skip_main_menu = false |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 680 of file class.ilTemplate.php.
ilTemplate::printToString | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 84 of file class.ilTemplate.php.
ilTemplate::resetHeaderBlock | ( | $a_reset_header_action = true | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 722 of file class.ilTemplate.php.
ilTemplate::resetJavascript | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 497 of file class.ilTemplate.php.
ilTemplate::setAlertProperties | ( | array | $a_props | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 557 of file class.ilTemplate.php.
ilTemplate::setBodyClass | ( | $a_class = "" | ) |
Implements ilGlobalTemplateInterface.
Definition at line 512 of file class.ilTemplate.php.
ilTemplate::setContent | ( | $a_html | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 620 of file class.ilTemplate.php.
ilTemplate::setCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
@access public
string |
Implements ilGlobalTemplateInterface.
Definition at line 213 of file class.ilTemplate.php.
Referenced by ilCalendarBlockGUI\addConsultationHourButtons(), ilContainerRenderer\addHeaderRow(), ilContainerRenderer\addSeparatorRow(), ilContainerRenderer\addStandardRow(), ilCalendarBlockGUI\addSubscriptionButton(), fillCssFiles(), fillJavaScriptFiles(), ilChatroomAuthInputGUI\insert(), ilOrgUnitAuthorityInputGUI\insert(), ilCaptchaInputGUI\insert(), ilEMailInputGUI\insert(), ilClozeGapInputBuilderGUI\insert(), ilContainerRenderer\renderDetails(), ilContainerRenderer\renderHelperGeneric(), ilSurveyPageGUI\renderPageNode(), ilContainerRenderer\renderSelectAllBlock(), and touchBlock().
ilTemplate::setCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
@access public
string |
Implements ilGlobalTemplateInterface.
Definition at line 265 of file class.ilTemplate.php.
ilTemplate::setDescription | ( | $a_descr | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 539 of file class.ilTemplate.php.
ilTemplate::setHeaderActionMenu | ( | $a_header | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 575 of file class.ilTemplate.php.
ilTemplate::setHeaderPageTitle | ( | $a_title | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 584 of file class.ilTemplate.php.
ilTemplate::setLeftContent | ( | $a_html | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 629 of file class.ilTemplate.php.
ilTemplate::setLeftNavContent | ( | $a_content | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 638 of file class.ilTemplate.php.
ilTemplate::setLocator | ( | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 593 of file class.ilTemplate.php.
ilTemplate::setLoginTargetPar | ( | $a_val | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 662 of file class.ilTemplate.php.
ilTemplate::setOnScreenMessage | ( | $a_type, | |
$a_txt, | |||
$a_keep = false |
|||
) |
Set message.
Please use ilUtil::sendInfo(), ilUtil::sendSuccess() and ilUtil::sendFailure()
Implements ilGlobalTemplateInterface.
Definition at line 325 of file class.ilTemplate.php.
References $a_type, and ilSession\set().
ilTemplate::setPageFormAction | ( | $a_action | ) |
Implements ilGlobalTemplateInterface.
Definition at line 653 of file class.ilTemplate.php.
ilTemplate::setPermanentLink | ( | $a_type, | |
$a_id, | |||
$a_append = "" , |
|||
$a_target = "" , |
|||
$a_title = "" |
|||
) |
Implements ilGlobalTemplateInterface.
Definition at line 713 of file class.ilTemplate.php.
ilTemplate::setRightContent | ( | $a_html | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 647 of file class.ilTemplate.php.
ilTemplate::setSubTabs | ( | $a_tabs_html | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 611 of file class.ilTemplate.php.
ilTemplate::setTabs | ( | $a_tabs_html | ) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 602 of file class.ilTemplate.php.
ilTemplate::setTitle | ( | $a_title, | |
$hidden = false |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 530 of file class.ilTemplate.php.
ilTemplate::setTitleIcon | ( | $a_icon_path, | |
$a_icon_desc = "" |
|||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 548 of file class.ilTemplate.php.
ilTemplate::setTreeFlatIcon | ( | $a_link, | |
$a_mode | |||
) |
@inheritDoc
Implements ilGlobalTemplateInterface.
Definition at line 689 of file class.ilTemplate.php.
ilTemplate::show | ( | $part = "DEFAULT" | ) |
@access public
string |
Reimplemented from HTML_Template_IT.
Definition at line 153 of file class.ilTemplate.php.
References $_GET, $_POST, $_SERVER, $out, $txt, blockExists(), ilSession\clear(), fillCssFiles(), fillJavaScriptFiles(), ilSession\get(), getMessageHTML(), ilSession\set(), ilGlobalTemplateInterface\setVariable(), and show().
ilTemplate::touchBlock | ( | $block | ) |
overwrites ITX::touchBlock.
@access public
string |
Implements ilGlobalTemplateInterface.
Definition at line 230 of file class.ilTemplate.php.
References fillVars(), HTML_Template_IT\parseCurrentBlock(), and setCurrentBlock().
Referenced by ilCalendarBlockGUI\addConsultationHourButtons(), ilContainerRenderer\addHeaderRow(), ilContainerRenderer\addStandardRow(), and ilSurveyPageGUI\renderPageNode().
ilTemplate::touchBlock | ( | $block | ) |
overwrites ITX::touchBlock.
@access public
string |
Implements ilGlobalTemplateInterface.
Definition at line 282 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), and setCurrentBlock().
ilTemplate::variableExists | ( | $a_variablename | ) |
Definition at line 507 of file class.ilTemplate.php.
ilTemplate::$activeBlock |
Definition at line 27 of file class.ilTemplate.php.
Referenced by parseCurrentBlock().
ilTemplate::$css_files = array() |
Definition at line 22 of file class.ilTemplate.php.
|
staticprotected |
Definition at line 32 of file class.ilTemplate.php.
|
protected |
Definition at line 42 of file class.ilTemplate.php.
Referenced by init().
|
protected |
Definition at line 37 of file class.ilTemplate.php.
ilTemplate::$js_files = array() |
Definition at line 21 of file class.ilTemplate.php.
|
protected |
Definition at line 57 of file class.ilTemplate.php.
|
protected |
Definition at line 47 of file class.ilTemplate.php.
|
protected |
Definition at line 52 of file class.ilTemplate.php.
Referenced by __construct().
ilTemplate::$vars |
Definition at line 19 of file class.ilTemplate.php.