Zend\Config\Processor\Constant
Synopsis
class Constant
extends Token
implements
ProcessorInterface
{
- // members
- protected bool $userOnly;
- // Inherited members from Token
- protected string $prefix;
- protected string $suffix;
- protected array $tokens;
- protected array $map;
- // methods
- public Constant __construct()
- public bool getUserOnly()
- public Constant setUserOnly()
- public void loadConstants()
- public array getTokens()
- // Inherited methods from Token
- public Token __construct()
- public Token setPrefix()
- public string getPrefix()
- public Token setSuffix()
- public string getSuffix()
- public Token setTokens()
- public array getTokens()
- public Token addToken()
- public Token setToken()
- protected array buildMap()
- public Config process()
- public mixed processValue()
Hierarchy
Members
protected
- $map
—
array
Replacement map - $prefix
—
string
Token prefix. - $suffix
—
string
Token suffix. - $tokens
—
array
The registry of tokens - $userOnly
—
Zend\Config\Processor\bool
Replace only user-defined tokens
Methods
public
- __construct() — Constant Processor walks through a Config structure and replaces all PHP constants with their respective values
- getTokens() — Get current token registry.
- getUserOnly()
- loadConstants() — Load all currently defined constants into parser.
- setUserOnly() — Should we use only user-defined constants?
Inherited from Zend\Config\Processor\Token
protected
- buildMap() — Build replacement map
public
- addToken() — Add new token.
- getPrefix()
- getSuffix()
- getTokens() — Get current token registry.
- process() — Process
- processValue() — Process a single value
- setPrefix()
- setSuffix()
- setToken() — Add new token.
- setTokens() — Set token registry.