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)
string
Incomming URL
errorOccured() : 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, mixed $default) : mixed
inherited_from | \ModRewriteBase::getConfig() |
---|
string
Name of configuration key
mixed
Default value to return as a fallback
mixed
Desired value mr configuration, either the full configuration
or one of the desired subpartgetError() : int
int
Numeric error codegetIdArt() : 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(bool $bEnabled)
inherited_from | \ModRewriteBase::setEnabled() |
---|
bool
_extractRequestUri(bool $secondCall)
bool
Flag about second call of this function, is needed to re extract url if a routing definition was found
_hasPartArrayItems() : bool
bool
True 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
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()
_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