Theme
in package
Uses
StaticTrait
Table of Contents
- $instance : mixed
- Instance object.
- __callStatic() : mixed
- Add support for magic static method calls.
- _i() : mixed
- _instance() : mixed
- createTemplate() : TemplateWrapper
- display() : void
- instance() : mixed
- Set/get a instance of object.
- load() : TemplateWrapper
- render() : string
Properties
$instance
Instance object.
protected
static mixed
$instance
Methods
__callStatic()
Add support for magic static method calls.
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
Return values
mixed —the returned value from the resolved method
_i()
public
static _i() : mixed
Return values
mixed —_instance()
public
static _instance() : mixed
Return values
mixed —createTemplate()
public
static createTemplate(mixed $template, string $name = null) : TemplateWrapper
Parameters
- $template : mixed
- $name = null : string
Return values
TemplateWrapper —display()
public
static display(mixed $name, array<string|int, mixed> $context = []) : void
Parameters
- $name : mixed
- $context = [] : array<string|int, mixed>
Return values
void —instance()
Set/get a instance of object.
public
static instance(mixed $instance) : mixed
Parameters
- $instance : mixed
Return values
mixed —load()
public
static load(mixed $name) : TemplateWrapper
Parameters
- $name : mixed
Return values
TemplateWrapper —render()
public
static render(mixed $name, array<string|int, mixed> $context = []) : string
Parameters
- $name : mixed
- $context = [] : array<string|int, mixed>