Class Support_Resources_DefaultTemplateEngine

Description

The default template engine

Located in /support/lib/Support/Resources/DefaultTemplateProvider.php (line 27)


	
			
Variable Summary
Method Summary
 Support_Resources_DefaultTemplateEngine __construct ()
 void assign (string $variable, mixed $value)
 void display (string $template, [string $cache_id = null], [string $compile_id = null])
 string fetch (string $template, [string $cache_id = null], [string $compile_id = null])
 mixed get_template_vars ([string $variable = null])
Variables
mixed $template_dir = '.' (line 28)
  • access: public
mixed $variables (line 29)
  • access: protected
Methods
Constructor __construct (line 34)

Constructor

  • access: public
Support_Resources_DefaultTemplateEngine __construct ()
assign (line 83)

Assign a variable to be available to any template processed by this engine

  • access: public
void assign (string $variable, mixed $value)
  • string $variable: The name of the variable
  • mixed $value: The value to assign
display (line 45)

Output a template

  • access: public
void display (string $template, [string $cache_id = null], [string $compile_id = null])
  • string $template: The path to the template, relative to template_dir
  • string $cache_id: Optional cache identifier
  • string $compile_id: Optional compile identifier
fetch (line 63)

Return a processed template as a string

  • access: public
string fetch (string $template, [string $cache_id = null], [string $compile_id = null])
  • string $template: The path to the template, relative to template_dir
  • string $cache_id: Optional cache identifier
  • string $compile_id: Optional compile identifier
get_template_vars (line 95)

Return the value assigned to the named variable, or all assigned variables if not provided.

  • return: The value of the variable or an associated array of all variables
  • access: public
mixed get_template_vars ([string $variable = null])
  • string $variable: The name of the variable to retrieve

Documentation generated on Wed, 25 Apr 2012 09:46:42 -0700 by phpDocumentor 1.4.3