\Template

Summary

Methods
Properties
Constants
Template()
set_name()
assert()
get_val()
assign()
fetch()
get_name()
load_template()
setTemplateFile()
setTemplateString()
renderString()
render()
toHTML()
$template_name
$templateString
$item
$breadcrumbs
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$template_name

$template_name : 

Type

$templateString

$templateString : 

Type

$item

$item : 

Type

$breadcrumbs

$breadcrumbs : 

Type

Methods

Template()

Template(\:  $init = null) : \:

Constructor of the class

Parameters

\: $init
  • initialize object

Returns

\: —

nothing

set_name()

set_name(  $template_name) : \:

Set main template file name Return true if set name success and false if else

Parameters

$template_name

Returns

\: —

boolean

assert()

assert(  $set,   $value) : boolean

Assert template set

Parameters

$set
$value

Returns

boolean

get_val()

get_val(  $set) 

Parameters

$set

assign()

assign(  $set,   $value) : boolean

Assert template set

Parameters

$set
$value

Returns

boolean

fetch()

fetch(  $template) 

Parameters

$template

get_name()

get_name(\:  $init,   $event_code) 

Function to load template from table TEMPLATE

Parameters

\: $init
  • initialize object, $event_code - EVENT CODE for identify template name
$event_code

load_template()

load_template(\:  $template) : \:

Function load template

Parameters

\: $template
  • file name with full path

Returns

\: —

$FileStringContent - string with full file content

setTemplateFile()

setTemplateFile(string  $template_file) : void

Set template string from file get content from specified file

Parameters

string $template_file

setTemplateString()

setTemplateString(string  $templateString) : void

Set template string

Parameters

string $templateString
  • string template content

renderString()

renderString(string  $string) : string

Render string get template string and output string with fill template sets

Parameters

string $string
  • template string

Returns

string

render()

render() : true

Render content

Returns

true —
  • if render complete success

toHTML()

toHTML() : string

Convert interface to HTML

Returns

string —
  • Result HTML-code