\erdiko\coreLayout

Layout Class

Summary

Methods
Properties
Constants
__construct()
setTemplate()
setData()
getData()
getTemplateFolder()
getTemplateFile()
toHtml()
setThemeName()
getTheme()
setRegion()
setRegions()
getRegions()
getRegion()
No public properties found
No constants found
No protected methods found
$_template
$_data
$_defaultTemplate
$_templateFolder
$_regions
$_theme
N/A
No private methods found
No private properties found
N/A

Properties

$_template

$_template : 

Template

Type

$_data

$_data : 

Data

Type

$_defaultTemplate

$_defaultTemplate : 

Default Template

Type

$_templateFolder

$_templateFolder : 

Template folder

Type

$_regions

$_regions : 

Regions

Type

$_theme

$_theme : 

Theme

Type

Methods

__construct()

__construct(string $template, mixed $data, string $theme)

Constructor

Parameters

string $template

, Theme Object (Contaier)

mixed $data
string $theme

setTemplate()

setTemplate(string $template)

Set Container template

Parameters

string $template

setData()

setData(mixed $data)

Set data

Parameters

mixed $data

, data injected into the container

getData()

getData() : mixed

Get data

Returns

mixed —

$data , data injected into the container

getTemplateFolder()

getTemplateFolder()

Get Template folder

getTemplateFile()

getTemplateFile(string $filename, mixed $data) : string

Get template file

Parameters

string $filename
mixed $data

Typically a string, Container object or other object

Returns

string

toHtml()

toHtml() : string

Render container to HTML

Returns

string —

$html

setThemeName()

setThemeName(string $theme)

Set theme name

Parameters

string $theme

getTheme()

getTheme()

Get theme object

setRegion()

setRegion(string $name, mixed $content)

set region

Parameters

string $name
mixed $content

, Typically a string, Container object or other object

setRegions()

setRegions(array $data)

Set all regions at once

Parameters

array $data

, Associative array of containers/strings

getRegions()

getRegions() : array

Get regions

Returns

array —

$this_regions

getRegion()

getRegion(string $name) : mixed

get rendered region

Parameters

string $name

Returns

mixed —

$content, typically a string, Container object or other object