Templater
extends Component
in package
implements
ISingleton
AbstractYes
Tags
Table of Contents
Interfaces
Properties
- $layout_directives : array<string|int, mixed>
- $rewrites : array<string|int, mixed>
- $hashCode : int
- $hashCounter : int
- $instance : ITemplater
Methods
- __call() : mixed
- __callStatic() : mixed
- __destruct() : mixed
- __get() : mixed
- addRewrite() : mixed
- extends() : bool
- getInstance() : ISingleton
- getReflection() : ReflectionClass
- getRewrite() : string
- setLayoutDirectives() : mixed
- setTemplateRewrites() : void
- __construct() : mixed
- getLayoutFromDirectives() : string|null
- init() : mixed
- cleanMarkup() : string
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 ITemplater
$instance
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>
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetInstance()
public
static getInstance() : ISingleton
Tags
Return values
ISingletongetReflection()
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
setLayoutDirectives()
public
setLayoutDirectives(array<string|int, mixed> $layout_directives) : mixed
Parameters
- $layout_directives : array<string|int, mixed>
setTemplateRewrites()
public
setTemplateRewrites(array<string|int, mixed> $rewrites) : void
Parameters
- $rewrites : array<string|int, mixed>
Tags
__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()
protected
init() : mixed
cleanMarkup()
private
cleanMarkup(string $markup) : string
Parameters
- $markup : string