Jelix 1.6.40

jIMultiFileCompiler
in

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.

Tags
subpackage

core

Table of Contents

compileItem()  : bool
parse one of needed file
endCompile()  : mixed
save the results in a temporary file called at the end of the compilation.

Methods

compileItem()

parse one of needed file

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

the file selector

$module : string

the module name of the file

Return values
bool

true : process ok

endCompile()

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

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

the name of cache file

Return values
mixed

Search results