Zend Framework
3.0
|
Public Member Functions | |
__construct ($tokens=[], $prefix= '', $suffix= '') | |
Token Processor walks through a Config structure and replaces all occurrences of tokens with supplied values. | |
setPrefix ($prefix) | |
getPrefix () | |
setSuffix ($suffix) | |
getSuffix () | |
setTokens ($tokens) | |
Set token registry. | |
getTokens () | |
Get current token registry. | |
addToken ($token, $value) | |
Add new token. | |
setToken ($token, $value) | |
Add new token. | |
process (Config $config) | |
Process. | |
processValue ($value) | |
Process a single value. | |
Protected Member Functions | |
buildMap () | |
Build replacement map. | |
Protected Attributes | |
$prefix = '' | |
$suffix = '' | |
$tokens = [] | |
$map = null | |
__construct | ( | $tokens = [] , |
|
$prefix = '' , |
|||
$suffix = '' |
|||
) |
addToken | ( | $token, | |
$value | |||
) |
Add new token.
string | $token | |
mixed | $value |
Exception\InvalidArgumentException |
|
protected |
Build replacement map.
getPrefix | ( | ) |
getSuffix | ( | ) |
getTokens | ( | ) |
Get current token registry.
process | ( | Config | $config | ) |
Process.
Config | $config |
Exception\InvalidArgumentException |
Implements ProcessorInterface.
processValue | ( | $value | ) |
setPrefix | ( | $prefix | ) |
string | $prefix |
setSuffix | ( | $suffix | ) |
string | $suffix |
setToken | ( | $token, | |
$value | |||
) |
setTokens | ( | $tokens | ) |
|
protected |
|
protected |
|
protected |
|
protected |