jTplCompiler
extends CompilerCore
in package
implements
jISimpleCompiler
This is the compiler of templates: it converts a template into a php file.
Tags
Interfaces, Classes and Traits
- jISimpleCompiler
- interface for compiler which needs only one source file.
Table of Contents
- $castorPluginsPath : mixed
- __construct() : mixed
- addMetaContent() : mixed
- compile() : bool
- Launch the compilation of a template.
- doError0() : mixed
- doError1() : mixed
- doError2() : mixed
- _getPlugin() : array<string|int, mixed>|bool
- Try to find a plugin.
- _saveCompiledString() : mixed
- getCompiledLocaleRetriever() : mixed
Properties
$castorPluginsPath
protected
static mixed
$castorPluginsPath
Tags
Methods
__construct()
public
__construct() : mixed
Tags
Return values
mixed —addMetaContent()
public
addMetaContent(mixed $content) : mixed
Parameters
- $content : mixed
Tags
Return values
mixed —compile()
Launch the compilation of a template.
public
compile(jSelectorTpl $selector) : bool
Store the result (a php content) into a cache file given by the selector.
Parameters
- $selector : jSelectorTpl
-
the template selector
Tags
Return values
bool —true if ok
doError0()
public
doError0(mixed $err) : mixed
Parameters
- $err : mixed
Tags
Return values
mixed —doError1()
public
doError1(mixed $err, mixed $arg) : mixed
Parameters
- $err : mixed
- $arg : mixed
Tags
Return values
mixed —doError2()
public
doError2(mixed $err, mixed $arg1, mixed $arg2) : mixed
Parameters
- $err : mixed
- $arg1 : mixed
- $arg2 : mixed
Tags
Return values
mixed —_getPlugin()
Try to find a plugin.
protected
_getPlugin(string $type, string $name) : array<string|int, mixed>|bool
Parameters
- $type : string
-
type of plugin (function, modifier...)
- $name : string
-
the plugin name
Tags
Return values
array<string|int, mixed>|bool —an array containing the path of the plugin and the name of the plugin function, or false if not found
_saveCompiledString()
protected
_saveCompiledString(mixed $cachefile, mixed $result) : mixed
Parameters
- $cachefile : mixed
- $result : mixed
Tags
Return values
mixed —getCompiledLocaleRetriever()
protected
getCompiledLocaleRetriever(mixed $locale) : mixed
Parameters
- $locale : mixed