\Box\Brainy\CompilerBatchUtil

Summary

Methods
Properties
Constants
compileAllTemplates()
clearCompiledTemplate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
No private properties found
N/A

Methods

compileAllTemplates()

compileAllTemplates(string  $extension, boolean  $force_compile, integer  $time_limit, integer  $max_errors, \Box\Brainy\Brainy  $smarty) : integer

Compile all template files

Parameters

string $extension

template file name extension

boolean $force_compile

force all to recompile

integer $time_limit

set maximum execution time

integer $max_errors

set maximum allowed errors

\Box\Brainy\Brainy $smarty

\Box\Brainy\Brainy instance

Returns

integer —

number of template files compiled

clearCompiledTemplate()

clearCompiledTemplate(string  $resource_name, string  $compile_id, integer  $exp_time, \Box\Brainy\Brainy  $smarty) : integer

Delete compiled template file

Parameters

string $resource_name

template name

string $compile_id

compile id

integer $exp_time

expiration time

\Box\Brainy\Brainy $smarty

\Box\Brainy\Brainy instance

Returns

integer —

number of template files deleted

__construct()

__construct() 

private constructor to prevent calls creation of new instances