Method |
Description |
|
callPreDecodeHooks ( array $params ) |
Calls user-defined hooks. |
|
canDecoderExecute ( ) : boolean |
Checks if the decoder can execute. |
|
checkExpiration ( DmitryDulepov\Realurl\Cache\UrlCacheEntry $cacheEntry ) |
Checks if the entry is expired and redirects to a non-expired entry. |
|
checkMissingSlash ( ) : void |
Checks if the missing slash should be corrected. |
|
convertAliasToId ( array $configuration, string $value ) : integer | string |
Converts alias to id. |
|
createPathCacheEntry ( string $segment, array $pages, array &$shortcutPages ) : DmitryDulepov\Realurl\Cache\PathCacheEntry |
Find a page entry for the current segment and returns a PathCacheEntry for it. |
|
createQueryStringParameter ( array $parameters, string $prependString = '' ) : array |
Generates a parameter string from an array recursively |
|
decodeFixedPostVars ( integer $pageId, array &$pathSegments ) : array |
Decodes fixedPostVars into request variables. |
|
decodePath ( array &$pathSegments ) : integer |
Decodes the path. |
|
decodePathByOverride ( array &$pathSegments ) : DmitryDulepov\Realurl\Cache\PathCacheEntry |
Tries to decode the path by path override when the whole path is overriden. |
|
decodePostVarSets ( integer $pageId, array &$pathSegments ) : array |
Decodes postVarSets into request variables. |
|
decodePreVars ( array &$pathSegments ) : array |
Decodes preVars into request variables. |
|
decodeSingleVariable ( array $varConfiguration, array &$pathSegments, array &$requestVariables, &$previousValue ) : void |
Decodes a single variable and adds it to the list of request variables. |
|
decodeUrlParameterBlockUseAsIs ( array $configuration, $getVarValue, array &$requestVariables ) : boolean |
Sets segment value as is to the request variables |
|
decodeUrlParameterBlockUsingLookupTable ( array $configuration, $getVarValue, array &$requestVariables ) : boolean |
Sets segment value as is to the request variables |
|
decodeUrlParameterBlockUsingNoMatch ( array $configuration, $getVarValue, array &$requestVariables, array &$pathSegments, boolean $isFakeValue ) : boolean |
Sets segment value as is to the request variables |
|
decodeUrlParameterBlockUsingUserFunc ( array $configuration, $getVarValue, array &$requestVariables, array &$pathSegments, boolean $isFakeValue ) : boolean |
Sets segment value as is to the request variables |
|
decodeUrlParameterBlockUsingValueDefault ( array $configuration, $getVarValue, array &$requestVariables ) : boolean |
Sets segment value as is to the request variables |
|
decodeUrlParameterBlockUsingValueMap ( array $configuration, $getVarValue, array &$requestVariables ) : boolean |
Sets segment value as is to the request variables |
|
doDecoding ( string $path ) : DmitryDulepov\Realurl\Cache\UrlCacheEntry |
Decodes the URL. This function is called only if the URL is not in the
URL cache. |
|
fixBracketsAfterParseStr ( array &$array ) : void |
Fixes a problem with parse_str that returns a[b[c] instead of a[b[c]] when parsing a%5Bb%5Bc%5D%5D |
|
getFromUrlCache ( string $speakingUrl ) : DmitryDulepov\Realurl\Cache\UrlCacheEntry | null |
Gets the entry from cache. |
|
getPathCacheEntryAfterExcludedPages ( string $segment, array $pages, string $pagesEnableFields, array &$shortcutPages ) : DmitryDulepov\Realurl\Cache\PathCacheEntry |
Searches a page below excluded pages and returns the PathCacheEntry if something was found. |
|
getRootPageIdForPage ( integer $pageUid ) : integer |
Obtains a root page id for the given page. |
|
getUrlPath ( ) : array |
Parses the URL and validates the result. This function will strip possible
query string from speaking URL (we only need to decode the speaking URL!) |
|
getVarsFromDomainConfiguration ( ) : array |
Obtains variables from the domain confuguration. |
|
handleFileName ( array &$urlParts ) : array |
Processes the file name component. There can be several scenarios:
1. File name is mapped to a _GET var. We set a _GET var and discard the segment. |
|
handleFileNameMappingToGetVar ( string &$fileNameSegment, array &$getVars, boolean &$putBack ) : boolean |
Handles mapping of file names to GET vars (like 'print.html' => 'type=98') |
|
handleNonExistingPostVarSet ( integer $pageId, string $postVarSetKey, array &$pathSegments ) |
Handles non-existing postVarSet according to configuration. |
|
initialize ( ) |
Initializes the decoder. |
|
initializeConfiguration ( ) |
Initializes configuration reader. |
|
isPostVar ( string $segment, integer $pageId ) : boolean |
Checks if the given segment is a name of the postVar. |
|
isProperTsfe ( ) : boolean |
Checks if TSFE is initialized correctly. |
|
isSpeakingUrl ( ) : boolean |
Checks if the current URL is a speaking URL. |
|
makeRealPhpArrayFromRequestVars ( array $requestVariables ) : array |
Converts array('tx_ext[var1]' => 1, 'tx_ext[var2]' => 2) to array('tx_ext' => array('var1' => 1, 'var2' => 2)). |
|
mergeGetVarsFromDomainsConfiguration ( ) : void |
Merges $_GET from domains configuration. |
|
mergeWithExistingGetVars ( array &$requestVariables ) : void |
Merges generated request variables with existing $_GET variables. Those in
$_GET override generated. |
|
parseQueryStringParameters ( string $queryString ) : array |
Parses query string to a set of key/value. |
|
putToPathCache ( DmitryDulepov\Realurl\Cache\PathCacheEntry $newCacheEntry ) : void |
Adds data to the path cache. Cache ntry should have page path, language id and page id set. |
|
runDecoding ( ) : void |
Contains the actual decoding logic after $this->speakingUri is set. |
|
searchForPathOverrideInPages ( string $path ) : DmitryDulepov\Realurl\Cache\PathCacheEntry | null |
Searches the given path in pages table. |
|
searchForPathOverrideInPagesLanguageOverlay ( string $path ) : DmitryDulepov\Realurl\Cache\PathCacheEntry | null |
Searches the given path in page language overlays. |
|
searchPages ( integer $currentPid, string $segment, boolean &$saveToCache ) : DmitryDulepov\Realurl\Cache\PathCacheEntry |
Searches pages for the match to the segment |
|
searchPagesByPathOverride ( array $possibleSegments ) : DmitryDulepov\Realurl\Cache\PathCacheEntry | null |
Searches for a match in tx_realurl_pathsegment with override option. |
|
searchPathInCache ( array &$pathSegments ) : DmitryDulepov\Realurl\Cache\PathCacheEntry | null |
Fetches the entry from the RealURL path cache. This would start stripping
segments if the entry is not found until none is left. Effectively it is
a search for the largest caching path for those segments. |
|
setLanguageFromQueryString ( ) : void |
Sets current language from the query string variable ('L'). |
|
setRequestVariables ( DmitryDulepov\Realurl\Cache\UrlCacheEntry $cacheEntry ) |
Sets variables after the decoding. |
|
setSpeakingUriFromSiteScript ( ) : void |
Obtains speaking URI from the site script. |
|
throw404 ( string $errorMessage ) : void |
Throws a 404 error with the corresponding message. |
|