Constructor for RawPHPEngine
Sets up default values for required settings.
RawPHPEngine
__construct
()
Redefinition of:
- TemplateEngine::__construct()
Redefined in descendants as:
Appends to an existing variable more values
void
append
(key $key, [value $value = ''])
-
key
$key: name of variable
-
value
$value: value of variable
Redefinition of:
- TemplateEngine::append()
- Appends to an existing variable more values
Assigns a variable to the template engine for use in constructing the template's output.
void
assign
(key $key, [value $value = ''])
-
key
$key: name( s ) of variable
-
value
$value: value of variable
Redefinition of:
- TemplateEngine::assign()
- Assigns a variable to the template engine for use in constructing the template's output.
Detects if a variable is assigned to the template engine for use in constructing the template's output.
boolean
assigned
(string $key)
-
string
$key: name of variable
Redefinition of:
- TemplateEngine::assigned()
- Detects if a variable is assigned to the template engine for use in constructing the template's output.
A function which outputs the result of a transposed template to the output stream
void
display
(template $template)
-
template
$template: Name of template to display
Redefinition of:
- TemplateEngine::display()
- A function which outputs the result of a transposed template to the output stream
Redefined in descendants as:
A function which returns the content of the transposed template as a string
void
fetch
(string $template)
-
string
$template: Name of template to fetch
Redefinition of:
- TemplateEngine::fetch()
- A function which returns the content of the transposed template as a string
Returns the existance of the specified template name
boolean
template_exists
(string $template)
-
string
$template: Name of template to detect
Redefinition of:
- TemplateEngine::template_exists()
- Returns the existance of the specified template name
Tries to retrieve a variable from the internal array engine_vars.
Method returns the value if succesful, returns false otherwise.
void
__get
(key $key)
-
key
$key: name of variable
Redefinition of:
- TemplateEngine::__get()
- Tries to retrieve a variable from the internal array engine_vars.
Detects if a variable is assigned to the template engine for use in constructing the template's output.
boolean
__isset
(key $key)
-
key
$key: name of variable
Redefinition of:
- TemplateEngine::__isset()
- Detects if a variable is assigned to the template engine for use in constructing the template's output.
Assigns a variable to the template engine for use in constructing the template's output.
void
__set
(key $key, value $value)
-
key
$key: name of variable
-
value
$value: value of variable
Redefinition of:
- TemplateEngine::__set()
- Assigns a variable to the template engine for use in constructing the template's output.
Unassigns a variable to the template engine.
void
__unset
(key $key)
-
key
$key: name of variable
Redefinition of:
- TemplateEngine::__unset()
- Unassigns a variable to the template engine.
Inherited Methods
Inherited From TemplateEngine
TemplateEngine::__construct()
TemplateEngine::append()
TemplateEngine::assign()
TemplateEngine::assigned()
TemplateEngine::display()
TemplateEngine::fetch()
TemplateEngine::set_template_dir()
TemplateEngine::template_exists()
TemplateEngine::__get()
TemplateEngine::__isset()
TemplateEngine::__set()
TemplateEngine::__unset()