Property | Type | Description | |
---|---|---|---|
$alternativeHostName | string | ||
$configuration | array | ||
$defaultValues | array | Default values for some configuration options. | |
$domainConfiguration | array | null | ||
$exception | Exception | ||
$extConfiguration | array | ||
$getVarsToSet | array | ||
$hostName | string | ||
$mode | integer | ||
$urlParameters | array | ||
$utility |
Method | Description | |
---|---|---|
__construct ( integer $mode, array $urlParameters = [] ) | Initializes the class. | |
get ( string $path ) : mixed | Obtains the configuration by its path. Paths are separated by '/'. | |
getGetVarsToSet ( ) : array | Returns _GET vars to set. | |
getMode ( ) : integer | Returns the current mode. | |
validate ( ) | If the configuration is invalid throws an exception stored earlier. This makes sense only we are have a speaking url. |
Method | Description | |
---|---|---|
getConfigurationKey ( ) : string | Obtains the configuration key to use. | |
getConfigurationKeyByDomainDecode ( string $configurationKey ) : string | Adjusts configration key for decoding. | |
getDefaultValue ( string $path ) : mixed | Obtains the default value for the option. | |
getFromConfiguration ( string $path ) : mixed | Obtains the value by path from the configuration. | |
loadExtConfiguration ( ) : void | Loads extension configuration. | |
performAutomaticConfiguration ( ) : void | Performs automatic configuration if necessary. | |
postProcessConfiguration ( ) : void | Runs post-processing hooks for extensions. | |
resolveConfigurationKey ( string $keyAlias ) : string | Resolves configuration aliases. For example: 'domain1' => 'domain2', 'domain2' => 'domain3', 'domain3' => array(. | |
setConfigurationForTheCurrentDomain ( ) : void | Sets the configuration from the current domain. | |
setHostnames ( ) : void | Sets host name variables. | |
setHostnamesForDecoding ( ) : void | Sets host name variables for decoding. | |
setHostnamesForEncoding ( ) : void | Sets host name variables for encoding. | |
setRootPageId ( ) : void | Sets the root page id from the current host if that is not set already. | |
setRootPageIdFromDomainRecord ( ) : boolean | Sets the root page id from domain records. | |
setRootPageIdFromRootFlag ( ) : boolean | Sets the root page id from pages with the root flag. | |
setRootPageIdFromTopLevelPages ( ) : boolean | Sets the root page id from the top level pages. | |
updateConfigurationForEncoding ( string &$configurationKey ) : void | Updates _DOMAINS configuration to include only relevant entries and remove rootpage_id option. |
public __construct ( integer $mode, array $urlParameters = [] ) | ||
$mode | integer | One of MODE_* constants |
$urlParameters | array |
protected getConfigurationKey ( ) : string | ||
return | string |
protected getConfigurationKeyByDomainDecode ( string $configurationKey ) : string | ||
$configurationKey | string | |
return | string |
protected getDefaultValue ( string $path ) : mixed | ||
$path | string | |
return | mixed |
protected getFromConfiguration ( string $path ) : mixed | ||
$path | string | |
return | mixed |
public getGetVarsToSet ( ) : array | ||
return | array |
protected loadExtConfiguration ( ) : void | ||
return | void |
protected performAutomaticConfiguration ( ) : void | ||
return | void |
protected postProcessConfiguration ( ) : void | ||
return | void |
protected resolveConfigurationKey ( string $keyAlias ) : string | ||
$keyAlias | string | |
return | string |
protected setConfigurationForTheCurrentDomain ( ) : void | ||
return | void |
protected setHostnames ( ) : void | ||
return | void |
protected setHostnamesForDecoding ( ) : void | ||
return | void |
protected setHostnamesForEncoding ( ) : void | ||
return | void |
protected setRootPageId ( ) : void | ||
return | void |
protected setRootPageIdFromDomainRecord ( ) : boolean | ||
return | boolean |
protected setRootPageIdFromRootFlag ( ) : boolean | ||
return | boolean |
protected setRootPageIdFromTopLevelPages ( ) : boolean | ||
return | boolean |
protected updateConfigurationForEncoding ( string &$configurationKey ) : void | ||
$configurationKey | string | |
return | void |
protected array $defaultValues | ||
return | array |