Jelix 1.8.13

jEventCompiler
in package
implements jIMultiFileCompiler

Tags
subpackage

events

Interfaces, Classes and Traits

jIMultiFileCompiler
interface for compiler which needs many source files The PHP file generated by the compiler should check itself if it is still valid. The file should have a "return" statement with a boolean : true if it is ok, false if it should be recompiled.

Table of Contents

$eventList  : array<string|int, mixed>
list of listeners for each event.
__construct()  : mixed
compileItem()  : bool
parse one of needed file.
endCompile()  : mixed
save the results in a temporary file called at the end of the compilation.

Properties

$eventList

list of listeners for each event.

private array<string|int, mixed> $eventList

key = event name, value = array('moduleName', 'listenerName')

Tags

Methods

compileItem()

parse one of needed file.

public compileItem(mixed $sourceFile, mixed $module) : bool
Parameters
$sourceFile : mixed

the file selector

$module : mixed

the module name of the file

Tags
Return values
bool

true : process ok

endCompile()

save the results in a temporary file called at the end of the compilation.

public endCompile(mixed $cachefile) : mixed
Parameters
$cachefile : mixed

the name of cache file

Tags
Return values
mixed

Search results