X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Finterfaces%2Ftemplate%2Fclass_CompileableTemplate.php;h=d3f2f764cb2563ba31a72513f020b171c667695a;hp=5f426564245153f39d756831b58058e121c9d0a8;hb=84dcf5e4e7a6bbe55c6beac203729a82e5a2c2de;hpb=51b361bbb129164973badaa4480c1aaa2306685d diff --git a/inc/classes/interfaces/template/class_CompileableTemplate.php b/inc/classes/interfaces/template/class_CompileableTemplate.php index 5f426564..d3f2f764 100644 --- a/inc/classes/interfaces/template/class_CompileableTemplate.php +++ b/inc/classes/interfaces/template/class_CompileableTemplate.php @@ -189,6 +189,95 @@ interface CompileableTemplate extends FrameworkInterface { * @return $compactedContent The compacted content */ function compactContent ($uncompactedContent); + + /** + * Getter for given variable group + * + * @param $variableGroup Variable group to check + * @return $varStack Found variable group + */ + function getVarStack ($variableGroup); + + /** + * Settter for variable group + * + * @param $groupName Name of variable group + * @param $add Whether add this group + * @return void + */ + function setVariableGroup ($groupName, $add = TRUE); + + /** + * Getter for template type + * + * @return $templateType The current template's type + */ + function getTemplateType (); + + /** + * Getter for base path + * + * @return $templateBasePath The relative base path for all templates + */ + function getTemplateBasePath (); + + /** + * Getter for generic base path + * + * @return $templateBasePath The relative base path for all templates + */ + function getGenericBasePath (); + + /** + * Getter for template extension + * + * @return $templateExtension The file extension for all uncompiled + * templates + */ + function getRawTemplateExtension (); + + /** + * Getter for code-template extension + * + * @return $codeExtension The file extension for all code- + * templates + */ + function getCodeTemplateExtension (); + + /** + * Getter for raw template data + * + * @return $rawTemplateData The raw data from the template + */ + function getRawTemplateData (); + + /** + * Load a specified web template into the engine + * + * @param $template The web template we shall load which is located in + * 'html' by default + * @return void + */ + function loadWebTemplate ($template); + + /** + * Assigns a lot variables into the stack of currently loaded template. + * This method should only be used in very rare circumstances, e.g. when + * you have to copy a whole set of variables into the template engine. + * Before you use this method, please make sure you have considered all + * other possiblities. + * + * @param $variables An array with variables to be assigned + * @return void + */ + function assignMultipleVariables (array $variables); + + /** + * Getter for variable group array + * + * @return $variableGroups All variable groups + */ + function getVariableGroups (); } // [EOF]