Methods
Constant Processor walks through a Config structure and replaces all
PHP constants with their respective values
__construct(bool $userOnly, string $prefix, string $suffix) : \Zend\Config\Processor\Constant
Parameters
$userOnly
bool
True to process only user-defined constants, false to process all PHP constants
$prefix
string
Optional prefix
$suffix
string
Optional suffix
Returns
Add new token.
addToken(string $token, mixed $value) : \Zend\Config\Processor\Token
Inherited
inherited_from |
\Zend\Config\Processor\Token::addToken() |
Parameters
$token
string
$value
mixed
Exceptions
Returns
getPrefix()
getPrefix() : string
Inherited
inherited_from |
\Zend\Config\Processor\Token::getPrefix() |
Returns
string
getSuffix()
getSuffix() : string
Inherited
inherited_from |
\Zend\Config\Processor\Token::getSuffix() |
Returns
string
Get current token registry.
getTokens() : array
getUserOnly()
getUserOnly() : bool
Load all currently defined constants into parser.
loadConstants() : void
Process the whole Config structure and recursively parse all its values.
process(\Zend\Config\Config $value) : \Zend\Config\Config
Inherited
inherited_from |
\Zend\Config\Processor\ProcessorInterface::process() |
Parameters
Exceptions
Returns
Process a single value
processValue(mixed $value) : mixed
Inherited
inherited_from |
\Zend\Config\Processor\ProcessorInterface::processValue() |
Parameters
$value
mixed
Returns
mixed
setPrefix()
setPrefix(string $prefix) : \Zend\Config\Processor\Token
Inherited
inherited_from |
\Zend\Config\Processor\Token::setPrefix() |
Parameters
$prefix
string
Returns
setSuffix()
setSuffix(string $suffix) : \Zend\Config\Processor\Token
Inherited
inherited_from |
\Zend\Config\Processor\Token::setSuffix() |
Parameters
$suffix
string
Returns
Add new token.
setToken(string $token, mixed $value) : \Zend\Config\Processor\Token
Inherited
inherited_from |
\Zend\Config\Processor\Token::setToken() |
Parameters
$token
string
$value
mixed
Returns
Build replacement map
buildMap() : array
Inherited
inherited_from |
\Zend\Config\Processor\Token::buildMap() |
Returns
array
Applies replacement map to the given value by modifying the value itself
doProcess(mixed $value, array $replacements) : mixed
Inherited
inherited_from |
\Zend\Config\Processor\Token::doProcess() |
Parameters
$value
mixed
$replacements
array
Exceptions
Returns
mixed
Properties
Replacement map
$map : array
Inherited
inherited_from |
\Zend\Config\Processor\Token::$$map |
Token prefix.
$prefix : string
Inherited
inherited_from |
\Zend\Config\Processor\Token::$$prefix |
Token suffix.
$suffix : string
Inherited
inherited_from |
\Zend\Config\Processor\Token::$$suffix |
The registry of tokens
$tokens : array
Inherited
inherited_from |
\Zend\Config\Processor\Token::$$tokens |
Replace only user-defined tokens
$userOnly : bool