RavSystem API docs

Template
in package

Table of Contents

$title  : string
title of the template
$context  : array<string|int, mixed>
context of the template
__construct()  : mixed
getTitle()  : string
returns title of the template
render()  : string
Triggers the rendering method with context
__render()  : string
Renders the template body using context
defaultFooter()  : string
Renders default footer of the email
defaultHead()  : string
Renders default head of the email

Properties

$title

title of the template

protected string $title = 'Unnamed template'

$context

context of the template

private array<string|int, mixed> $context

Methods

__construct()

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

getTitle()

returns title of the template

public getTitle() : string
Return values
string

render()

Triggers the rendering method with context

public render() : string
Return values
string

__render()

Renders the template body using context

protected abstract __render(array<string|int, mixed> $context) : string
Parameters
$context : array<string|int, mixed>
Return values
string

defaultFooter()

Renders default footer of the email

protected defaultFooter() : string
Return values
string

defaultHead()

Renders default head of the email

protected defaultHead() : string
Return values
string

Search results