__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)
string
Incomming URL
_hasPartArrayItems() : bool
access | private |
---|
bool
True if $this->_aParts propery is an array and contains itemserrorOccured() : bool
bool
Flag 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
int
Change client idgetChangeLang() : int
int
Change language idgetClient() : int
int
Client idgetConfig(string $key, $default) : mixed
inherited_from | \ModRewriteBase::getConfig() |
---|
string
Name of configuration key
mixed
Desired value mr configuration, either the full configuration or one of the desired subpartgetIdArt() : int
int
Article idgetIdCat() : int
int
Category idgetLang() : int
int
Language idgetPath() : string
string
Path, used by path resolvergetResolvedUrl() : string
string
Resolved urlgetRoutingFoundState()
return bool Flag about found routing
isEnabled() : bool
inherited_from | \ModRewriteBase::isEnabled() |
---|
bool
setConfig(string $key, mixed $value)
inherited_from | \ModRewriteBase::setConfig() |
---|
string
Name of configuration key
mixed
The value to set
setEnabled($bEnabled)
pparam | bool $bEnabled |
---|---|
inherited_from | \ModRewriteBase::setEnabled() |
_extractRequestUri(bool $secondCall)
bool
Flag about second call of this function, is needed to re extract url if a routing definition was found
_initializeClientId()
_parseUrl(string $url) : string
string
Incoming url
string
Parsed 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