Element index for package default
a
d
e
g
h
i
r
s
t
v
top
a
- addHeader
- in file Voot.class.php, method Voot::addHeader()
Adds a header to the $headers property, to be sent to the HTTP client
at render time.
top
d
- doSubstitution
- in file Voot.class.php, method Voot::doSubstitution()
Substitutes contents of the $elements property for their corresponding placeholders in the $template property, and returns the resulting string.
top
e
- $elements
- in file Voot.class.php, variable Voot::$elements
An associative array containing element names and their corresponding
contents, to be substituted for the placeholders in the template when the
page is rendered.
- $evalOnRender
- in file Voot.class.php, variable Voot::$evalOnRender
Whether or not the template contains executable PHP code. If this is set to TRUE, PHP will attempt to process the template at render time using the eval() function. As this functionality brings up some security issues, $evalOnrender is set to FALSE by the constructor.
top
top
h
- $headers
- in file Voot.class.php, variable Voot::$headers
An associative array containing HTTP header names and contents to be sent
top
i
- initFromTemplate
- in file Voot.class.php, method Voot::initFromTemplate()
Automatically initialize elements for all placeholders found in the
template.
top
r
- render
- in file Voot.class.php, method Voot::render()
Substitutes the appropriate object properties for template placeholders
and sends the results to STDOUT.
top
s
- setElement
- in file Voot.class.php, method Voot::setElement()
Sets the contents of a page element, to be substituted for the corresponding placeholder when the page is rendered.
- setEvalOnRender
- in file Voot.class.php, method Voot::setEvalOnRender()
Sets the object's $evalOnRender property. If $evalOnRender is set to TRUE, VOOT will create a tempory file holding the rendered template, and then use PHP's include() function to execute it. The temporary file is deleted once it's included.
- setTempDir
- in file Voot.class.php, method Voot::setTempDir()
Sets the directory in which to store the temporary file created if the object's evalOnRender property is set to TRUE.
top
t
- $tempDir
- in file Voot.class.php, variable Voot::$tempDir
The directory in which to store temporary files created when the object's evalOnRender property is TRUE. If this property is not set when the render() method is called, VOOT will attempt to determine the OS's default temp directory (Contained in the TMP environment variable in Windows, and the TMPDIR environment variable in Linux/Unix). If neither TMP nor TMPDIR are set, VOOT will attempt to use the current directory "./". If your rendered template will contain any sensitive information such as database usernames and passwords, you should strongly consider either setting this variable to a directory that is not world-readable or keeping password information in a separate file that is not world-readable.
- $template
- in file Voot.class.php, variable Voot::$template
The contents of the chosen theme's template file.
top
v
- Voot
- in file Voot.class.php, method Voot::Voot()
The class constructor.
- Voot
- in file Voot.class.php, class Voot
VOOT (Vanilla Object Oriented Templates) - A simple template class for
performing basic placeholder substitution on a source file.
- Voot.class.php
- procedural page Voot.class.php