jSelectorTpl
extends jSelectorModule
in package
Template selector.
syntax : "module~tplName". file : templates/tplName.tpl .
Tags
Table of Contents
- $module : mixed
- $outputType : mixed
- $resource : mixed
- $trusted : mixed
- $userFunctions : mixed
- $userModifiers : mixed
- $_cachePath : mixed
- $_cachePrefix : mixed
- $_cacheSuffix : mixed
- $_compiler : mixed
- $_compilerPath : mixed
- $_dirname : mixed
- $_path : mixed
- $_suffix : mixed
- $_useMultiSourceCompiler : mixed
- $type : mixed
- __construct() : mixed
- getCompiledFilePath() : string
- getCompiler() : null|object
- getPath() : string
- toString() : string
- useMultiSourceCompiler() : bool
- _createCachePath() : mixed
- _createPath() : mixed
- checkThemePath() : mixed
- findPath() : mixed
Properties
$module
public
mixed
$module
Tags
$outputType
public
mixed
$outputType
= 'html'
Tags
$resource
public
mixed
$resource
Tags
$trusted
public
mixed
$trusted
= \true
Tags
$userFunctions
public
mixed
$userFunctions
= array()
Tags
$userModifiers
public
mixed
$userModifiers
= array()
Tags
$_cachePath
protected
mixed
$_cachePath
Tags
$_cachePrefix
protected
mixed
$_cachePrefix
Tags
$_cacheSuffix
protected
mixed
$_cacheSuffix
= '.php'
Tags
$_compiler
protected
mixed
$_compiler
Tags
$_compilerPath
protected
mixed
$_compilerPath
Tags
$_dirname
protected
mixed
$_dirname
= 'templates/'
Tags
$_path
protected
mixed
$_path
Tags
$_suffix
protected
mixed
$_suffix
= '.tpl'
Tags
$_useMultiSourceCompiler
protected
mixed
$_useMultiSourceCompiler
= \false
Tags
$type
protected
mixed
$type
= 'tpl'
Tags
Methods
__construct()
public
__construct(string $sel[, string $outputtype = '' ][, bool $trusted = true ]) : mixed
Parameters
- $sel : string
-
the template selector
- $outputtype : string = ''
-
the type of output (html, text..) By default, it takes the response type
- $trusted : bool = true
-
says if the template file is trusted or not
Tags
Return values
mixed —getCompiledFilePath()
public
getCompiledFilePath() : string
Tags
Return values
string —file path of the compiled file (if the main file should be compiled by jelix)
getCompiler()
public
getCompiler() : null|object
Tags
Return values
null|object —the compiler used to compile file
getPath()
public
getPath() : string
Tags
Return values
string —file path corresponding to the resource pointing by the selector
toString()
public
toString([mixed $full = false ]) : string
Parameters
- $full : mixed = false
-
true if you want a full selector ("type:...")
Tags
Return values
string —the selector
useMultiSourceCompiler()
public
useMultiSourceCompiler() : bool
Tags
Return values
bool —true if the compiler compile many file at one time
_createCachePath()
protected
_createCachePath() : mixed
Tags
Return values
mixed —_createPath()
protected
_createPath() : mixed
Tags
Return values
mixed —checkThemePath()
protected
checkThemePath(mixed $theme, mixed $lpath, mixed $flpath, mixed $mpath, mixed $path) : mixed
Parameters
- $theme : mixed
- $lpath : mixed
- $flpath : mixed
- $mpath : mixed
- $path : mixed
Tags
Return values
mixed —findPath()
protected
findPath(mixed $config, mixed $lpath, mixed $flpath) : mixed
Parameters
- $config : mixed
- $lpath : mixed
- $flpath : mixed