AdiantiTemplateHandler
in package
Template manipulation
Tags
Table of Contents
Methods
- evaluateExpression() : mixed
- Evaluate math expression
- processAttribution() : mixed
- Process variable attribution
- replace() : mixed
- Replace a string with object properties within {pattern}
- replaceFunctions() : mixed
- replace some php functions
Methods
evaluateExpression()
Evaluate math expression
public
static evaluateExpression(mixed $expression) : mixed
Parameters
- $expression : mixed
processAttribution()
Process variable attribution
public
static processAttribution(mixed $content, mixed &$replacements) : mixed
Parameters
- $content : mixed
-
Template content
- $replacements : mixed
-
Template variable replacements
replace()
Replace a string with object properties within {pattern}
public
static replace(mixed $content, mixed $object[, mixed $cast = null ][, mixed $replace_methods = false ]) : mixed
Parameters
- $content : mixed
-
String with pattern
- $object : mixed
-
Any object
- $cast : mixed = null
- $replace_methods : mixed = false
replaceFunctions()
replace some php functions
public
static replaceFunctions(mixed $content) : mixed
Parameters
- $content : mixed