Jelix 1.7.18

jTplCompiler extends CompilerCore
in package
implements jISimpleCompiler

This is the compiler of templates: it converts a template into a php file.

Tags
subpackage

jtpl

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

Methods

addMetaContent()

public addMetaContent(mixed $content) : mixed
Parameters
$content : mixed
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

Return values
bool

true if ok

doError0()

public doError0(mixed $err) : mixed
Parameters
$err : mixed
Return values
mixed

doError1()

public doError1(mixed $err, mixed $arg) : mixed
Parameters
$err : mixed
$arg : mixed
Return values
mixed

doError2()

public doError2(mixed $err, mixed $arg1, mixed $arg2) : mixed
Parameters
$err : mixed
$arg1 : mixed
$arg2 : mixed
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

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
Return values
mixed

getCompiledLocaleRetriever()

protected getCompiledLocaleRetriever(mixed $locale) : mixed
Parameters
$locale : mixed
Return values
mixed

Search results