PHP Class DmitryDulepov\Realurl\EncodeDecoderBase

Author: Dmitry Dulepov ([email protected])
Afficher le fichier Open project: dmitryd/typo3-realurl Class Usage Examples

Méthodes publiques

Свойство Type Description
$pageTitleFields array

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__construct ( ) Initializes the class.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

Initializes the class.
public __construct ( )

checkLegacyCondition() protected méthode

Checks conditions for xxxVar.
protected checkLegacyCondition ( array $conditionConfiguration, string $previousValue ) : boolean
$conditionConfiguration array
$previousValue string
Résultat boolean

createQueryStringFromParameters() protected méthode

Creates a query string (without preceeding question mark) from parameters.
protected createQueryStringFromParameters ( array $parameters ) : mixed
$parameters array
Résultat mixed

getConfigurationForPostVars() protected méthode

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
Résultat array

getFromAliasCacheByAliasValue() protected méthode

(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
Résultat integer ID integer. If none is found: false

getSortedUrl() protected méthode

Obtains URL with all query parameters sorted.
protected getSortedUrl ( string $url ) : string
$url string
Résultat string

initialize() protected méthode

Initializes the instance.
protected initialize ( )

initializeConfiguration() abstract protected méthode

Initializes confguration reader.
abstract protected initializeConfiguration ( ) : void
Résultat void

isInWorkspace() protected méthode

Checks if system runs in non-live workspace
protected isInWorkspace ( ) : boolean
Résultat boolean

removeIgnoredParametersFromQueryString() protected méthode

Removes ignored parameters from the query string.
protected removeIgnoredParametersFromQueryString ( string $queryString ) : string
$queryString string
Résultat string

removeIgnoredParametersFromURL() protected méthode

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
Résultat string

restoreIgnoredUrlParameters() protected méthode

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

restoreIgnoredUrlParametersInURL() protected méthode

Restores ignored URL parameters.
protected restoreIgnoredUrlParametersInURL ( string $url ) : string
$url string
Résultat string

sortArrayDeep() protected méthode

Sorts the array deeply.
protected sortArrayDeep ( array &$pathParts ) : void
$pathParts array
Résultat void

Property Details

$cache protected_oe property

protected CacheInterface,DmitryDulepov\Realurl\Cache $cache
Résultat DmitryDulepov\Realurl\Cache\CacheInterface

$configuration protected_oe property

protected ConfigurationReader,DmitryDulepov\Realurl\Configuration $configuration
Résultat DmitryDulepov\Realurl\Configuration\ConfigurationReader

$databaseConnection protected_oe property

protected DatabaseConnection,TYPO3\CMS\Core\Database $databaseConnection
Résultat TYPO3\CMS\Core\Database\DatabaseConnection

$emptySegmentValue protected_oe property

protected string $emptySegmentValue
Résultat string

$ignoredUrlParameters protected_oe property

protected array $ignoredUrlParameters
Résultat array

$pageRepository protected_oe property

protected PageRepository,TYPO3\CMS\Frontend\Page $pageRepository
Résultat TYPO3\CMS\Frontend\Page\PageRepository

$pageTitleFields public_oe static_oe property

public static array $pageTitleFields
Résultat array

$rootPageId protected_oe property

protected int $rootPageId
Résultat integer

$separatorCharacter protected_oe property

Undocumented, unsupported & deprecated.
protected string $separatorCharacter
Résultat string

$tsfe protected_oe property

protected TypoScriptFrontendController,TYPO3\CMS\Frontend\Controller $tsfe
Résultat TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController

$utility protected_oe property

protected Utility,DmitryDulepov\Realurl $utility
Résultat Utility