Trait Detection
Direct Known Users
MvcCore\Environment
public static
string
|
|
public static
string
|
|
protected static
stdClass
|
#
detectByConfigSectionData( mixed $environmentSection, string|null $clientIp )
Parse system config environment section data from various declarations into specific detection structure. |
protected static
|
#
detectByConfigClientIps( stdClass & $data, mixed $rawClientIps )
Parse system config environment section data from various declarations about client IP addresses into specific detection structure. |
protected static
|
#
detectByConfigPaths( stdClass & $data, mixed $rawPaths )
Parse system config environment section data from various declarations about application document root path into specific detection structure. |
protected static
|
#
detectByConfigServerNames( stdClass & $data, mixed $rawHostNames )
Parse system config environment section data from various declarations about server host names into specific detection structure. |
protected static
|
#
detectByConfigEnvVariables( stdClass & $data, mixed $rawServerVariable )
Parse system config environment section data from various declarations about server environment variables into specific detection structure. |
protected static
boolean
|
#
detectByConfigSection( stdClass & $data,
Detect environment by specifically parsed environment configuration data.
This method is called for all founded environments in system config in
order by system config and it tries to detect environment by following
order:
- by client IP address (if defined)
- by IPs list (if defined)
- by regular expression (if defined)
- by server hostname (if defined)
- by host names list (if defined)
- by regular expression (if defined)
- by server variable(s) (if defined)
- by existence (if defined)
- by value (if defined)
- by regular expression (if defined)
Method returns |
protected static
boolean
|
|
protected static
string
|
#
detectRegExpConvert( string $regExpWithTrailingSlashes )
Convert given regular expression into hash trailing characters form. |