Documentation

Smarty extends Templater
in package
implements ITemplater

FinalYes
Tags
author

Ramone Burrell ramone@ramoneburrell.com

since

Version 0.1.0

Table of Contents

Interfaces

ITemplater

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 = []

Methods

__callStatic()

public static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
$method : mixed
$arguments : array<string|int, 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>

determineStylesheetAndScript()

public determineStylesheetAndScript([string $app = null ][, string $controller = null ][, string $action = null ]) : void
Parameters
$app : string = null
$controller : string = null
$action : string = null

extends()

public extends(ReflectionClass $reflector) : bool
Parameters
$reflector : ReflectionClass
Return values
bool

getLayout()

public getLayout() : string|null
Return values
string|null

getReflection()

public getReflection() : ReflectionClass
Return values
ReflectionClass

getRewrite()

public getRewrite(string $app, string $controller, string $action) : string
Parameters
$app : string
$controller : string
$action : string
Return values
string

| null

setTemplateRewrites()

public setTemplateRewrites(array<string|int, mixed> $rewrites) : void
Parameters
$rewrites : array<string|int, mixed>
Tags
access

public

getLayoutFromDirectives()

protected getLayoutFromDirectives(string $application, string $controller, string $action) : string|null
Parameters
$application : string
$controller : string
$action : string
Tags
throws
IllegalArgumentException
Return values
string|null

init()

{@inheritdoc}

protected init() : mixed
Tags
see
Component::init()

cleanMarkup()

private cleanMarkup(string $markup) : string
Parameters
$markup : string
Return values
string

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

        
On this page

Search results