Smarty
extends Templater
in package
implements
ITemplater
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $layout_directives : array<string|int, mixed>
- $rewrites : array<string|int, mixed>
- $hashCode : int
- $hashCounter : int
- $instance : Smarty
- $layout : string
- $smarty : Smarty
- $template : string
Methods
- __call() : mixed
- __callStatic() : mixed
- __destruct() : mixed
- __get() : mixed
- addRewrite() : mixed
- assign() : void
- determineLayout() : void
- determineStylesheetAndScript() : void
- display() : void
- extends() : bool
- fetch() : string
- getInstance() : ISingleton
- getLayout() : string|null
- getReflection() : ReflectionClass
- getRewrite() : string
- getTemplate() : string|null
- setLayout() : mixed
- setLayoutDirectives() : mixed
- setTemplate() : mixed
- setTemplateRewrites() : void
- templateExists() : bool
- __construct() : mixed
- getLayoutFromDirectives() : string|null
- init() : mixed
- {@inheritdoc}
- cleanMarkup() : string
- determineTemplate() : mixed
- enableCaching() : void
- Enables caching of compiled templates conditionally. If the current environment, as described by the environment variable APPLICATION_ENV, is 'production' then caching will be enabled else it will not.
- setSmartyLocations() : void
Properties
$layout_directives
protected
array<string|int, mixed>
$layout_directives
= []
$rewrites
protected
array<string|int, mixed>
$rewrites
= []
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
$instance
private
static Smarty
$instance
$layout
private
string
$layout
$smarty
private
Smarty
$smarty
$template
private
string
$template
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
addRewrite()
public
addRewrite(array<string|int, mixed> $rewrite) : mixed
Parameters
- $rewrite : array<string|int, mixed>
assign()
public
assign(string $name, mixed $val) : void
Parameters
- $name : string
- $val : mixed
Tags
determineLayout()
public
determineLayout() : void
determineStylesheetAndScript()
public
determineStylesheetAndScript([string $app = null ][, string $controller = null ][, string $action = null ]) : void
Parameters
- $app : string = null
- $controller : string = null
- $action : string = null
display()
public
display() : void
Tags
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolfetch()
public
fetch([mixed $template = null ]) : string
Parameters
- $template : mixed = null
Tags
Return values
stringgetInstance()
public
static getInstance() : ISingleton
Return values
ISingletongetLayout()
public
getLayout() : string|null
Return values
string|nullgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetRewrite()
public
getRewrite(string $app, string $controller, string $action) : string
Parameters
- $app : string
- $controller : string
- $action : string
Return values
string —| null
getTemplate()
public
getTemplate() : string|null
Tags
Return values
string|nullsetLayout()
public
setLayout(string $layout) : mixed
Parameters
- $layout : string
Tags
setLayoutDirectives()
public
setLayoutDirectives(array<string|int, mixed> $layout_directives) : mixed
Parameters
- $layout_directives : array<string|int, mixed>
Tags
setTemplate()
public
setTemplate(string $path) : mixed
Parameters
- $path : string
Tags
setTemplateRewrites()
public
setTemplateRewrites(array<string|int, mixed> $rewrites) : void
Parameters
- $rewrites : array<string|int, mixed>
Tags
templateExists()
public
templateExists(string $path) : bool
Parameters
- $path : string
Tags
Return values
bool__construct()
protected
__construct() : mixed
getLayoutFromDirectives()
protected
getLayoutFromDirectives(string $application, string $controller, string $action) : string|null
Parameters
- $application : string
- $controller : string
- $action : string
Tags
Return values
string|nullinit()
{@inheritdoc}
protected
init() : mixed
Tags
cleanMarkup()
private
cleanMarkup(string $markup) : string
Parameters
- $markup : string
Return values
stringdetermineTemplate()
private
determineTemplate() : mixed
Tags
enableCaching()
Enables caching of compiled templates conditionally. If the current environment, as described by the environment variable APPLICATION_ENV, is 'production' then caching will be enabled else it will not.
private
enableCaching() : void
setSmartyLocations()
private
setSmartyLocations() : void