\Smarty_Internal_Utility

Utility class

Summary

Methods
Properties
Constants
compileAllTemplates()
compileAllConfig()
clearCompiledTemplate()
getTags()
testInstall()
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(  $extention, boolean  $force_compile, integer  $time_limit, integer  $max_errors, \Smarty  $smarty) : integer

Compile all template files

Parameters

$extention
boolean $force_compile

force all to recompile

integer $time_limit

set maximum execution time

integer $max_errors

set maximum allowed errors

\Smarty $smarty

Smarty instance

Returns

integer —

number of template files compiled

compileAllConfig()

compileAllConfig(  $extention, boolean  $force_compile, integer  $time_limit, integer  $max_errors, \Smarty  $smarty) : integer

Compile all config files

Parameters

$extention
boolean $force_compile

force all to recompile

integer $time_limit

set maximum execution time

integer $max_errors

set maximum allowed errors

\Smarty $smarty

Smarty instance

Returns

integer —

number of config files compiled

clearCompiledTemplate()

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

Delete compiled template file

Parameters

string $resource_name

template name

string $compile_id

compile id

integer $exp_time

expiration time

\Smarty $smarty

Smarty instance

Returns

integer —

number of template files deleted

getTags()

getTags(\Smarty_Internal_Template  $template) : array

Return array of tag/attributes of all tags used by an template

Parameters

\Smarty_Internal_Template $template

Returns

array —

of tag/attributes

testInstall()

testInstall(\Smarty  $smarty, array  $errors = null) : boolean

diagnose Smarty setup

If $errors is secified, the diagnostic report will be appended to the array, rather than being output.

Parameters

\Smarty $smarty

Smarty instance to test

array $errors

array to push results into rather than outputting them

Returns

boolean —

status, true if everything is fine, false else

__construct()

__construct() 

private constructor to prevent calls creation of new instances