ILIAS
Release_4_0_x_branch Revision 61816
|
special template class to simplify handling of ITX/PEAR More...
Public Member Functions | |
ilTemplate ($file, $flag1, $flag2, $in_module=false, $vars="DEFAULT", $plugin=false, $a_use_cache=false) | |
constructor | |
init () | |
Clears all datafields of the object and rebuild the internal blocklist. | |
setAddFooter ($value) | |
getAddFooter () | |
getAsynch () | |
Use this for final get before sending asynchronous output (ajax) per echo to output. | |
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 | |
setMessage ($a_type, $a_txt, $a_keep=false) | |
Set message. | |
fillMessage () | |
getMessageHTML ($a_txt, $a_type="info") | |
Get HTML for a system message. | |
getContentType () | |
Get the content type for the template output. | |
setContentType ($a_content_type="text/html") | |
Set the content type for the template output. | |
show ($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false) | |
public | |
fillContentLanguage () | |
Add current user language to meta tags. | |
fillWindowTitle () | |
fillTabs () | |
enableAdvancedColumnLayout ($a_left, $a_right) | |
Advanced column layout (alpha! do not use yet) | |
fillToolbar () | |
fillPageFormAction () | |
fillJavaScriptFiles () | |
fillCssFiles () | |
setContentStyleSheet ($a_style) | |
Set content style (used for page content editor) | |
fillContentStyle () | |
Fill Content Style. | |
getMainMenu () | |
fillMainMenu () | |
addILIASFooter () | |
add ILIAS footer | |
handleReferer () | |
TODO: this is nice, but shouldn't be done here (-> maybe at the end of ilias.php!?, alex) | |
blockExists ($a_blockname) | |
check if block exists in actual template private | |
fillVars () | |
all template vars defined in $vars will be replaced automatically without setting and parsing them with setVariable & parseCurrentBlock private | |
setCurrentBlock ($part="DEFAULT") | |
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt. | |
touchBlock ($block) | |
overwrites ITX::touchBlock. | |
parseCurrentBlock ($part="DEFAULT") | |
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public. | |
replaceFromDatabase (&$DB, $block, $conv, $select="default") | |
??? TODO: Adjust var names to ilias. | |
prepareForFormular ($vars) | |
Wird angewendet, wenn die Daten in ein Formular replaced werden sollen, Dann wird erst noch ein htmlspecialchars drumherum gemacht. | |
replace () | |
??? public | |
replaceDefault () | |
??? public | |
checkTopic ($a_block, $a_topic) | |
checks for a topic in the template private | |
includeNavigation () | |
check if there is a NAVIGATION-topic public | |
includeTree () | |
check if there is a TREE-topic public | |
fileExists ($filename) | |
check if a file exists public | |
addBlockFile ($var, $block, $tplname, $in_module=false) | |
overwrites ITX::addBlockFile public | |
getTemplatePath ($a_tplname, $a_in_module=false, $a_plugin=false) | |
builds a full template path with template and module name | |
setHeaderPageTitle ($a_title) | |
setStyleSheetLocation ($a_stylesheet) | |
setNewContentStyleSheetLocation ($a_stylesheet) | |
getStandardTemplate () | |
setTitle ($a_title) | |
sets title in standard template | |
setTitleIcon ($a_icon_path, $a_icon_desc="") | |
set title icon | |
setBodyClass ($a_class="") | |
fillBodyClass () | |
setPageFormAction ($a_action) | |
setDescription ($a_descr) | |
sets title in standard template | |
stopTitleFloating () | |
set stop floating (if no tabs are used) | |
setContent ($a_html) | |
sets content for standard template | |
setRightContent ($a_html) | |
sets content of right column | |
setLeftContent ($a_html) | |
sets content of left column | |
setLocator () | |
Insert locator. | |
setTabs ($a_tabs_html) | |
sets tabs in standard template | |
setSubTabs ($a_tabs_html) | |
sets subtabs in standard template | |
setUpperIcon ($a_link, $a_frame="") | |
sets icon to upper level | |
fillScreenReaderFocus () | |
Accessibility focus for screen readers. | |
fillSideIcons () | |
Fill side icons (upper icon, tree icon, webfolder icon) | |
setMountWebfolderIcon ($a_ref_id) | |
shows icon for mounting a webfolder | |
setTreeFlatIcon ($a_link, $a_mode) | |
set tree/flat icon | |
addJavaScript ($a_js_file, $a_add_version_parameter=true, $a_batch=2) | |
Add a javascript file that should be included in the header. | |
addCss ($a_css_file, $media="screen") | |
Add a css file that should be included in the header. | |
setCreationSelector ($a_form_action, $a_options, $a_command, $a_txt) | |
Set selection and create button for adding new objects. | |
setPageActions ($a_page_actions_html) | |
Show admin view button. | |
setEditPageButton ($a_link, $a_txt, $a_frame) | |
Show admin view button. | |
addAdminPanelCommand ($a_cmd, $a_txt, $a_arrow=false) | |
Add a command to the admin panel. | |
fillAdminPanel () | |
Put admin panel into template: | |
setPermanentLink ($a_type, $a_id, $a_append="", $a_target="") | |
fillPermanentLink () | |
Fill in permanent link. | |
ilTemplate ($file, $flag1, $flag2, $in_module=false, $vars="DEFAULT") | |
constructor | |
getTemplatePath ($a_tplname, $a_in_module=false, $a_plugin=false) | |
builds a full template path with template and module name | |
addBlockFile ($var, $block, $tplname, $in_module=false) | |
show ($part="DEFAULT") | |
public | |
getMessageHTML ($a_txt, $a_type="info") | |
Get HTML for a system message. | |
setCurrentBlock ($part="DEFAULT") | |
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt. | |
touchBlock ($block) | |
overwrites ITX::touchBlock. | |
parseCurrentBlock ($part="DEFAULT") | |
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public. | |
setMessage ($a_type, $a_txt, $a_keep=false) | |
Set message. | |
fillMessage () | |
blockExists ($a_blockname) | |
check if block exists in actual template private | |
addJavaScript ($a_js_file) | |
Add a javascript file that should be included in the header. | |
fillJavaScriptFiles () | |
get ($part="DEFAULT") | |
Returns a block with all replacements done. | |
Public Member Functions inherited from ilTemplateX | |
callConstructor () | |
callConstructor () | |
Public Member Functions inherited from HTML_Template_ITX | |
HTML_Template_ITX ($root= '') | |
Builds some complex regexps and calls the constructor of the parent class. | |
replaceBlock ($block, $template, $keep_content=false) | |
Replaces an existing block with new content. | |
replaceBlockfile ($block, $filename, $keep_content=false) | |
Replaces an existing block with new content from a file. | |
addBlock ($placeholder, $blockname, $template) | |
Adds a block to the template changing a variable placeholder to a block placeholder. | |
addBlockfile ($placeholder, $blockname, $filename) | |
Adds a block taken from a file to the template changing a variable placeholder to a block placeholder. | |
placeholderExists ($placeholder, $block= '') | |
Returns the name of the (first) block that contains the specified placeholder. | |
performCallback () | |
Checks the list of function calls in the template and calls their callback function. | |
getFunctioncalls () | |
Returns a list of all function calls in the current template. | |
setFunctioncontent ($functionID, $replacement) | |
Replaces a function call with the given replacement. | |
setCallbackFunction ($tplfunction, $callbackfunction, $callbackobject= '', $expandCallbackParameters=false) | |
Sets a callback function. | |
setCallbackFuntiontable ($functions) | |
Sets the Callback function lookup table. | |
removeBlockData ($block) | |
Recursively removes all data assiciated with a block, including all inner blocks. | |
getBlocklist () | |
Returns a list of blocknames in the template. | |
getBlockvariables ($block) | |
Returns a list of variables of a block. | |
BlockvariableExists ($block, $variable) | |
Checks wheter a block variable exists. | |
buildFunctionlist () | |
Builds a functionlist from the template. | |
getValue ($code, $delimiter) | |
Truncates the given code from the first occurence of $delimiter but ignores $delimiter enclosed by " or '. | |
deleteFromBlockvariablelist ($block, $variables) | |
Deletes one or many variables from the block variable list. | |
updateBlockvariablelist ($block) | |
Updates the variable list of a block. | |
findPlaceholderBlocks ($variable) | |
Returns an array of blocknames where the given variable placeholder is used. | |
warning ($message, $file= '', $line=0) | |
Handles warnings, saves them to $warn and prints them or calls die() depending on the flags. | |
Public Member Functions inherited from HTML_Template_IT | |
HTML_Template_IT ($root= '', $options=null) | |
Builds some complex regular expressions and optinally sets the file root directory. | |
setOption ($option, $value) | |
Sets the option for the template class. | |
setOptions ($options) | |
Sets the options for the template class. | |
parse ($block= '__global__', $flag_recursion=false) | |
Parses the given block. | |
parseCurrentBlock () | |
Parses the current block. | |
setVariable ($variable, $value= '') | |
Sets a variable value. | |
free () | |
Clears all datafields of the object. | |
setTemplate ($template, $removeUnknownVariables=true, $removeEmptyBlocks=true) | |
Sets the template. | |
loadTemplatefile ($filename, $removeUnknownVariables=true, $removeEmptyBlocks=true) | |
Reads a template file from the disk. | |
setRoot ($root) | |
Sets the file root. | |
buildBlockvariablelist () | |
Build a list of all variables within of a block. | |
getGlobalvariables () | |
Returns a list of all global variables. | |
findBlocks ($string) | |
Recusively builds a list of all blocks within the template. | |
getFile ($filename) | |
Reads a file from disk and returns its content. | |
_addPregDelimiters ($str) | |
Adds delimiters to a string, so it can be used as a pattern in preg_* functions. | |
_preserveOpeningDelimiter ($str) | |
Replaces an opening delimiter by a special string. | |
errorMessage ($value, $blockname= '') | |
Return a textual error message for a IT error code. |
Data Fields | |
$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() | |
$admin_panel_commands = array() |
Static Protected Attributes | |
static | $il_cache = array() |
Private Member Functions | |
fillNewContentStyle () | |
Fill Content Style. | |
variableExists ($a_variablename) | |
fillHeader () | |
Fill header. | |
fillStopFloating () | |
stop floating | |
fillMainContent () | |
Fill main content. | |
fillRightContent () | |
Fill right content. | |
fillLeftContent () | |
Fill left content. |
Private Attributes | |
$addFooter |
special template class to simplify handling of ITX/PEAR
Definition at line 11 of file class.ilTemplate.php.
ilTemplate::addAdminPanelCommand | ( | $a_cmd, | |
$a_txt, | |||
$a_arrow = false |
|||
) |
Add a command to the admin panel.
Definition at line 1682 of file class.ilTemplate.php.
ilTemplate::addBlockFile | ( | $var, | |
$block, | |||
$tplname, | |||
$in_module = false |
|||
) |
Definition at line 134 of file class.ilTemplate.php.
References addBlockFile(), 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 1161 of file class.ilTemplate.php.
References getTemplatePath().
Referenced by addBlockFile(), and getStandardTemplate().
ilTemplate::addCss | ( | $a_css_file, | |
$media = "screen" |
|||
) |
Add a css file that should be included in the header.
Definition at line 1639 of file class.ilTemplate.php.
ilTemplate::addILIASFooter | ( | ) |
add ILIAS footer
Definition at line 687 of file class.ilTemplate.php.
References $_GET, $_SESSION, $d, $diff, $f, $file, $GLOBALS, $ilAuth, $ilBench, $ilCtrl, $ilDB, $ilSetting, $total, ilObjLanguageAccess\_checkTranslate(), ilObjLanguageExtGUI\_getTranslationLink(), ilUtil\appendUrlParameterString(), ilPHP\cloneObject(), getAddFooter(), ilTemplate(), HTML_Template_IT\setVariable(), ilUtil\sortArray(), and ilValidatorAdapter\validate().
Referenced by get(), and show().
ilTemplate::addJavaScript | ( | $a_js_file | ) |
Add a javascript file that should be included in the header.
Definition at line 431 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 1621 of file class.ilTemplate.php.
ilTemplate::blockExists | ( | $a_blockname | ) |
check if block exists in actual template private
string | blockname |
Reimplemented from HTML_Template_ITX.
Definition at line 423 of file class.ilTemplate.php.
ilTemplate::blockExists | ( | $a_blockname | ) |
check if block exists in actual template private
string | blockname |
Reimplemented from HTML_Template_ITX.
Definition at line 914 of file class.ilTemplate.php.
Referenced by fillJavaScriptFiles(), get(), and show().
ilTemplate::checkTopic | ( | $a_block, | |
$a_topic | |||
) |
checks for a topic in the template private
string | |
string |
Definition at line 1116 of file class.ilTemplate.php.
Referenced by includeNavigation(), and includeTree().
ilTemplate::enableAdvancedColumnLayout | ( | $a_left, | |
$a_right | |||
) |
Advanced column layout (alpha! do not use yet)
Definition at line 526 of file class.ilTemplate.php.
References ilYuiUtil\initLayout().
ilTemplate::fileExists | ( | $filename | ) |
check if a file exists public
Definition at line 1146 of file class.ilTemplate.php.
References $filename.
ilTemplate::fillAdminPanel | ( | ) |
Put admin panel into template:
Definition at line 1697 of file class.ilTemplate.php.
References $cmd, $lng, ilUtil\getImagePath(), ilAdvancedSelectionListGUI\ON_ITEM_CLICK_FORM_SUBMIT, HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillBodyClass | ( | ) |
Definition at line 1329 of file class.ilTemplate.php.
References 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 461 of file class.ilTemplate.php.
References $lng, and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillContentStyle | ( | ) |
Fill Content Style.
Definition at line 617 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillCssFiles | ( | ) |
Definition at line 590 of file class.ilTemplate.php.
References $filename, HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
|
private |
Fill header.
Definition at line 1266 of file class.ilTemplate.php.
References $lng, HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), HTML_Template_IT\setVariable(), and ilUtil\stripScriptHTML().
Referenced by get(), and show().
ilTemplate::fillJavaScriptFiles | ( | ) |
Definition at line 439 of file class.ilTemplate.php.
References $file, blockExists(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
ilTemplate::fillJavaScriptFiles | ( | ) |
Definition at line 551 of file class.ilTemplate.php.
References $file, $ilSetting, ilUtil\appendUrlParameterString(), blockExists(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
|
private |
Fill left content.
Definition at line 1432 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), HTML_Template_IT\setVariable(), and touchBlock().
Referenced by get(), and show().
|
private |
Fill main content.
Definition at line 1386 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable(), and touchBlock().
Referenced by get(), and show().
ilTemplate::fillMainMenu | ( | ) |
Definition at line 646 of file class.ilTemplate.php.
References $currentTime, $ilAuth, $ilCtrl, $ilSetting, $lng, $tpl, ilTemplate(), and variableExists().
Referenced by get(), and show().
ilTemplate::fillMessage | ( | ) |
Definition at line 278 of file class.ilTemplate.php.
References $_SESSION, $lng, $out, getMessageHTML(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillMessage | ( | ) |
Definition at line 365 of file class.ilTemplate.php.
References $_SESSION, $lng, $out, ilUtil\getImagePath(), ilTemplate(), and HTML_Template_IT\setVariable().
|
private |
Fill Content Style.
Definition at line 631 of file class.ilTemplate.php.
References ilUtil\getNewContentStyleSheetLocation(), and HTML_Template_IT\setVariable().
Referenced by get(), and show().
ilTemplate::fillPageFormAction | ( | ) |
Definition at line 540 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), HTML_Template_IT\setVariable(), and touchBlock().
Referenced by get(), and show().
ilTemplate::fillPermanentLink | ( | ) |
Fill in permanent link.
Definition at line 1794 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable().
Referenced by get(), and show().
|
private |
Fill right content.
Definition at line 1410 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), HTML_Template_IT\setVariable(), and touchBlock().
Referenced by get(), and show().
ilTemplate::fillScreenReaderFocus | ( | ) |
Accessibility focus for screen readers.
Definition at line 1489 of file class.ilTemplate.php.
References touchBlock().
Referenced by get(), and show().
ilTemplate::fillSideIcons | ( | ) |
Fill side icons (upper icon, tree icon, webfolder icon)
Definition at line 1502 of file class.ilTemplate.php.
References $ilSetting, $lng, ilFrameTargetInfo\_getFrame(), ilAccessKeyGUI\getAttribute(), ilUtil\getImagePath(), HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), HTML_Template_IT\setVariable(), ilAccessKey\TREE_OFF, and ilAccessKey\TREE_ON.
Referenced by get(), and show().
|
private |
stop floating
Definition at line 1364 of file class.ilTemplate.php.
References touchBlock().
Referenced by get(), and show().
ilTemplate::fillTabs | ( | ) |
Definition at line 504 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable(), and touchBlock().
Referenced by get(), and show().
ilTemplate::fillToolbar | ( | ) |
Definition at line 533 of file class.ilTemplate.php.
References 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 931 of file class.ilTemplate.php.
References $key, and HTML_Template_IT\setVariable().
Referenced by parseCurrentBlock(), and touchBlock().
ilTemplate::fillWindowTitle | ( | ) |
Definition at line 482 of file class.ilTemplate.php.
References $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 175 of file class.ilTemplate.php.
References addILIASFooter(), blockExists(), fillAdminPanel(), fillBodyClass(), fillContentLanguage(), fillContentStyle(), fillCssFiles(), fillHeader(), fillJavaScriptFiles(), fillLeftContent(), fillMainContent(), fillMainMenu(), fillMessage(), fillNewContentStyle(), fillPageFormAction(), fillPermanentLink(), fillRightContent(), fillScreenReaderFocus(), fillSideIcons(), fillStopFloating(), fillTabs(), fillToolbar(), fillWindowTitle(), getMainMenu(), handleReferer(), HTML_Template_IT\parseCurrentBlock(), and setCurrentBlock().
Referenced by get().
ilTemplate::get | ( | $block = "DEFAULT" | ) |
Returns a block with all replacements done.
string | name of the block |
PEAR_Error | public |
Reimplemented from HTML_Template_IT.
Definition at line 456 of file class.ilTemplate.php.
References get().
ilTemplate::getAddFooter | ( | ) |
Definition at line 153 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 163 of file class.ilTemplate.php.
References getContentType().
ilTemplate::getContentType | ( | ) |
Get the content type for the template output.
Definition at line 347 of file class.ilTemplate.php.
References $contenttype.
Referenced by getAsynch(), and show().
ilTemplate::getMainMenu | ( | ) |
Definition at line 639 of file class.ilTemplate.php.
Referenced by get(), and show().
ilTemplate::getMessageHTML | ( | $a_txt, | |
$a_type = "info" |
|||
) |
Get HTML for a system message.
Definition at line 255 of file class.ilTemplate.php.
References $lng, ilUtil\getImagePath(), and ilTemplate().
ilTemplate::getMessageHTML | ( | $a_txt, | |
$a_type = "info" |
|||
) |
Get HTML for a system message.
Definition at line 326 of file class.ilTemplate.php.
References $lng, ilUtil\getImagePath(), and ilTemplate().
Referenced by fillMessage(), and show().
ilTemplate::getStandardTemplate | ( | ) |
Definition at line 1248 of file class.ilTemplate.php.
References 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 86 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 1186 of file class.ilTemplate.php.
References $_GET, $ilCtrl, and ILIAS_MODULE.
Referenced by addBlockFile(), and ilTemplate().
ilTemplate::handleReferer | ( | ) |
TODO: this is nice, but shouldn't be done here (-> maybe at the end of ilias.php!?, alex)
Definition at line 848 of file class.ilTemplate.php.
References $_GET, $_POST, $_SESSION, and $key.
Referenced by get(), and show().
ilTemplate::ilTemplate | ( | $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 45 of file class.ilTemplate.php.
References $file, ilTemplateX\callConstructor(), getTemplatePath(), HTML_Template_IT\loadTemplatefile(), and HTML_Template_IT\setOption().
ilTemplate::ilTemplate | ( | $file, | |
$flag1, | |||
$flag2, | |||
$in_module = false , |
|||
$vars = "DEFAULT" , |
|||
$plugin = false , |
|||
$a_use_cache = false |
|||
) |
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 51 of file class.ilTemplate.php.
References $file, ilTemplateX\callConstructor(), getTemplatePath(), HTML_Template_IT\loadTemplatefile(), setBodyClass(), and HTML_Template_IT\setOption().
Referenced by addILIASFooter(), fillMainMenu(), fillMessage(), and getMessageHTML().
ilTemplate::includeNavigation | ( | ) |
check if there is a NAVIGATION-topic public
Definition at line 1126 of file class.ilTemplate.php.
References checkTopic().
ilTemplate::includeTree | ( | ) |
check if there is a TREE-topic public
Definition at line 1136 of file class.ilTemplate.php.
References checkTopic().
ilTemplate::init | ( | ) |
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.
public
Reimplemented from HTML_Template_ITX.
Definition at line 93 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::parseCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public.
string |
Definition at line 314 of file class.ilTemplate.php.
References $activeBlock, and HTML_Template_IT\parseCurrentBlock().
ilTemplate::parseCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public.
string |
Definition at line 996 of file class.ilTemplate.php.
References $activeBlock, fillVars(), and HTML_Template_IT\parseCurrentBlock().
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 1068 of file class.ilTemplate.php.
References $vars.
ilTemplate::replace | ( | ) |
??? public
Definition at line 1090 of file class.ilTemplate.php.
References $key, and HTML_Template_IT\setVariable().
Referenced by replaceDefault(), and replaceFromDatabase().
ilTemplate::replaceDefault | ( | ) |
??? public
Definition at line 1104 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 1034 of file class.ilTemplate.php.
References $key, $res, $result, HTML_Template_IT\parseCurrentBlock(), replace(), and setCurrentBlock().
ilTemplate::setAddFooter | ( | $value | ) |
Definition at line 143 of file class.ilTemplate.php.
ilTemplate::setBodyClass | ( | $a_class = "" | ) |
Definition at line 1324 of file class.ilTemplate.php.
Referenced by ilTemplate().
ilTemplate::setContent | ( | $a_html | ) |
sets content for standard template
Definition at line 1375 of file class.ilTemplate.php.
ilTemplate::setContentStyleSheet | ( | $a_style | ) |
Set content style (used for page content editor)
Definition at line 609 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 362 of file class.ilTemplate.php.
ilTemplate::setCreationSelector | ( | $a_form_action, | |
$a_options, | |||
$a_command, | |||
$a_txt | |||
) |
Set selection and create button for adding new objects.
Definition at line 1650 of file class.ilTemplate.php.
References setPageFormAction().
ilTemplate::setCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
public
string |
Reimplemented from HTML_Template_IT.
Definition at line 276 of file class.ilTemplate.php.
References setCurrentBlock().
ilTemplate::setCurrentBlock | ( | $part = "DEFAULT" | ) |
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
public
string |
Reimplemented from HTML_Template_IT.
Definition at line 958 of file class.ilTemplate.php.
Referenced by fillAdminPanel(), fillBodyClass(), fillContentStyle(), fillCssFiles(), fillHeader(), fillJavaScriptFiles(), fillLeftContent(), fillPageFormAction(), fillRightContent(), fillSideIcons(), get(), replaceFromDatabase(), setCurrentBlock(), show(), and touchBlock().
ilTemplate::setDescription | ( | $a_descr | ) |
sets title in standard template
Definition at line 1347 of file class.ilTemplate.php.
ilTemplate::setEditPageButton | ( | $a_link, | |
$a_txt, | |||
$a_frame | |||
) |
Show admin view button.
Definition at line 1673 of file class.ilTemplate.php.
ilTemplate::setHeaderPageTitle | ( | $a_title | ) |
Definition at line 1232 of file class.ilTemplate.php.
References ilUtil\stripScriptHTML().
ilTemplate::setLeftContent | ( | $a_html | ) |
sets content of left column
Definition at line 1424 of file class.ilTemplate.php.
ilTemplate::setLocator | ( | ) |
Insert locator.
Definition at line 1446 of file class.ilTemplate.php.
References $lng, and HTML_Template_IT\setVariable().
ilTemplate::setMessage | ( | $a_type, | |
$a_txt, | |||
$a_keep = false |
|||
) |
Set message.
Please use ilUtil::sendInfo(), ilUtil::sendSuccess() and ilUtil::sendFailure()
Definition at line 258 of file class.ilTemplate.php.
References $_SESSION.
ilTemplate::setMessage | ( | $a_type, | |
$a_txt, | |||
$a_keep = false |
|||
) |
Set message.
Please use ilUtil::sendInfo(), ilUtil::sendSuccess() and ilUtil::sendFailure()
Definition at line 345 of file class.ilTemplate.php.
References $_SESSION.
ilTemplate::setMountWebfolderIcon | ( | $a_ref_id | ) |
shows icon for mounting a webfolder
Definition at line 1597 of file class.ilTemplate.php.
References $lng.
ilTemplate::setNewContentStyleSheetLocation | ( | $a_stylesheet | ) |
Definition at line 1243 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable().
ilTemplate::setPageActions | ( | $a_page_actions_html | ) |
Show admin view button.
Definition at line 1665 of file class.ilTemplate.php.
ilTemplate::setPageFormAction | ( | $a_action | ) |
Definition at line 1339 of file class.ilTemplate.php.
Referenced by setCreationSelector().
ilTemplate::setPermanentLink | ( | $a_type, | |
$a_id, | |||
$a_append = "" , |
|||
$a_target = "" |
|||
) |
Definition at line 1782 of file class.ilTemplate.php.
ilTemplate::setRightContent | ( | $a_html | ) |
sets content of right column
Definition at line 1402 of file class.ilTemplate.php.
ilTemplate::setStyleSheetLocation | ( | $a_stylesheet | ) |
Definition at line 1238 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable().
ilTemplate::setSubTabs | ( | $a_tabs_html | ) |
sets subtabs in standard template
Definition at line 1470 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable().
ilTemplate::setTabs | ( | $a_tabs_html | ) |
sets tabs in standard template
Definition at line 1455 of file class.ilTemplate.php.
References HTML_Template_IT\setVariable(), and touchBlock().
ilTemplate::setTitle | ( | $a_title | ) |
sets title in standard template
Definition at line 1257 of file class.ilTemplate.php.
References ilUtil\stripScriptHTML().
ilTemplate::setTitleIcon | ( | $a_icon_path, | |
$a_icon_desc = "" |
|||
) |
set title icon
Definition at line 1318 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 1610 of file class.ilTemplate.php.
References $lng.
ilTemplate::setUpperIcon | ( | $a_link, | |
$a_frame = "" |
|||
) |
ilTemplate::show | ( | $part = "DEFAULT" | ) |
public
string |
Reimplemented from HTML_Template_IT.
Definition at line 155 of file class.ilTemplate.php.
References $_GET, $_POST, $_SESSION, $key, $out, blockExists(), fillJavaScriptFiles(), getMessageHTML(), HTML_Template_IT\setVariable(), and show().
ilTemplate::show | ( | $part = "DEFAULT" , |
|
$a_fill_tabs = true , |
|||
$a_skip_main_menu = false |
|||
) |
public
string | |
bool | fill template variable {TABS} with content of ilTabs |
Definition at line 372 of file class.ilTemplate.php.
References addILIASFooter(), blockExists(), fillAdminPanel(), fillBodyClass(), fillContentLanguage(), fillContentStyle(), fillCssFiles(), fillHeader(), fillJavaScriptFiles(), fillLeftContent(), fillMainContent(), fillMainMenu(), fillMessage(), fillNewContentStyle(), fillPageFormAction(), fillPermanentLink(), fillRightContent(), fillScreenReaderFocus(), fillSideIcons(), fillStopFloating(), fillTabs(), fillToolbar(), fillWindowTitle(), getContentType(), getMainMenu(), handleReferer(), ilYuiUtil\initDom(), HTML_Template_IT\parseCurrentBlock(), and setCurrentBlock().
Referenced by show().
ilTemplate::stopTitleFloating | ( | ) |
set stop floating (if no tabs are used)
Definition at line 1356 of file class.ilTemplate.php.
ilTemplate::touchBlock | ( | $block | ) |
overwrites ITX::touchBlock.
public
string |
Reimplemented from HTML_Template_IT.
Definition at line 296 of file class.ilTemplate.php.
References HTML_Template_IT\parseCurrentBlock(), setCurrentBlock(), and touchBlock().
ilTemplate::touchBlock | ( | $block | ) |
overwrites ITX::touchBlock.
public
string |
Reimplemented from HTML_Template_IT.
Definition at line 978 of file class.ilTemplate.php.
References fillVars(), HTML_Template_IT\parseCurrentBlock(), and setCurrentBlock().
Referenced by fillLeftContent(), fillMainContent(), fillPageFormAction(), fillRightContent(), fillScreenReaderFocus(), fillStopFloating(), fillTabs(), setTabs(), and touchBlock().
|
private |
Definition at line 920 of file class.ilTemplate.php.
Referenced by fillMainMenu().
ilTemplate::$activeBlock |
Definition at line 30 of file class.ilTemplate.php.
Referenced by parseCurrentBlock().
|
private |
Definition at line 38 of file class.ilTemplate.php.
Referenced by getAddFooter().
ilTemplate::$admin_panel_commands = array() |
Definition at line 36 of file class.ilTemplate.php.
ilTemplate::$contenttype |
Definition at line 17 of file class.ilTemplate.php.
Referenced by getContentType().
ilTemplate::$css_files = array() |
Definition at line 35 of file class.ilTemplate.php.
|
staticprotected |
Definition at line 40 of file class.ilTemplate.php.
ilTemplate::$js_files = array(0 => "Services/JavaScript/js/Basic.js") |
Definition at line 32 of file class.ilTemplate.php.
ilTemplate::$js_files_batch = array("Services/JavaScript/js/Basic.js" => 1) |
Definition at line 34 of file class.ilTemplate.php.
ilTemplate::$js_files_vp = array("Services/JavaScript/js/Basic.js" => true) |
Definition at line 33 of file class.ilTemplate.php.
ilTemplate::$vars |
Definition at line 22 of file class.ilTemplate.php.
Referenced by prepareForFormular().