Class Template

Description

A Template allows you to choose a template file and print the contents of that template with certain values filled in. The format of a template file is:

some html ... &lt?=$value1=> ... more html ...

  • version: $Id: Template.class.php,v 1.4 2005/01/19 21:10:15 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College

Located in /harmoni/core/utilities/Template.class.php (line 18)


	
			
Variable Summary
string $_fullPath
Method Summary
void Template (string $file, [optional $searchPaths = null])
string catchOutput (optional 0)
void output (optional 0)
Variables
string $_fullPath (line 23)
  • var: The template's full path.
  • access: private
Methods
Constructor Template (line 33)

The constructor.

  • access: public
void Template (string $file, [optional $searchPaths = null])
  • string $file: The filename or full path of the template file.
  • optional $searchPaths: mixed $searchPaths Either a string or array of strings specifying where to search for $file.
catchOutput (line 90)

Calls output() but catches whatever is printed and returns the output in a string.

  • return: The output from the template.
  • access: public
string catchOutput (optional 0)
  • optional 0: mixed $variables,... See description under TemplateInterface::output()
output (line 62)

Outputs the content of the current template with $variables containing the variable output.

  • access: public
void output (optional 0)
  • optional 0: mixed $variables,... Either an associative array or a FieldSet containing a number of [key]=>content pairs.

Documentation generated on Wed, 19 Sep 2007 10:27:14 -0400 by phpDocumentor 1.3.0RC3