\Template

System Template class Each Template consists of an <name>.html and <name>.json The JSON defines all Placeholders used in the Template and the default values.

Templates can be included in each other, while the content of the innder goes to: %%INNERCONTAINER%%

Summary

Methods
Properties
Constants
setLanguage()
__construct()
setMultipleContent()
setContent()
includeTemplate()
getOutputString()
output()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$filename
$placeholder
$multiples
$multiples_data
$inner
$lang
$allLangs
N/A

Properties

$filename

$filename : 

Name, Placeholderdata and included Template

Type

$placeholder

$placeholder : 

Type

$multiples

$multiples : 

Type

$multiples_data

$multiples_data : 

Type

$inner

$inner : 

Type

$lang

$lang : 

Type

$allLangs

$allLangs : 

Type

Methods

setLanguage()

setLanguage(  $lang) 

Change the language of the site see $allLangs for list

Parameters

$lang

__construct()

__construct(  $name) 

Create an new Template

Parameters

$name

setMultipleContent()

setMultipleContent(  $name,   $content) 

Sets the content for one type of multiple page elements

Parameters

$name

the name of the multiple page element

$content

the content for each part as array array( array( "key" => "val", //... ) //... )

setContent()

setContent(  $key,   $value) 

Setting the content for one of the placeholders

Parameters

$key

placeholder

$value

html value

includeTemplate()

includeTemplate(  $template) 

Includes a Tempalte in this. (Output of included on will be put in %%INNERCONTAINER%%)

Parameters

$template

the template object to include

getOutputString()

getOutputString() 

Getting the output of this template (incl. included ones)

output()

output() 

Output the page using this template.