Mod Rewrite controller class.
Extracts url parts and sets some necessary globals like: - $idart - $idcat - $client - $changeclient - $lang - $changelang
| author | Murat Purc |
|---|---|
| package | plugin |
| subpackage | Mod Rewrite |
__construct(string $incommingUrl)
stringIncomming URL
errorOccured() : 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, mixed $default) : mixed
| inherited_from | \ModRewriteBase::getConfig() |
|---|
stringName of configuration key
mixedDefault value to return as a fallback
mixedDesired value mr configuration, either the full configuration
or one of the desired subpartgetError() : int
intNumeric error codegetIdArt() : 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(bool $bEnabled)
| inherited_from | \ModRewriteBase::setEnabled() |
|---|
bool
_extractRequestUri(bool $secondCall)
boolFlag about second call of this function, is needed to re extract url if a routing definition was found
_hasPartArrayItems() : bool
boolTrue if $this->_aParts propery contains items_initializeClientId()
This is required to load the proper plugin configuration for current client.
_initializeLanguageId()
_isRootRequest() : bool
bool_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()
_setError(int $errCode)
int
_setIdart()
_setLanguageId()
_setPathresolverSetting()
$_aParts : array
$_bError : bool
$_bRoutingFound : bool
$_iClientMR : int
$_iError : int
$_iLangMR : int
$_sArtName : string
$_sIncommingUrl : string
$_sPath : string
$_sResolvedUrl : string
ERROR_ARTICLE
ERROR_CATEGORY
ERROR_CLIENT
ERROR_LANGUAGE
ERROR_POST_VALIDATION
FRONT_CONTENT