parse_html() parse_html(string $html): string Parse a chunk of TPL code. Parameters string $html The TPL / HTML code to parse. Returnsstring —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. Returnsboolean —If callout errors exist
get_callouts() get_callouts(): array Get an array of all current callouts. Returnsarray —The current callouts.