Constructs a new ZNF_Presentation_Render object and sets the internal properties with application settings.
Parameters:
|
string |
$package: |
Name of the package to which the template refers, leave null this parameter to refer to the theme template |
|
ZNF_Action_ActionMapping |
$mapping: |
|
API Tags:
Redefined in descendants as:
void assign(
string
$param, mixed
$value
)
|
|
Assigns values to template parameters.
Parameters:
|
string |
$param: |
The template parameter name |
|
mixed |
$value: |
The value to assign |
API Tags:
Redefined in descendants as:
void display(
string
$template, [mixed
$data = null]
)
|
|
Executes the renderization and displays the result.
Parameters:
|
string |
$template: |
File name of the template |
|
mixed |
$data: |
Additional data to process |
API Tags:
Redefined in descendants as:
string fetch(
string
$template, [mixed
$data = null]
)
|
|
Executes the renderization and returns the result.
Parameters:
|
string |
$template: |
File name of the template |
|
mixed |
$data: |
Additional data to process |
API Tags:
Redefined in descendants as:
Get the ZNF constants to be assigned to the templates.
- znf.baseHref: concatenation of hostname and relative path of the
public script directory, used as prefix in hyperlinks in order to
refer to correct URIs.
- znf.actionIndex: Name of the GET attribute used to select the
action to execute.
- znf.moduleIndex: Name of the GET attribute used to select the
module configuration.
- znf.changeModuleIndex: Name of the GET attribute used to select
persistently the module configuration.
- znf.themePath: relative path of the current theme, used as prefix
in hyperlinks (css, javascripts, images...) in order to refer to
correct paths.
- znf.packagePath: relative path of the package in use, used as
prefix in hyperlinks (css, javascripts, images...) in order to refer
to correct paths.
- znf.path: current action path.
- znf.nextPath: next action path to request.
- znf.credits: ZNF credits.
API Tags:
string _getPackageTemplatePath(
string
$template
)
|
|
Returns the path of a package template, tries to load the template in a predefined order.
- overloaded package template in the current theme and lang path
- current package and current lang template
- current package and default lang template
Parameters:
|
string |
$template: |
File name of the template to get |
API Tags:
string _getTemplatePath(
string
$template
)
|
|
Returns the path to get the template requested.
Parameters:
|
string |
$template: |
File name of the template |
API Tags:
Returns the path of a theme, tries to find the theme base directory in a predefined order.
- current theme and current lang theme base directory
- current theme and default lang theme base directory
- default theme and default lang theme base directory
API Tags:
string _getThemeTemplatePath(
string
$template
)
|
|
Returns the path of a theme template, tries to load the template in a predefined order.
- current theme and current lang template
- current theme and default lang template
- default theme and default lang template
Parameters:
|
string |
$template: |
File name of the template to get |
API Tags: