Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
Constant Class Reference

Public Member Functions

 __construct ($userOnly=true, $prefix= '', $suffix= '')
 Constant Processor walks through a Config structure and replaces all PHP constants with their respective values.
 
 getUserOnly ()
 
 setUserOnly ($userOnly)
 Should we use only user-defined constants?
 
 loadConstants ()
 Load all currently defined constants into parser.
 
 getTokens ()
 Get current token registry.
 
- Public Member Functions inherited from Token
 __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 Attributes

 $userOnly = true
 
- Protected Attributes inherited from Token
 $prefix = ''
 
 $suffix = ''
 
 $tokens = []
 
 $map = null
 

Additional Inherited Members

- Protected Member Functions inherited from Token
 buildMap ()
 Build replacement map.
 

Constructor & Destructor Documentation

__construct (   $userOnly = true,
  $prefix = '',
  $suffix = '' 
)

Constant Processor walks through a Config structure and replaces all PHP constants with their respective values.

Parameters
bool$userOnlyTrue to process only user-defined constants, false to process all PHP constants
string$prefixOptional prefix
string$suffixOptional suffix
Returns

Member Function Documentation

getTokens ( )

Get current token registry.

Returns
array
getUserOnly ( )
Returns
bool
loadConstants ( )

Load all currently defined constants into parser.

Returns
void
setUserOnly (   $userOnly)

Should we use only user-defined constants?

Parameters
bool$userOnly
Returns
Constant

Member Data Documentation

$userOnly = true
protected