ILIAS
release_8 Revision v8.19
|
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=ilGlobalTemplateInterface::DEFAULT_BLOCK, bool $plugin=false, bool $a_use_cache=true) | |
constructor ilTemplate constructor. More... | |
blockExists (string $a_blockname) | |
get (string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK) | |
getUnmodified (string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK) | |
setCurrentBlock (string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK) | |
touchBlock (string $block) | |
parseCurrentBlock (string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK) | |
addBlockFile (string $var, string $block, string $tplname, string $in_module=null) | |
loadTemplatefile (string $filename, bool $removeUnknownVariables=true, bool $removeEmptyBlocks=true) | |
getTemplateIdentifier (string $a_tplname, string $a_in_module=null) | |
get a unique template identifier The identifier is common for default or customized skins but distincts templates of different services with the same name. More... | |
variableExists (string $a_variablename) | |
![]() | |
__construct (string $root='') | |
Builds some complex regexps and calls the constructor of the parent class. More... | |
replaceBlock (string $block, string $template, bool $keep_content=false) | |
Replaces an existing block with new content. More... | |
addBlock (string $placeholder, string $blockname, string $template) | |
Adds a block to the template changing a variable placeholder to a block placeholder. More... | |
addBlockfile (string $placeholder, string $blockname, string $filename) | |
Adds a block taken from a file to the template changing a variable placeholder to a block placeholder. More... | |
removeBlockData (string $block) | |
Recursively removes all data assiciated with a block, including all inner blocks. More... | |
blockExists (string $blockname) | |
Checks wheter a block exists. More... | |
buildFunctionlist () | |
Builds a functionlist from the template. More... | |
getValue (string $code, $delimiter) | |
Truncates the given code from the first occurence of $delimiter but ignores $delimiter enclosed by " or '. More... | |
deleteFromBlockvariablelist (string $block, $variables) | |
Deletes one or many variables from the block variable list. More... | |
updateBlockvariablelist (string $block) | |
Updates the variable list of a block. More... | |
findPlaceholderBlocks (string $variable) | |
Returns an array of blocknames where the given variable placeholder is used. More... | |
warning (string $message, string $file='', int $line=0) | |
Handles warnings, saves them to $warn and prints them or calls die() depending on the flags. More... | |
![]() | |
__construct (string $root='', array $options=null) | |
Builds some complex regular expressions and optinally sets the file root directory. More... | |
setOption (string $option, $value) | |
Sets the option for the template class. More... | |
setOptions (array $options) | |
Sets the options for the template class. More... | |
show (string $block=self::IT_DEFAULT_BLOCK) | |
Print a certain block with all replacements done. More... | |
get (string $block=self::IT_DEFAULT_BLOCK) | |
Returns a block with all replacements done. More... | |
parse (string $block=self::IT_DEFAULT_BLOCK, bool $flag_recursion=false) | |
Parses the given block. More... | |
parseCurrentBlock () | |
Parses the current block. More... | |
setVariable ($variable, $value='') | |
Sets a variable value. More... | |
setCurrentBlock (string $block=self::IT_DEFAULT_BLOCK) | |
Sets the name of the current block that is the block where variables are added. More... | |
touchBlock (string $block) | |
Preserves an empty block even if removeEmptyBlocks is true. More... | |
free () | |
Clears all datafields of the object. More... | |
setTemplate (string $template, bool $removeUnknownVariables=true, bool $removeEmptyBlocks=true) | |
Sets the template. More... | |
loadTemplatefile (string $filename, bool $removeUnknownVariables=true, bool $removeEmptyBlocks=true) | |
Reads a template file from the disk. More... | |
setRoot (string $root) | |
Sets the file root. More... | |
buildBlockvariablelist () | |
Build a list of all variables within of a block. More... | |
findBlocks (string $string) | |
Recusively builds a list of all blocks within the template. More... | |
getFile (string $filename) | |
Reads a file from disk and returns its content. More... | |
_addPregDelimiters (string $str) | |
Adds delimiters to a string, so it can be used as a pattern in preg_* functions. More... | |
_preserveOpeningDelimiter (string $str) | |
Replaces an opening delimiter by a special string. More... | |
errorMessage (int $value, string $blockname='') | |
Return a textual error message for a IT error code. More... | |
Data Fields | |
array | $vars = [] |
variablen die immer in jedem block ersetzt werden sollen More... | |
string | $activeBlock = '' |
Aktueller Block Der wird gemerkt bei der berladenen Funktion setCurrentBlock, damit beim ParseBlock vorher ein replace auf alle Variablen gemacht werden kann, die mit dem BLockname anfangen. More... | |
![]() | |
array | $warn = [] |
Array with all warnings. More... | |
bool | $printWarning = false |
Print warnings? More... | |
bool | $haltOnWarning = false |
Call die() on warning? More... | |
string | $checkblocknameRegExp = '' |
RegExp used to test for a valid blockname. More... | |
string | $functionPrefix = 'func_' |
Functionnameprefix used when searching function calls in the template. More... | |
string | $functionnameRegExp = '[_a-zA-Z]+[A-Za-z_0-9]*' |
Functionname RegExp. More... | |
string | $functionRegExp = '' |
RegExp used to grep function calls in the template. More... | |
array | $functions = [] |
List of functions found in the template. More... | |
array | $callback = [] |
List of callback functions specified by the user. More... | |
![]() | |
const | IT_OK = 1 |
const | IT_ERROR = -1 |
const | IT_TPL_NOT_FOUND = -2 |
const | IT_BLOCK_NOT_FOUND = -3 |
const | IT_BLOCK_DUPLICATE = -4 |
const | IT_UNKNOWN_OPTION = -6 |
const | IT_DEFAULT_BLOCK = '__global__' |
array | $err = [] |
Contains the error objects. More... | |
bool | $clearCache = false |
Clear cache on get()? More... | |
string | $openingDelimiter = '{' |
First character of a variable placeholder ( _{_VARIABLE} ). More... | |
string | $closingDelimiter = '}' |
Last character of a variable placeholder ( {VARIABLE_}_ ). More... | |
string | $blocknameRegExp = '[\.0-9A-Za-z_-]+' |
RegExp matching a block in the template. More... | |
string | $variablenameRegExp = '[\.0-9A-Za-z_-]+' |
RegExp matching a variable placeholder in the template. More... | |
string | $variablesRegExp = '' |
RegExp used to find variable placeholder, filled by the constructor. More... | |
string | $removeVariablesRegExp = '' |
RegExp used to strip unused variable placeholder. More... | |
bool | $removeUnknownVariables = true |
Controls the handling of unknown variables, default is remove. More... | |
bool | $removeEmptyBlocks = true |
Controls the handling of empty blocks, default is remove. More... | |
string | $blockRegExp = '' |
RegExp used to find blocks an their content, filled by the constructor. More... | |
string | $currentBlock = self::IT_DEFAULT_BLOCK |
Name of the current block. More... | |
string | $template = '' |
Content of the template. More... | |
array | $blocklist = [] |
Array of all blocks and their content. More... | |
array | $blockdata = [] |
Array with the parsed content of a block. More... | |
array | $blockvariables = [] |
Array of variables in a block. More... | |
array | $blockparents = [] |
Array of block parents. More... | |
array | $blockinner = [] |
Array of inner blocks of a block. More... | |
array | $touchedBlocks = [] |
List of blocks to preverse even if they are "empty". More... | |
array | $variableCache = [] |
Variable cache. More... | |
bool | $clearCacheOnParse = false |
Clear the variable cache on parse? If you're not an expert just leave the default false. More... | |
string | $fileRoot = '' |
Root directory for all file operations. More... | |
bool | $flagBlocktrouble = false |
Internal flag indicating that a blockname was used multiple times. More... | |
bool | $flagGlobalParsed = false |
Flag indicating that the global block was parsed. More... | |
bool | $flagCacheTemplatefile = true |
EXPERIMENTAL! FIXME! Flag indication that a template gets cached. More... | |
string | $lastTemplatefile = '' |
EXPERIMENTAL! FIXME! More... | |
array | $_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 () | |
getTemplatePath (string $a_tplname, string $a_in_module=null) | |
![]() | |
init () | |
![]() | |
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. More... | |
Protected Attributes | |
bool | $il_use_cache |
string | $il_cur_key |
string | $tplName |
string | $tplPath |
string | $tplIdentifier |
![]() | |
array string | $real_filename = '' |
Holds the real template file name. More... | |
Static Protected Attributes | |
static array | $il_cache = [] |
Private Member Functions | |
fillVars () | |
all template vars defined in $vars will be replaced automatically without setting and parsing them with setVariable & parseCurrentBlock More... | |
special template class to simplify handling of ITX/PEAR
Definition at line 16 of file class.ilTemplate.php.
ilTemplate::__construct | ( | string | $file, |
bool | $flag1, | ||
bool | $flag2, | ||
string | $in_module = "" , |
||
string | $vars = ilGlobalTemplateInterface::DEFAULT_BLOCK , |
||
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|ilSystemStyleException |
Definition at line 54 of file class.ilTemplate.php.
References $tplPath, ILIAS\GlobalScreen\Provider\__construct(), getTemplateIdentifier(), getTemplatePath(), HTML_Template_IT\IT_DEFAULT_BLOCK, loadTemplatefile(), and HTML_Template_IT\setOption().
ilTemplate::addBlockFile | ( | string | $var, |
string | $block, | ||
string | $tplname, | ||
string | $in_module = null |
||
) |
Definition at line 210 of file class.ilTemplate.php.
References $DIC, $id, XapiProxy\$resp, HTML_Template_IT\$template, HTML_Template_ITX\addBlock(), HTML_Template_IT\getFile(), getTemplateIdentifier(), getTemplatePath(), and ilUIHookPluginGUI\KEEP.
ilTemplate::blockExists | ( | string | $a_blockname | ) |
Definition at line 121 of file class.ilTemplate.php.
Referenced by ilTinyMCE\handleImgContextMenuItem().
|
private |
all template vars defined in $vars will be replaced automatically without setting and parsing them with setVariable & parseCurrentBlock
Definition at line 251 of file class.ilTemplate.php.
References ILIAS\LTI\ToolProvider\$key, and HTML_Template_IT\setVariable().
Referenced by parseCurrentBlock(), and touchBlock().
ilTemplate::get | ( | string | $part = ilGlobalTemplateInterface::DEFAULT_BLOCK | ) |
Definition at line 130 of file class.ilTemplate.php.
References $DIC, XapiProxy\$resp, getUnmodified(), and ilUIHookPluginGUI\KEEP.
Referenced by ilCalendarBlockGUI\fillDataSection(), ilSCORMExplorer\formatHeader(), ilContainerSelectionExplorer\formatHeader(), ilCalendarViewGUI\getContentByPlugins(), ilAsyncPropertyFormGUI\getErrorMessageTemplate(), ilRepositoryObjectSearchBlockGUI\getLegacyContent(), ilWikiFunctionsBlockGUI\getLegacyContent(), ilCalendarSelectionBlockGUI\getLegacyContent(), ilCalendarBlockGUI\getLegacyContent(), ilPDNewsBlockGUI\showFeedUrl(), ilNewsForContextBlockGUI\showFeedUrl(), and ilNewsForContextBlockGUI\showNews().
ilTemplate::getTemplateIdentifier | ( | string | $a_tplname, |
string | $a_in_module = null |
||
) |
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
Definition at line 367 of file class.ilTemplate.php.
Referenced by __construct(), and addBlockFile().
|
protected |
ilSystemStyleException |
Definition at line 311 of file class.ilTemplate.php.
References ilStyleDefinition\getCurrentSkin(), and ilStyleDefinition\getCurrentStyle().
Referenced by __construct(), and addBlockFile().
ilTemplate::getUnmodified | ( | string | $part = ilGlobalTemplateInterface::DEFAULT_BLOCK | ) |
ilTemplateException |
Definition at line 159 of file class.ilTemplate.php.
References ilGlobalTemplateInterface\DEFAULT_BLOCK, and ILIAS\Repository\get().
Referenced by get().
|
protected |
Definition at line 83 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::loadTemplatefile | ( | string | $filename, |
bool | $removeUnknownVariables = true , |
||
bool | $removeEmptyBlocks = true |
||
) |
Definition at line 266 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(), ilUIHookPluginGUI\KEEP, and HTML_Template_IT\setTemplate().
Referenced by __construct().
ilTemplate::parseCurrentBlock | ( | string | $part = ilGlobalTemplateInterface::DEFAULT_BLOCK | ) |
ilTemplateException |
Definition at line 202 of file class.ilTemplate.php.
References fillVars().
Referenced by ilMDEditorGUI\__fillSubelements(), ilContainerSessionsContentGUI\addFooterRow(), ilContainerRenderer\addHeaderRow(), ilContainerGUI\addHeaderRow(), ilContainerGUI\addMessageRow(), ilMiniCalendarGUI\addMiniMonth(), ilCalendarBlockGUI\addMiniMonth(), ilExerciseGSToolProvider\addSection(), ilContainerRenderer\addSeparatorRow(), ilContainerRenderer\addStandardRow(), ilCalendarBlockGUI\addSubscriptionButton(), ilRecurrenceInputGUI\buildWeekDaySelection(), ilKprimChoiceCorrectionsInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilTimingsCronReminder\fillObjectListForMailBody(), ilStudyProgrammeProgressListGUI\fillTemplate(), ilStudyProgrammeExpandableProgressListGUI\fillTemplate(), ilSCORMExplorer\formatHeader(), ilContainerSelectionExplorer\formatHeader(), ilSearchRootSelector\formatHeader(), ilECSNodeMappingLocalExplorer\formatHeader(), ilECSNodeMappingCmsExplorer\formatHeader(), ilPasteIntoMultipleItemsExplorer\formatHeader(), ilRepositoryExplorer\formatHeader(), ilECSNodeMappingLocalExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilExplorer\formatObject(), ilCalendarViewGUI\getContentByPlugins(), ilAsyncPropertyFormGUI\getErrorMessageTemplate(), ilWikiFunctionsBlockGUI\getLegacyContent(), ilCalendarSelectionBlockGUI\getLegacyContent(), ilSCORMExplorer\getOutputIcons(), ilAssLongmenuCorrectionsInputGUI\insert(), ilMailFormAttachmentPropertyGUI\insert(), ilOrgUnitAuthorityInputGUI\insert(), ilCustomInputGUI\insert(), ilHiddenInputGUI\insert(), ilAssErrorTextCorrectionsInputGUI\insert(), ilAssSingleChoiceCorrectionsInputGUI\insert(), ilAssClozeTestCombinationVariantsInputGUI\insert(), ilAssMatchingPairCorrectionsInputGUI\insert(), ilImagemapCorrectionsInputGUI\insert(), ilAssMultipleChoiceCorrectionsInputGUI\insert(), ilFontSizeInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilGloAdvColSortInputGUI\insert(), ilNumericStyleValueInputGUI\insert(), ilManualPlaceholderInputGUI\insert(), ilRadioGroupInputGUI\insert(), ilFormSectionHeaderGUI\insert(), ilTextWizardInputGUI\insert(), ilWidthHeightInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilEMailInputGUI\insert(), ilImageFileInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilUserLoginInputGUI\insert(), ilAssAnswerCorrectionsInputGUI\insert(), ilAdvSelectInputGUI\insert(), ilLocationInputGUI\insert(), ilNestedListInputGUI\insert(), ilCheckboxGroupInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilTypicalLearningTimeInputGUI\insert(), ilNonEditableValueGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), ilTRBLNumericStyleValueInputGUI\insert(), ilCheckboxInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilChatroomAuthInputGUI\insert(), ilDurationInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilFileWizardInputGUI\insert(), ilCSSRectInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilSelectInputGUI\insert(), ilMultiSelectInputGUI\insert(), ilExplorerSelectInputGUI\insert(), ilScheduleInputGUI\insert(), ilCombinationInputGUI\insert(), ilImageWizardInputGUI\insert(), ilRepositorySelectorInputGUI\insert(), ilClozeGapInputBuilderGUI\insert(), ilAnswerWizardInputGUI\insert(), ilNumberInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilRecurrenceInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilDateTimeInputGUI\insert(), ilPasswordInputGUI\insert(), ilTextAreaInputGUI\insert(), ilDclGenericMultiInputGUI\insert(), ilOrgUnitGenericMultiInputGUI\insert(), ilOrgUnitMultiLineInputGUI\insert(), ilFileInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilTextInputGUI\insert(), ilDateDurationInputGUI\insert(), ilLinkInputGUI\insert(), ilPCParagraphGUI\insertCharacteristicTable(), ilPCParagraphGUI\insertHelp(), ilSCORMExplorer\insertObject(), ilNestedList\listItemStart(), ilObjStudyProgrammeTreeExplorerGUI\listItemStart(), ilExplorerBaseGUI\listItemStart(), ilNestedList\listStart(), ilSurveyExecutionGUI\outNavigationButtons(), SurveyMetricQuestion\outPreconditionSelectValue(), ilFileInputGUI\outputSuffixes(), ilTestQuestionNavigationGUI\parseButtonsBlock(), ilObjStudyProgrammeTreeExplorerGUI\parseLeafNodeButtons(), ilTestQuestionNavigationGUI\parseNavigation(), ilObjStudyProgrammeTreeExplorerGUI\parseStudyProgrammeNodeButtons(), ilAssQuestionPreviewGUI\populateGenericQuestionFeedback(), ilAssQuestionPreviewGUI\populateInstantResponseHeader(), ilAssQuestionPreviewGUI\populateInstantResponseMessage(), ilAssQuestionPreviewGUI\populateNotesPanel(), ilAssQuestionPreviewGUI\populateReachedPointsOutput(), ilAssQuestionPreviewGUI\populateSolutionOutput(), ilAssQuestionPreviewGUI\populateSpecificQuestionFeedback(), ilTestQuestionNavigationGUI\renderActionsIcon(), ilTestQuestionNavigationGUI\renderButtonInstance(), ilHierarchyFormGUI\renderChild(), ilExplorerBaseGUI\renderChilds(), ilPreviewGUI\renderCommand(), ilAssLacLegendGUI\renderCommonLegendPart(), ilContainerRenderer\renderDetails(), ilObjForumGUI\renderDraftContent(), ilAssLacLegendGUI\renderExample(), ilContainerRenderer\renderHelperGeneric(), ilTestQuestionNavigationGUI\renderIcon(), ilCalendarSelectionBlockGUI\renderItem(), ilNestedList\renderNode(), ilExplorerBaseGUI\renderNode(), ilSurveyPageEditGUI\renderPageNode(), ilObjForumGUI\renderPostContent(), ilAssLacLegendGUI\renderQuestSpecificLegendPart(), ilContainerRenderer\renderSelectAllBlock(), ilInfoScreenGUI\showLearningProgress(), and ilNewsForContextBlockGUI\showNews().
ilTemplate::setCurrentBlock | ( | string | $part = ilGlobalTemplateInterface::DEFAULT_BLOCK | ) |
ilTemplateException |
Definition at line 172 of file class.ilTemplate.php.
References ilGlobalTemplateInterface\DEFAULT_BLOCK.
Referenced by ilMDEditorGUI\__fillSubelements(), ilContainerSessionsContentGUI\addFooterRow(), ilContainerRenderer\addHeaderRow(), ilContainerGUI\addHeaderRow(), ilContainerGUI\addMessageRow(), ilMiniCalendarGUI\addMiniMonth(), ilCalendarBlockGUI\addMiniMonth(), ilExerciseGSToolProvider\addSection(), ilContainerRenderer\addSeparatorRow(), ilContainerRenderer\addStandardRow(), ilCalendarBlockGUI\addSubscriptionButton(), ilRecurrenceInputGUI\buildWeekDaySelection(), ilKprimChoiceCorrectionsInputGUI\checkInput(), ilKprimChoiceWizardInputGUI\checkInput(), ilTimingsCronReminder\fillObjectListForMailBody(), ilStudyProgrammeProgressListGUI\fillTemplate(), ilStudyProgrammeExpandableProgressListGUI\fillTemplate(), ilSCORMExplorer\formatHeader(), ilContainerSelectionExplorer\formatHeader(), ilSearchRootSelector\formatHeader(), ilECSNodeMappingLocalExplorer\formatHeader(), ilECSNodeMappingCmsExplorer\formatHeader(), ilPasteIntoMultipleItemsExplorer\formatHeader(), ilRepositoryExplorer\formatHeader(), ilECSNodeMappingLocalExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilExplorer\formatObject(), ilAsyncPropertyFormGUI\getErrorMessageTemplate(), ilWikiFunctionsBlockGUI\getLegacyContent(), ilCalendarSelectionBlockGUI\getLegacyContent(), ilSCORMExplorer\getOutputIcons(), ilAssLongmenuCorrectionsInputGUI\insert(), ilMailFormAttachmentPropertyGUI\insert(), ilOrgUnitAuthorityInputGUI\insert(), ilCustomInputGUI\insert(), ilHiddenInputGUI\insert(), ilAssErrorTextCorrectionsInputGUI\insert(), ilAssSingleChoiceCorrectionsInputGUI\insert(), ilAssClozeTestCombinationVariantsInputGUI\insert(), ilAssMatchingPairCorrectionsInputGUI\insert(), ilImagemapCorrectionsInputGUI\insert(), ilAssMultipleChoiceCorrectionsInputGUI\insert(), ilFontSizeInputGUI\insert(), ilBackgroundImageInputGUI\insert(), ilGloAdvColSortInputGUI\insert(), ilNumericStyleValueInputGUI\insert(), ilManualPlaceholderInputGUI\insert(), ilRadioGroupInputGUI\insert(), ilFormSectionHeaderGUI\insert(), ilTextWizardInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilWidthHeightInputGUI\insert(), ilEMailInputGUI\insert(), ilImageFileInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilUserLoginInputGUI\insert(), ilAssAnswerCorrectionsInputGUI\insert(), ilAdvSelectInputGUI\insert(), ilLocationInputGUI\insert(), ilNestedListInputGUI\insert(), ilCheckboxGroupInputGUI\insert(), ilTRBLBorderStyleInputGUI\insert(), ilBackgroundPositionInputGUI\insert(), ilTypicalLearningTimeInputGUI\insert(), ilNonEditableValueGUI\insert(), ilTRBLBorderWidthInputGUI\insert(), ilTRBLNumericStyleValueInputGUI\insert(), ilCheckboxInputGUI\insert(), ilColorPickerInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilChatroomAuthInputGUI\insert(), ilTRBLColorPickerInputGUI\insert(), ilDurationInputGUI\insert(), ilFileWizardInputGUI\insert(), ilCSSRectInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilSelectInputGUI\insert(), ilMultiSelectInputGUI\insert(), ilExplorerSelectInputGUI\insert(), ilScheduleInputGUI\insert(), ilCombinationInputGUI\insert(), ilImageWizardInputGUI\insert(), ilRepositorySelectorInputGUI\insert(), ilClozeGapInputBuilderGUI\insert(), ilNumberInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilErrorTextWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilRecurrenceInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilDateTimeInputGUI\insert(), ilPasswordInputGUI\insert(), ilTextAreaInputGUI\insert(), ilDclGenericMultiInputGUI\insert(), ilOrgUnitGenericMultiInputGUI\insert(), ilOrgUnitMultiLineInputGUI\insert(), ilFileInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilTextInputGUI\insert(), ilDateDurationInputGUI\insert(), ilLinkInputGUI\insert(), ilPCParagraphGUI\insertCharacteristicTable(), ilPCParagraphGUI\insertHelp(), ilPropertyFormGUI\insertItem(), ilSCORMExplorer\insertObject(), ilNestedList\listItemStart(), ilObjStudyProgrammeTreeExplorerGUI\listItemStart(), ilExplorerBaseGUI\listItemStart(), ilNestedList\listStart(), ilSurveyExecutionGUI\outNavigationButtons(), SurveyMetricQuestion\outPreconditionSelectValue(), ilFileInputGUI\outputSuffixes(), ilTestQuestionNavigationGUI\parseButtonsBlock(), ilObjStudyProgrammeTreeExplorerGUI\parseLeafNodeButtons(), ilTestQuestionNavigationGUI\parseNavigation(), ilObjStudyProgrammeTreeExplorerGUI\parseStudyProgrammeNodeButtons(), ilAssQuestionPreviewGUI\populateGenericQuestionFeedback(), ilAssQuestionPreviewGUI\populateInstantResponseHeader(), ilAssQuestionPreviewGUI\populateInstantResponseMessage(), ilAssQuestionPreviewGUI\populateNotesPanel(), ilAssQuestionPreviewGUI\populateReachedPointsOutput(), ilAssQuestionPreviewGUI\populateSolutionOutput(), ilAssQuestionPreviewGUI\populateSpecificQuestionFeedback(), ilTestQuestionNavigationGUI\renderActionsIcon(), ilTestQuestionNavigationGUI\renderButtonInstance(), ilHierarchyFormGUI\renderChild(), ilExplorerBaseGUI\renderChilds(), ilPreviewGUI\renderCommand(), ilAssLacLegendGUI\renderCommonLegendPart(), ilContainerRenderer\renderDetails(), ilObjForumGUI\renderDraftContent(), ilAssLacLegendGUI\renderExample(), ilContainerRenderer\renderHelperGeneric(), ilTestQuestionNavigationGUI\renderIcon(), ilCalendarSelectionBlockGUI\renderItem(), ilNestedList\renderNode(), ilExplorerBaseGUI\renderNode(), ilSurveyPageEditGUI\renderPageNode(), ilObjForumGUI\renderPostContent(), ilAssLacLegendGUI\renderQuestSpecificLegendPart(), ilContainerRenderer\renderSelectAllBlock(), ilObjForumGUI\renderSplitButton(), ilNewsForContextBlockGUI\showNews(), and touchBlock().
ilTemplate::touchBlock | ( | string | $block | ) |
ilTemplateException |
Definition at line 186 of file class.ilTemplate.php.
References fillVars(), HTML_Template_IT\parseCurrentBlock(), and setCurrentBlock().
Referenced by ilContainerRenderer\addHeaderRow(), ilContainerGUI\addHeaderRow(), ilContainerGUI\addMessageRow(), ilContainerRenderer\addStandardRow(), ilStudyProgrammeExpandableProgressListGUI\fillTemplate(), ilECSNodeMappingLocalExplorer\formatObject(), ilPasteIntoMultipleItemsExplorer\formatObject(), ilExplorer\formatObject(), ilWikiFunctionsBlockGUI\getLegacyContent(), ilTinyMCE\handleImgContextMenuItem(), ilExplorer\handleListEndTags(), ilExplorer\handleListStartTags(), ilPCParagraphGUI\insertCharacteristicTable(), ilNestedList\listEnd(), ilExplorerBaseGUI\listEnd(), ilNestedList\listItemEnd(), ilExplorerBaseGUI\listItemEnd(), ilNestedList\listItemStart(), ilObjStudyProgrammeTreeExplorerGUI\listItemStart(), ilExplorerBaseGUI\listItemStart(), ilNestedList\listStart(), ilExplorerBaseGUI\listStart(), ilExplorerBaseGUI\renderChilds(), ilNestedList\renderNode(), ilExplorerBaseGUI\renderNode(), and ilSurveyPageEditGUI\renderPageNode().
ilTemplate::variableExists | ( | string | $a_variablename | ) |
Definition at line 382 of file class.ilTemplate.php.
string ilTemplate::$activeBlock = '' |
Aktueller Block Der wird gemerkt bei der berladenen Funktion setCurrentBlock, damit beim ParseBlock vorher ein replace auf alle Variablen gemacht werden kann, die mit dem BLockname anfangen.
Definition at line 28 of file class.ilTemplate.php.
|
staticprotected |
Definition at line 30 of file class.ilTemplate.php.
|
protected |
Definition at line 34 of file class.ilTemplate.php.
Referenced by init().
|
protected |
Definition at line 32 of file class.ilTemplate.php.
|
protected |
Definition at line 40 of file class.ilTemplate.php.
|
protected |
Definition at line 36 of file class.ilTemplate.php.
|
protected |
Definition at line 38 of file class.ilTemplate.php.
Referenced by __construct().
array ilTemplate::$vars = [] |
variablen die immer in jedem block ersetzt werden sollen
Definition at line 21 of file class.ilTemplate.php.