Class Template

Description

Template class

This class is template wrapper, responsible for forwarding variables to the templates and including them.

  • version: 1.0

Located in /environment/classes/template/Template.class.php (line 12)


	
			
Method Summary
boolean assign (string $name, mixed $value)
boolean display (string $template)
string fetch (string $template)
null includeTemplate (string $template)
Template instance (void 0)
Methods
assign (line 29)

Assign specific variable to the template

  • throws: InvalidParamError
boolean assign (string $name, mixed $value)
  • string $name: Variable name
  • mixed $value: Variable value
display (line 61)

Display template

  • throws: FileDnxError
boolean display (string $template)
  • string $template: Template path or path relative to templates dir
fetch (line 43)

Display template and retur output as string

  • throws: FileDnxError
string fetch (string $template)
  • string $template: Template path (absolute path or path relative to the templates dir)
includeTemplate (line 71)

Include specific template

null includeTemplate (string $template)
  • string $template: Template name or path relative to templates dir
instance (line 87)

Return template service instance

Template instance (void 0)
  • void 0

Documentation generated on Wed, 23 Jan 2008 01:59:43 +0000 by phpDocumentor 1.4.0