phpDocumentor ZNF
Presentation
[ class tree: ZNF ] [ index: ZNF ] [ all elements ]

Class: ZNF_Presentation_XSLT

Source Location: /Presentation/XSLT.php

Class ZNF_Presentation_XSLT

Class Overview

ZNF_Presentation_XSLT class, extends the ZNF_Presentation_Render class and implements renderization with PHP XSLTProcessor.

Render XML data using package or theme XSLT.

Located in /Presentation/XSLT.php [line 40]

ZNF_Presentation_Render
   |
   --ZNF_Presentation_XSLT
Author(s): API Tags:
Access:  public

Information Tags:
Version:  SVN $Id: XSLT.php 43 2007-06-26 23:36:35Z aronnax $
Copyright:  2004-2007 The ZNF Development Team
Link:  http://www.zeronotice.org
Since:  Release 0.5.0
License:  LGPL

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From ZNF_Presentation_Render

ZNF_Presentation_Render::$_appConfig
ZNF_Presentation_Render::$_nextPath
ZNF_Presentation_Render::$_package
ZNF_Presentation_Render::$_path

Inherited From ZNF_Presentation_Render

ZNF_Presentation_Render::__construct()
Constructs a new ZNF_Presentation_Render object and sets the internal properties with application settings.
ZNF_Presentation_Render::assign()
Assigns values to template parameters.
ZNF_Presentation_Render::display()
Executes the renderization and displays the result.
ZNF_Presentation_Render::fetch()
Executes the renderization and returns the result.
ZNF_Presentation_Render::_getConstants()
Get the ZNF constants to be assigned to the templates.
ZNF_Presentation_Render::_getPackageTemplatePath()
Returns the path of a package template, tries to load the template in a predefined order.
ZNF_Presentation_Render::_getTemplatePath()
Returns the path to get the template requested.
ZNF_Presentation_Render::_getThemePath()
Returns the path of a theme, tries to find the theme base directory in a predefined order.
ZNF_Presentation_Render::_getThemeTemplatePath()
Returns the path of a theme template, tries to load the template in a predefined order.

[ Top ]
Property Summary
XSLTProcessor   $_xslt   The XSLTProcessor.
array   $_xsltParams   Where assigned XSLT parameters are kept.

[ Top ]
Method Summary
ZNF_Presentation_XSLT   __construct()   Constructs a new ZNF_Presentation_XSLT object and sets the internal properties with application settings.
void   __destruct()   Destroys the ZNF_Presentation_XSLT object.</>
void   assign()   Assigns values to xslt template parameters.
void   display()   Executes and displays the xslt template results.
string   fetch()   Executes and returns the xslt template results.
void   _assignConstants()   Assign to xslt template the ZNF constants.

[ Top ]
Properties
XSLTProcessor   $_xslt [line 49]

The XSLTProcessor.

API Tags:
Access:  protected


[ Top ]
array   $_xsltParams = array() [line 57]

Where assigned XSLT parameters are kept.

API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 68]

  ZNF_Presentation_XSLT __construct( [string $package = null], [ZNF_Action_ActionMapping $mapping = null]  )

Constructs a new ZNF_Presentation_XSLT object and sets the internal properties with application settings.

Parameters:
string   $package:  Name of the package to which the xslt template refers, leave null this parameter to refer to the theme xslt template
ZNF_Action_ActionMapping   $mapping: 

API Tags:
Access:  public


Redefinition of:
ZNF_Presentation_Render::__construct()
Constructs a new ZNF_Presentation_Render object and sets the internal properties with application settings.

[ Top ]
Destructor __destruct  [line 158]

  void __destruct( )

Destroys the ZNF_Presentation_XSLT object.</>


API Tags:
Access:  public


[ Top ]
assign  [line 127]

  void assign( string $param, mixed $value  )

Assigns values to xslt template parameters.

Parameters:
string   $param:  The xslt template parameter name
mixed   $value:  The value to assign

API Tags:
Access:  public


Redefinition of:
ZNF_Presentation_Render::assign()
Assigns values to template parameters.

[ Top ]
display  [line 105]

  void display( string $template, [string $xml = null]  )

Executes and displays the xslt template results.

Parameters:
string   $template:  File name of the xslt template
string   $xml:  The XML document

API Tags:
Access:  public


Redefinition of:
ZNF_Presentation_Render::display()
Executes the renderization and displays the result.

[ Top ]
fetch  [line 83]

  string fetch( string $template, [string $xml = null]  )

Executes and returns the xslt template results.

Parameters:
string   $template:  File name of the xslt template
string   $xml:  The XML document

API Tags:
Access:  public


Redefinition of:
ZNF_Presentation_Render::fetch()
Executes the renderization and returns the result.

[ Top ]
_assignConstants  [line 139]

  void _assignConstants( )

Assign to xslt template the ZNF constants.


API Tags:
Access:  protected


[ Top ]

Documentation generated on Wed, 14 Nov 2007 23:47:43 +0100 by phpDocumentor 1.4.0