PHP 클래스 DmitryDulepov\Realurl\Configuration\ConfigurationReader

저자: Dmitry Dulepov ([email protected])
상속: implements TYPO3\CMS\Core\SingletonInterface
파일 보기 프로젝트 열기: dmitryd/typo3-realurl 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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 DmitryDulepov\Realurl\Utility

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

Initializes the class.
public __construct ( integer $mode, array $urlParameters = [] )
$mode integer One of MODE_* constants
$urlParameters array

get() 공개 메소드

Leading and trailing slashes are removed. Special use: 'extconf/xxx' gets the entry from the ext_conf_template.txt.
public get ( string $path ) : mixed
$path string
리턴 mixed

getConfigurationKey() 보호된 메소드

Obtains the configuration key to use.
protected getConfigurationKey ( ) : string
리턴 string

getConfigurationKeyByDomainDecode() 보호된 메소드

Adjusts configration key for decoding.
protected getConfigurationKeyByDomainDecode ( string $configurationKey ) : string
$configurationKey string
리턴 string

getDefaultValue() 보호된 메소드

Obtains the default value for the option.
protected getDefaultValue ( string $path ) : mixed
$path string
리턴 mixed

getFromConfiguration() 보호된 메소드

Obtains the value by path from the configuration.
또한 보기: get()
protected getFromConfiguration ( string $path ) : mixed
$path string
리턴 mixed

getGetVarsToSet() 공개 메소드

Returns _GET vars to set.
public getGetVarsToSet ( ) : array
리턴 array

getMode() 공개 메소드

Returns the current mode.
public getMode ( ) : integer
리턴 integer

loadExtConfiguration() 보호된 메소드

Loads extension configuration.
protected loadExtConfiguration ( ) : void
리턴 void

performAutomaticConfiguration() 보호된 메소드

Performs automatic configuration if necessary.
protected performAutomaticConfiguration ( ) : void
리턴 void

postProcessConfiguration() 보호된 메소드

Runs post-processing hooks for extensions.
protected postProcessConfiguration ( ) : void
리턴 void

resolveConfigurationKey() 보호된 메소드

...) will resolve 'domain1' and 'domain2' to 'domain3'.
protected resolveConfigurationKey ( string $keyAlias ) : string
$keyAlias string
리턴 string

setConfigurationForTheCurrentDomain() 보호된 메소드

Sets the configuration from the current domain.

setHostnames() 보호된 메소드

Sets host name variables.
protected setHostnames ( ) : void
리턴 void

setHostnamesForDecoding() 보호된 메소드

Sets host name variables for decoding.
protected setHostnamesForDecoding ( ) : void
리턴 void

setHostnamesForEncoding() 보호된 메소드

Sets host name variables for encoding.
protected setHostnamesForEncoding ( ) : void
리턴 void

setRootPageId() 보호된 메소드

Sets the root page id from the current host if that is not set already.
protected setRootPageId ( ) : void
리턴 void

setRootPageIdFromDomainRecord() 보호된 메소드

Sets the root page id from domain records.

setRootPageIdFromRootFlag() 보호된 메소드

Sets the root page id from pages with the root flag.
protected setRootPageIdFromRootFlag ( ) : boolean
리턴 boolean

setRootPageIdFromTopLevelPages() 보호된 메소드

Sets the root page id from the top level pages.

updateConfigurationForEncoding() 보호된 메소드

Updates _DOMAINS configuration to include only relevant entries and remove rootpage_id option.
protected updateConfigurationForEncoding ( string &$configurationKey ) : void
$configurationKey string
리턴 void

validate() 공개 메소드

This must be called once prior to using get() call.
public validate ( )

프로퍼티 상세

$alternativeHostName 보호되어 있는 프로퍼티

protected string $alternativeHostName
리턴 string

$configuration 보호되어 있는 프로퍼티

protected array $configuration
리턴 array

$defaultValues 보호되어 있는 프로퍼티

Default values for some configuration options.
protected array $defaultValues
리턴 array

$domainConfiguration 보호되어 있는 프로퍼티

protected array|null $domainConfiguration
리턴 array | null

$exception 보호되어 있는 프로퍼티

protected Exception $exception
리턴 Exception

$extConfiguration 보호되어 있는 프로퍼티

protected array $extConfiguration
리턴 array

$getVarsToSet 보호되어 있는 프로퍼티

protected array $getVarsToSet
리턴 array

$hostName 보호되어 있는 프로퍼티

protected string $hostName
리턴 string

$mode 보호되어 있는 프로퍼티

protected int $mode
리턴 integer

$urlParameters 보호되어 있는 프로퍼티

protected array $urlParameters
리턴 array

$utility 보호되어 있는 프로퍼티

protected Utility,DmitryDulepov\Realurl $utility
리턴 DmitryDulepov\Realurl\Utility