Sledgehammer Framework

Template extends Base
in package
implements Component

Een component voor het weergeven van php-templates.

De templates zijn standaard php. er wordt geen gebruik gemaakt van een tempate engine zoals bv Smarty.

Interfaces, Classes, Traits and Enums

Component
Interface for the components, the V in MVC.

Table of Contents

$headers  : array<string|int, mixed>
De variable die gebruikt wordt voor de getHeaders().
$includePaths  : mixed
$template  : string
Bestandsnaam van de template (exclusief thema map).
$variables  : array<string|int, mixed>
Variabelen die in de template worden gezet. Als je array('naam' => value) meegeeft kun in de template {$naam} gebruiken.
__call()  : mixed
Report that the $method doesn't exist.
__callStatic()  : mixed
Report that the $method doesn't exist.
__construct()  : mixed
__get()  : mixed
Report that $property doesn't exist.
__set()  : mixed
Report that $property doesn't exist and set the property to the given $value.
__toString()  : string
The object is used as an string.
getHeaders()  : array<string|int, mixed>
Vraag de ingestelde headers op van deze template en eventuele subcomponenten.
render()  : mixed
De template parsen en weergeven.
getSubviews()  : mixed

Properties

$headers

De variable die gebruikt wordt voor de getHeaders().

public array<string|int, mixed> $headers

$includePaths

public static mixed $includePaths = [\Sledgehammer\VENDOR_DIR]

$template

Bestandsnaam van de template (exclusief thema map).

public string $template

$variables

Variabelen die in de template worden gezet. Als je array('naam' => value) meegeeft kun in de template {$naam} gebruiken.

public array<string|int, mixed> $variables

Methods

__call()

Report that the $method doesn't exist.

public __call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
$method : string
$arguments : array<string|int, mixed>
Return values
mixed

__callStatic()

Report that the $method doesn't exist.

public static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
$method : string
$arguments : array<string|int, mixed>
Return values
mixed

__construct()

public __construct(string $template[, array<string|int, mixed> $variables = [] ][, array<string|int, mixed> $headers = [] ]) : mixed
Parameters
$template : string
$variables : array<string|int, mixed> = []
$headers : array<string|int, mixed> = []
Return values
mixed

__get()

Report that $property doesn't exist.

public __get(string $property) : mixed
Parameters
$property : string
Return values
mixed

__set()

Report that $property doesn't exist and set the property to the given $value.

public __set(string $property, mixed $value) : mixed
Parameters
$property : string
$value : mixed
Return values
mixed

__toString()

The object is used as an string.

public __toString() : string
Return values
string

getHeaders()

Vraag de ingestelde headers op van deze template en eventuele subcomponenten.

public getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>

render()

De template parsen en weergeven.

public render() : mixed
Return values
mixed

getSubviews()

private getSubviews(mixed $array) : mixed
Parameters
$array : mixed
Return values
mixed

Search results