Class: pnRender
Source Location: /pnRender.class.php
Class OverviewSmarty | --pnRender Our class |
Variables |
Methods |
Child classes:
- Theme
- pnTheme
Inherited Variables
Inherited Methods
Class Details
Class Variables
$baseuri =
[line 84]
The base URI of the site$baseurl =
[line 79]
The base URL of the site$cache_id =
[line 89]
The cache ID of the object$expose_template =
[line 99]
true if admins wants to expose the template folder, needs admin rights for pnRender too$language =
[line 74]
The current language used by the site/user$modinfo =
[line 59]
The full module info for wich the object is for$module =
[line 49]
The module in which the current template will be located$theme =
[line 64]
The current theme used by the site/user$themeinfo =
[line 69]
The full theme info for the theme used by the site/user$toplevelmodule =
[line 54]
The primary module for this page$userdb =
[line 94]
Set if Xanthia is an active module and templates stored in databaseClass Methods
constructor pnRender [line 108]
|
The class constructor.
Parameters:
method add_core_data [line 564]
|
add core data to the template
This function adds some basic data to the template depending on the current user and the PN settings.
Tags:
Parameters:
method clear_all_cache [line 509]
|
clear the entire contents of cache (all templates)
Smarty's original clear_all_cache function calls the subclasse's clear_cache function. As we always prepend the module name, this doesn't work here...
Tags:
Parameters:
method clear_cache [line 488]
|
clears the cache for a specific template
This returns true if there is a valid cache for this template. Right now, we are just passing it to the original Smarty function. We might introduce a function to decide if the cache is in need to be refreshed...
Parameters:
method display [line 436]
|
executes & displays the template results
This displays the template. Supply a valid template name. As an optional second parameter, you can pass a cache id. As an optional third parameter, you can pass a compile id.
Parameters:
method fetch [line 396]
|
executes & returns the template results
This returns the template output instead of displaying it. Supply a valid template name. As an optional second parameter, you can pass a cache id. As an optional third parameter, you can pass a compile id.
Tags:
Parameters:
method getInstance [line 258]
|
setup the current instance of the pnRender class and return it back to the module
Parameters:
method get_template_path [line 302]
|
Checks which path to use for required template
Overridden in child classes as:
- Theme::get_template_path()
- Checks which path to use for required template
Parameters:
method is_cached [line 453]
|
finds out if a template is already cached
This returns true if there is a valid cache for this template. Right now, we are just passing it to the original Smarty function. We might introduce a function to decide if the cache is in need to be refreshed...
Parameters:
method template_exists [line 292]
|
Checks whether requested template exists.
