__construct()
_hasPartArrayItems()
errorOccured()
execute()
getChangeClient()
getChangeLang()
getClient()
getConfig()
getIdArt()
getIdCat()
getLang()
getPath()
getResolvedUrl()
getRoutingFoundState()
isEnabled()
setConfig()
setEnabled()
_extractRequestUri()
_initializeClientId()
_parseUrl()
_postValidation()
_setClientId()
_setIdart()
_setLanguageId()
_setPathresolverSetting()
$_aParts
$_bError
$_bRoutingFound
$_iClientMR
$_sArtName
$_sIncommingUrl
$_sPath
$_sResolvedUrl
Mod Rewrite controller class. Extracts url parts and sets some necessary globals like: - $idart - $idcat - $client - $changeclient - $lang - $changelang
Provides some common features such as common debugging, globals/configuration access for childs.
| author | Murat Purc |
|---|---|
| package | Contenido Backend plugins |
| subpackage | ModRewrite |
__construct(string $incommingUrl)
stringIncomming URL
_hasPartArrayItems() : bool
| access | private |
|---|
boolTrue if $this->_aParts propery is an array and contains itemserrorOccured() : bool
boolFlag for occured errorexecute()
Executes some private functions to extract request URI and to set needed membervariables (client, language, article id, category id, etc.)
getChangeClient() : int
intChange client idgetChangeLang() : int
intChange language idgetClient() : int
intClient idgetConfig(string $key, $default) : mixed
| inherited_from | \ModRewriteBase::getConfig() |
|---|
stringName of configuration key
mixedDesired value mr configuration, either the full configuration or one of the desired subpartgetIdArt() : int
intArticle idgetIdCat() : int
intCategory idgetLang() : int
intLanguage idgetPath() : string
stringPath, used by path resolvergetResolvedUrl() : string
stringResolved urlgetRoutingFoundState()
return bool Flag about found routing
isEnabled() : bool
| inherited_from | \ModRewriteBase::isEnabled() |
|---|
boolsetConfig(string $key, mixed $value)
| inherited_from | \ModRewriteBase::setConfig() |
|---|
stringName of configuration key
mixedThe value to set
setEnabled($bEnabled)
| pparam | bool $bEnabled |
|---|---|
| inherited_from | \ModRewriteBase::setEnabled() |
_extractRequestUri(bool $secondCall)
boolFlag about second call of this function, is needed to re extract url if a routing definition was found
_initializeClientId()
_parseUrl(string $url) : string
stringIncoming url
stringParsed url_postValidation()
One main goal of this function is to prevent duplicated content, which could happen, if the configuration 'startfromroot' is activated.
_setClientId()
_setIdart()
_setLanguageId()
_setPathresolverSetting()
$_aParts : array
$_bError : bool
$_bRoutingFound : bool
$_iClientMR : int
$_sArtName : string
$_sIncommingUrl : string
$_sPath : string
$_sResolvedUrl : string