PLACEHOLDER_PATTERN
PLACEHOLDER_PATTERN
This class is the default fuman template engine
addValueProcessor(\Fuman_Template_Processor $processor) : void
Adds a processor
| \Fuman_Template_Processor | $processor |
getValueProcessor(string $name) : \Fuman_Template_Processor
Gets processor for name
| string | $name |
parse(\stdClass|\Fuman_Response_Data $data, null|string $templateString = null) : string
Parse
| \stdClass|\Fuman_Response_Data | $data | |
| null|string | $templateString |
extractValue(string $valuePath, mixed $data, $modifiedObjects = null) : null|object|array|string
Extracts value for given valuePath integer-values and single-quoted strings are treated as parameters that are not present in data-set
| string | $valuePath | |
| mixed | $data | |
| $modifiedObjects |
_parseDataByObject(array $parsingTree, \Fuman_Template_Parser_State $parserObject, mixed $data, mixed|null $parentData = null) : array|mixed|null
Parse data by object
| array | $parsingTree | |
| \Fuman_Template_Parser_State | $parserObject | |
| mixed | $data | |
| mixed|null | $parentData |
_parseTree(array $parsingTree, \Fuman_Template_Parser_State $parserObject, mixed $data, mixed|null $parentData = null) : array|null
Parse tree
| array | $parsingTree | |
| \Fuman_Template_Parser_State | $parserObject | |
| mixed | $data | |
| mixed|null | $parentData |
_getParsingTreeFromFile(\Fuman_Response_Data $data) : mixed
Gets parsing tree from file
| \Fuman_Response_Data | $data |