PHP 클래스 DmitryDulepov\Realurl\EncodeDecoderBase

저자: Dmitry Dulepov ([email protected])
파일 보기 프로젝트 열기: dmitryd/typo3-realurl 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$pageTitleFields array

보호된 프로퍼티들

프로퍼티 타입 설명
$cache DmitryDulepov\Realurl\Cache\CacheInterface
$configuration DmitryDulepov\Realurl\Configuration\ConfigurationReader
$databaseConnection TYPO3\CMS\Core\Database\DatabaseConnection
$emptySegmentValue string
$ignoredUrlParameters array
$pageRepository TYPO3\CMS\Frontend\Page\PageRepository
$rootPageId integer
$separatorCharacter string Undocumented, unsupported & deprecated.
$tsfe TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
$utility Utility

공개 메소드들

메소드 설명
__construct ( ) Initializes the class.

보호된 메소드들

메소드 설명
checkLegacyCondition ( array $conditionConfiguration, string $previousValue ) : boolean Checks conditions for xxxVar.
createQueryStringFromParameters ( array $parameters ) : mixed Creates a query string (without preceeding question mark) from parameters.
getConfigurationForPostVars ( array $configuration, integer $pageId ) : array Sets configuration blocks for fixedPostVars and postVarSets according to priority: current page id first, _DEFAULT last. Also resolves aliases for configuration.
getFromAliasCacheByAliasValue ( array $configuration, string $aliasValue, boolean $onlyNonExpired ) : integer Looks up an ID value (integer) in lookup-table based on input alias value.
getSortedUrl ( string $url ) : string Obtains URL with all query parameters sorted.
initialize ( ) Initializes the instance.
initializeConfiguration ( ) : void Initializes confguration reader.
isInWorkspace ( ) : boolean Checks if system runs in non-live workspace
removeIgnoredParametersFromQueryString ( string $queryString ) : string Removes ignored parameters from the query string.
removeIgnoredParametersFromURL ( string $url ) : string Removes ignored parameters from the URL. Removed parameters are stored in $this->ignoredUrlParameters and can be restored using restoreIgnoredUrlParameters.
restoreIgnoredUrlParameters ( array &$urlParameters ) Restores ignored URL parameters.
restoreIgnoredUrlParametersInURL ( string $url ) : string Restores ignored URL parameters.
sortArrayDeep ( array &$pathParts ) : void Sorts the array deeply.

메소드 상세

__construct() 공개 메소드

Initializes the class.
public __construct ( )

checkLegacyCondition() 보호된 메소드

Checks conditions for xxxVar.
protected checkLegacyCondition ( array $conditionConfiguration, string $previousValue ) : boolean
$conditionConfiguration array
$previousValue string
리턴 boolean

createQueryStringFromParameters() 보호된 메소드

Creates a query string (without preceeding question mark) from parameters.
protected createQueryStringFromParameters ( array $parameters ) : mixed
$parameters array
리턴 mixed

getConfigurationForPostVars() 보호된 메소드

Sets configuration blocks for fixedPostVars and postVarSets according to priority: current page id first, _DEFAULT last. Also resolves aliases for configuration.
protected getConfigurationForPostVars ( array $configuration, integer $pageId ) : array
$configuration array
$pageId integer
리턴 array

getFromAliasCacheByAliasValue() 보호된 메소드

(The lookup table for id<->alias is meant to contain UNIQUE alias strings for id integers) In the lookup table 'tx_realurl_uniqalias' the field "value_alias" should be unique (per combination of field_alias+field_id+tablename)! However the "value_id" field doesn't have to; that is a feature which allows more aliases to point to the same id. The alias selected for converting id to alias will be the first inserted at the moment. This might be more intelligent in the future, having an order column which can be controlled from the backend for instance!
protected getFromAliasCacheByAliasValue ( array $configuration, string $aliasValue, boolean $onlyNonExpired ) : integer
$configuration array
$aliasValue string
$onlyNonExpired boolean
리턴 integer ID integer. If none is found: false

getSortedUrl() 보호된 메소드

Obtains URL with all query parameters sorted.
protected getSortedUrl ( string $url ) : string
$url string
리턴 string

initialize() 보호된 메소드

Initializes the instance.
protected initialize ( )

initializeConfiguration() 추상적인 보호된 메소드

Initializes confguration reader.
abstract protected initializeConfiguration ( ) : void
리턴 void

isInWorkspace() 보호된 메소드

Checks if system runs in non-live workspace
protected isInWorkspace ( ) : boolean
리턴 boolean

removeIgnoredParametersFromQueryString() 보호된 메소드

Removes ignored parameters from the query string.
protected removeIgnoredParametersFromQueryString ( string $queryString ) : string
$queryString string
리턴 string

removeIgnoredParametersFromURL() 보호된 메소드

Removes ignored parameters from the URL. Removed parameters are stored in $this->ignoredUrlParameters and can be restored using restoreIgnoredUrlParameters.
protected removeIgnoredParametersFromURL ( string $url ) : string
$url string
리턴 string

restoreIgnoredUrlParameters() 보호된 메소드

Restores ignored URL parameters.
protected restoreIgnoredUrlParameters ( array &$urlParameters )
$urlParameters array

restoreIgnoredUrlParametersInURL() 보호된 메소드

Restores ignored URL parameters.
protected restoreIgnoredUrlParametersInURL ( string $url ) : string
$url string
리턴 string

sortArrayDeep() 보호된 메소드

Sorts the array deeply.
protected sortArrayDeep ( array &$pathParts ) : void
$pathParts array
리턴 void

프로퍼티 상세

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

protected CacheInterface,DmitryDulepov\Realurl\Cache $cache
리턴 DmitryDulepov\Realurl\Cache\CacheInterface

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

protected ConfigurationReader,DmitryDulepov\Realurl\Configuration $configuration
리턴 DmitryDulepov\Realurl\Configuration\ConfigurationReader

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

protected DatabaseConnection,TYPO3\CMS\Core\Database $databaseConnection
리턴 TYPO3\CMS\Core\Database\DatabaseConnection

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

protected string $emptySegmentValue
리턴 string

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

protected array $ignoredUrlParameters
리턴 array

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

protected PageRepository,TYPO3\CMS\Frontend\Page $pageRepository
리턴 TYPO3\CMS\Frontend\Page\PageRepository

$pageTitleFields 공개적으로 정적으로 프로퍼티

public static array $pageTitleFields
리턴 array

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

protected int $rootPageId
리턴 integer

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

Undocumented, unsupported & deprecated.
protected string $separatorCharacter
리턴 string

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

protected TypoScriptFrontendController,TYPO3\CMS\Frontend\Controller $tsfe
리턴 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController

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

protected Utility,DmitryDulepov\Realurl $utility
리턴 Utility