Class Smarty_Internal_Utility

Description

Utility class

Located in /libs/sysplugins/smarty_internal_utility.php (line 41)


	
			
Method Summary
static integer clearCompiledTemplate (string $resource_name, string $compile_id, integer $exp_time, Smarty $smarty)
static integer compileAllConfig ( $extention, bool $force_compile, int $time_limit, int $max_errors, Smarty $smarty, string $extension)
static integer compileAllTemplates ( $extention, bool $force_compile, int $time_limit, int $max_errors, Smarty $smarty, string $extension)
static array getTags (Smarty_Internal_Template $template, Smarty_Internal_Template $templae)
static bool testInstall (Smarty $smarty, [ &$errors = null], array $errors)
Methods
static method clearCompiledTemplate (line 182)

Delete compiled template file

  • return: number of template files deleted
  • access: public
static integer clearCompiledTemplate (string $resource_name, string $compile_id, integer $exp_time, Smarty $smarty)
  • string $resource_name: template name
  • string $compile_id: compile id
  • integer $exp_time: expiration time
  • Smarty $smarty: Smarty instance
static method compileAllConfig (line 124)

Compile all config files

  • return: number of config files compiled
  • access: public
static integer compileAllConfig ( $extention, bool $force_compile, int $time_limit, int $max_errors, Smarty $smarty, string $extension)
  • string $extension: config file name extension
  • bool $force_compile: force all to recompile
  • int $time_limit: set maximum execution time
  • int $max_errors: set maximum allowed errors
  • Smarty $smarty: Smarty instance
  • $extention
static method compileAllTemplates (line 61)

Compile all template files

  • return: number of template files compiled
  • access: public
static integer compileAllTemplates ( $extention, bool $force_compile, int $time_limit, int $max_errors, Smarty $smarty, string $extension)
  • string $extension: template file name extension
  • bool $force_compile: force all to recompile
  • int $time_limit: set maximum execution time
  • int $max_errors: set maximum allowed errors
  • Smarty $smarty: Smarty instance
  • $extention
static method getTags (line 249)

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

  • return: of tag/attributes
  • access: public
static array getTags (Smarty_Internal_Template $template, Smarty_Internal_Template $templae)
static method testInstall (line 266)

diagnose Smarty setup

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

  • return: status, true if everything is fine, false else
  • access: public
static bool testInstall (Smarty $smarty, [ &$errors = null], array $errors)
  • Smarty $smarty: Smarty instance to test
  • array $errors: array to push results into rather than outputting them
  • &$errors

Documentation generated on Sat, 24 Sep 2011 20:24:06 +0200 by phpDocumentor 1.4.1