jIncluder
in package
This object is responsible to load cache files.
Some jelix files needs to be compiled in PHP (templates, daos etc..) and their correspondant php content are stored in a cache file. jIncluder verify that cache file exists, and if not, it calls the correspondant compiler. Finally, it includes the cache.
Tags
Table of Contents
- $_includedFiles : array<string|int, mixed>
- list of loaded cache file.
- clear() : mixed
- inc() : mixed
- includes cache of the correspondant file selector check the cache, compile if needed, and include the cache.
- incAll() : mixed
- include a cache file which is the results of the compilation of multiple file stored in multiple modules.
- __construct() : mixed
- This is a static class, so private constructor.
Properties
$_includedFiles
list of loaded cache file.
protected
static array<string|int, mixed>
$_includedFiles
= array()
It avoids to do all verification when a file is include many time.
Tags
Methods
clear()
public
static clear() : mixed
Tags
Return values
mixed —inc()
includes cache of the correspondant file selector check the cache, compile if needed, and include the cache.
public
static inc(mixed $aSelector[, mixed $forceReloadCache = false ]) : mixed
Parameters
- $aSelector : mixed
- $forceReloadCache : mixed = false
Tags
Return values
mixed —incAll()
include a cache file which is the results of the compilation of multiple file stored in multiple modules.
public
static incAll(array<string|int, mixed> $aType[, mixed $forceReloadCache = false ][, mixed $config = null ]) : mixed
Parameters
- $aType : array<string|int, mixed>
-
= array( 'compilator class name', 'relative path of the compilator class file to lib/jelix/', 'foo.xml', // file name to compile (in each modules) 'foo.php', //cache filename );
- $forceReloadCache : mixed = false
-
force to reload the cache file
- $config : mixed = null
Tags
Return values
mixed —the value returned by the cache file (returned value of the 'require') or null the compilation has not been done or the cache file already included
__construct()
This is a static class, so private constructor.
private
__construct() : mixed