extends |
Smarty_Internal_TemplateCompilerBase |
---|
Class SmartyTemplateCompiler
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(string $lexer_class, string $parser_class, Smarty $smarty)
Initialize compiler
Initialize compiler Parameters
Overrides |
# | ||||||
protected
|
doCompile(mixed $_content, bool $isTemplateSource = false): bool
method to compile a Smarty template
method to compile a Smarty template Parameters
Returnstrue if compiling succeeded, false if it failed Throws
Implements |
# | ||||||
public
|
registerPostCompileCallback(callback $callback, array $parameter = [], string $key = null, bool $replace = false)
Register a post compile callback
- when the callback is called after template compiling the compiler object will be…
Register a post compile callback
Parameters
Overrides |
# | ||||||
public
|
unregisterPostCompileCallback(string $key)
Remove a post compile callback
Remove a post compile callback Parameters
Overrides |
# |
Properties | |||
---|---|---|---|
public
|
string
|
$lexer_class
|
# |
public
|
string
|
$parser_class
|
# |
public
|
array
|
$local_var = []
|
# |
public
|
array
|
$postCompileCallbacks = []
|
# |
public
|
string
|
$prefixCompiledCode = ''
|
# |
public
|
string
|
$postfixCompiledCode = ''
|
# |