\apex\app\interfacesViewInterface

The template parser interface, which handles all .tpl files.

Summary

Methods
Constants
parse()
parse_html()
assign()
add_callout()
has_errors()
get_title()
get_callouts()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

parse()

parse() : string

Parse the template based on URI.

Returns

string —

The resulting HTML code.

parse_html()

parse_html(string  $html) : string

Parse a chunk of TPL code.

Parameters

string $html

The TPL / HTML code to parse.

Returns

string —

The resulting HTML code.

assign()

assign(string  $key, mixed  $value) 

Assign a merge variable.

Parameters

string $key

The key of the merge variable.

mixed $value

Value of the merge field, can be string or array.

add_callout()

add_callout(string  $message, string  $type = 'success') 

Add a callout message to be displayed on next page.

Parameters

string $message

The callout message.

string $type

Type of callout, 'success', 'info', 'error'.

has_errors()

has_errors() : boolean

Return whether or not template contains callout errors.

Returns

boolean —

If callout errors exist

get_title()

get_title() : string

Return the page title.

Returns

string —

The page title.

get_callouts()

get_callouts() : array

Get an array of all current callouts.

Returns

array —

The current callouts.