vB_TemplateThis class implements variable-registration-based template evaluation, wrapped around the legacy template format. It will be extended in the future to support the new format/syntax without requiring changes to code written with it.
Currently these vars are automatically registered: $vbphrase $show, $bbuserinfo, $session, $vboptions
Located in /includes/class_core.php (line 3738)
static array
$pre_registered
= array() (line 3748)
Preregistered variables.
Variables can be preregistered before a template is created and will be imported and reset when the template is created. The array should be in the form array(template_name => array(key => variable))
static array
$template_queries
= array() (line 3776)
Debug helper to list the templates that were fetched out of the database (not cached properly).
static array
$template_usage
= array() (line 3769)
Debug helper to count how many times a template was used on a page.
array
$registered
= array() (line 3762)
Array of registered variables
string
$template
= '' (line 3755)
Name of the template to render
static create (line 3788)
Factory method to create the template object. Will choose the correct template evaluation method automatically.
Any preregistered variables are also registered and cleared from the preregister cache.
static fetch_template (line 4055)
Returns a single template from the templatecache or the database
static fetch_template_raw (line 4034)
Returns a single template from the templatecache or the database and returns the raw contents of it. Note that text will be escaped for eval'ing.
static preRegister (line 3833)
Preregisters variables before template instantiation.
Constructor __construct (line 3805)
Protected constructor. Use the factory method.
get_template_name (line 3822)
Returns the name of the template that will be rendered.
is_registered (line 3915)
Determines if a named variable is registered
quickRegister (line 3874)
Registers an array of variables with the template.
register (line 3852)
Register a variable with the template.
registered (line 3928)
Return the value of a registered variable or all registered values
register_page_templates (line 3944)
Automatically register the page-level templates footer, header, and headinclude based on their global values.
render (line 3959)
Renders the template.
unregister (line 3894)
Unregisters a previously registered variable.
Documentation generated on Tue, 26 Jan 2010 15:15:06 -0600 by phpDocumentor 1.4.3