class Template

Template Class

Properties

protected $themeCode
protected $pageTitle
protected $pageHeading
protected $pageButtons
$blocks

Methods

string
getBlock(string $name, string $default = null)

Returns the layout block contents but does not deletes the block from memory.

appendBlock(string $name, string $contents)

Appends a content of the layout block.

setBlock(string $name, string $contents)

Sets a content of the layout block.

getTheme()

No description

getTitle()

No description

getHeading()

No description

getButtonList()

No description

setTitle($title)

No description

setHeading($heading)

No description

setButton($name, array $attributes = [])

No description

Details

at line 30
string getBlock(string $name, string $default = null)

Returns the layout block contents but does not deletes the block from memory.

Parameters

string $name

Specifies the block name.

string $default

Specifies a default block value to use if the block requested is not exists.

Return Value

string

at line 45
appendBlock(string $name, string $contents)

Appends a content of the layout block.

Parameters

string $name

Specifies the block name.

string $contents

Specifies the block content.

at line 60
setBlock(string $name, string $contents)

Sets a content of the layout block.

Parameters

string $name

Specifies the block name.

string $contents

Specifies the block content.

at line 65
getTheme()

No description

at line 70
getTitle()

No description

at line 75
getHeading()

No description

at line 80
getButtonList()

No description

at line 85
setTitle($title)

No description

Parameters

$title

at line 90
setHeading($heading)

No description

Parameters

$heading

at line 100
setButton($name, array $attributes = [])

No description

Parameters

$name
array $attributes