TemplateReference
class TemplateReference implements TemplateReferenceInterface
Internal representation of a template.
Methods
__construct($name = null, $engine = null)
No description
string
__toString()
Returns the string representation as shortcut for getLogicalName().
set(string $name, string $value)
Sets a template parameter.
string
get(string $name)
Gets a template parameter.
array
all()
Gets the template parameters.
string
getPath()
Returns the path to the template.
string
getLogicalName()
Returns the "logical" template name.
Details
at line line 23
__construct($name = null, $engine = null)
at line line 34
string
__toString()
Returns the string representation as shortcut for getLogicalName().
Alias of getLogicalName().
at line line 42
TemplateReferenceInterface
set(string $name, string $value)
Sets a template parameter.
at line line 56
string
get(string $name)
Gets a template parameter.
at line line 68
array
all()
Gets the template parameters.
at line line 76
string
getPath()
Returns the path to the template.
By default, it just returns the template name.
at line line 84
string
getLogicalName()
Returns the "logical" template name.
The template name acts as a unique identifier for the template.