HumHub Documentation (unofficial)

TemplateWrapper
in package

FinalYes

Exposes a template to userland.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Properties

$env  : mixed
$template  : mixed

Methods

display()  : mixed
displayBlock()  : mixed
getBlockNames()  : array<string|int, string>
getSourceContext()  : Source
getTemplateName()  : string
hasBlock()  : bool
render()  : string
renderBlock()  : string

Properties

Methods

display()

public display([array<string|int, mixed> $context = [] ]) : mixed
Parameters
$context : array<string|int, mixed> = []

displayBlock()

public displayBlock(string $name[, array<string|int, mixed> $context = [] ]) : mixed
Parameters
$name : string
$context : array<string|int, mixed> = []

getBlockNames()

public getBlockNames([array<string|int, mixed> $context = [] ]) : array<string|int, string>
Parameters
$context : array<string|int, mixed> = []
Return values
array<string|int, string>

An array of defined template block names

getTemplateName()

public getTemplateName() : string
Return values
string

hasBlock()

public hasBlock(string $name[, array<string|int, mixed> $context = [] ]) : bool
Parameters
$name : string
$context : array<string|int, mixed> = []
Return values
bool

render()

public render([array<string|int, mixed> $context = [] ]) : string
Parameters
$context : array<string|int, mixed> = []
Return values
string

renderBlock()

public renderBlock(string $name[, array<string|int, mixed> $context = [] ]) : string
Parameters
$name : string
$context : array<string|int, mixed> = []
Return values
string

        
On this page

Search results