Class TemplateTAL

Description

Implements interfaces:

PHPTAL Template engine wrapper

It integrates the TemplateManager which allows configuration of which template to use, maps the exceptions thrown by PHPTAL (http://phptal.motion-twin.com) to TemplateExceptions and automatically adds Template repositories (app-local, local and global data repository). Also the TemplateGlobal object is added automatically.

Located in /phpsatk-lib/global/com.motion-twin.phptal/template.tal.php (line 53)

PHPTAL
   |
   --TemplateTAL
Direct descendents
Class Description
DatasetViewTree View for hierarchical datasets
Form Form generator
XDOViewSimple View generator for simple XDO views
DataSetViewTablePaged View for paged flat datasets
Confirmation Simple secured confirmation dialog
Method Summary
TemplateTAL __construct (string $path, [mixed $alternate = null])
string getType ()
void prepare ()
string render ()
Methods
Constructor __construct (line 71)

Initializes a new PHPTAL Template

This function integrates phpSATk with the PHPTAL distribution. It adds two repositories where templates can be stored:

  • a app-local one <appdir>/data/template
  • a local one <sat-local>/data/template
  • a global <sat-global>/data/template
This functions use the TemplateManager which may be used for letting the user choose from different templates. It is configures via the application.xml file.

TemplateTAL __construct (string $path, [mixed $alternate = null])
  • string $path: Alternate path to template (esp. when using IDs)

Redefined in descendants as:
getType (line 115)

Returns the content type of this 'form'

  • access: public
string getType ()
prepare (line 102)

Prepares the template for execution

This function primarily maps PHPTALs exceptions to TemplateExceptions

  • access: public
void prepare ()
render (line 126)

Get template output

Adds the template global object. Then executes the template;

  • access: public
string render ()

Redefined in descendants as:
renderDOM (line 137)

Get template output in the form of a DOMTree

  • access: public
XMLString renderDOM ()

Documentation generated on Mon, 21 May 2007 10:35:21 +0200 by phpDocumentor 1.3.0RC5