PHP Class Webiny\Component\TemplateEngine\Drivers\Smarty\AbstractSmartyExtension

Inheritance: implements Webiny\Component\TemplateEngine\Drivers\Smarty\SmartyExtensionInterface
Show file Open project: Webiny/Framework

Public Methods

Method Description
getBlockFunctions ( ) : array Register block functions.
getCompilerFunctions ( ) : array Register compiler functions.
getFunctions ( ) : array Register template functions.
getInserts ( ) : array Register insets.
getModifiers ( ) : array Register modifiers.
getOutputFilters ( ) : array Register output filters.
getPostFilters ( ) : array Register post filters.
getPreFilters ( ) : array Register pre filters.
getResources ( ) : array Register resources.

Method Details

getBlockFunctions() public method

Block functions are functions of the form: {func} .. {/func}. In other words, they enclose a template block and operate on the contents of this block.
public getBlockFunctions ( ) : array
return array of SmartySimplePlugin

getCompilerFunctions() public method

Compiler functions are called only during compilation of the template. They are useful for injecting PHP code or time-sensitive static content into the template.
public getCompilerFunctions ( ) : array
return array of SmartySimplePlugin

getFunctions() public method

Register template functions.
public getFunctions ( ) : array
return array of SmartySimplePlugin

getInserts() public method

Insert plugins are used to implement functions that are invoked by {insert} tags in the template.
public getInserts ( ) : array
return array of SmartySimplePlugin

getModifiers() public method

Modifiers are little functions that are applied to a variable in the template before it is displayed or used in some other context. Modifiers can be chained together.
public getModifiers ( ) : array
return array of SmartySimplePlugin

getOutputFilters() public method

Output filter plugins operate on a template's output, after the template is loaded and executed, but before the output is displayed.
public getOutputFilters ( ) : array
return array of SmartySimplePlugin

getPostFilters() public method

Postfilters are used to process the compiled output of the template (the PHP code) immediately after the compilation is done but before the compiled template is saved to the filesystem.
public getPostFilters ( ) : array
return array of SmartySimplePlugin

getPreFilters() public method

Prefilters are used to process the source of the template immediately before compilation.
public getPreFilters ( ) : array
return array of SmartySimplePlugin

getResources() public method

Resource plugins are meant as a generic way of providing template sources or PHP script components to Smarty. Some examples of resources: databases, LDAP, shared memory, sockets, and so on.
public getResources ( ) : array
return array of SmartySimplePlugin