buildRecursivPath()
contenidoHtmlAnchor()
getArtIdByArtlangId()
getArtIdByWebsafeName()
getArtIds()
getArtLangWebsafeName()
getArtTitle()
getArtWebsafeName()
getCatIdByUrlPath()
getCatLanguages()
getCatName()
getClientFullUrlParts()
getClientId()
getClientName()
getConfig()
getHtaccessInfo()
getIdFromPathresolverResult()
getLanguageId()
getLanguageName()
initialize()
isEnabled()
isInCatArticles()
isInCategories()
recreateAliases()
recreateArticlesAliases()
recreateCategoriesAliases()
resetAliases()
resetArticlesAliases()
resetCategoriesAliases()
rewriteHtmlAnchor()
setArtWebsafeName()
setCatUrlPath()
setCatWebsafeName()
setConfig()
setEnabled()
urlPreClean()
$_db
Class to create websafe names
Provides some common features such as common debugging, globals/configuration access for childs.
author | Stefan Seifarth / stese |
---|---|
author | Murat Purc |
package | Contenido Backend plugins |
subpackage | ModRewrite |
buildRecursivPath(int $iCatId, int $iLangId, int $iLastId) : string
int
Latest category id
int
Language id
int
Last category id
string
linkpath with correct uricontenidoHtmlAnchor(array $aMatches, $bXHTML) : string
array
[0] = complete anchor, [1] = pre arguments, [2] = anchor name, [3] = post arguments
string
New anchorgetArtIdByArtlangId(int $iArtlangId) : array
int
Current article id
array
Array with idart and idlang of current articlegetArtIdByWebsafeName(string $sArtName, int $iCatId, $iLangId) : int | null
string
Websafe name
int
Category id
int
null
Recent article id or nullgetArtIds(int $iArtlangId) : array
int
idartlang
array
Urlname, idlang of empty arraygetArtLangWebsafeName(int $iArtLangId) : string
int
idartlang
string
Article websafe namegetArtTitle(int $iArtId, int $iLangId) : string
NOTE | : seems to be not used??? |
---|
int
Article id
int
Language id
string
Article namegetArtWebsafeName(int $iArtId, int $iLangId) : string
int
Article id
int
Language id
string
Article websafe namegetCatIdByUrlPath(string $path) : int
Caches the paths at first call to provode faster processing at further calls.
string
Category path
int
Category idgetCatLanguages(int $iCatId) : array
int
Category id
array
Used language idsgetCatName(int $iCatId, int $iLangId) : string
int
Category id
int
Language id
string
Category namegetClientFullUrlParts(string $url) : array
Example: input = http://host/front_content.php?idcat=123 return = array('htmlpath' => 'http://host', 'url' => 'front_content.php?idcat=123')
string
URL to split
array
Assoziative array including the two parts: - array('htmlpath' => $path, 'url' => $url)getClientId(string $sClientName) : integer
string
Client name
integer
Client idgetClientName(int $clientId) : string
int
Client id
string
Client namegetConfig(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 subpartgetHtaccessInfo() : array
array
getIdFromPathresolverResult(array $results) : mixed
Error site handling if category not found
if percentage == 100 and there is no 100 percentage result value, error site will be shown - can be adjust by user settings for smooth similar effects - 80 to 95 will be best but have to check by user
deprecated | Is no more used |
---|
array
Pathresolver results array
mixed
Categoryid or falsegetLanguageId(string $sLanguageName, int $iClientId) : integer
string
Language name
int
Client id
integer
Language idgetLanguageName(int $languageId) : string
int
Language id
string
Lanuage nameinitialize(int $clientId)
Loads configuration of passed client and sets some properties.
int
Client id
isEnabled() : bool
inherited_from | \ModRewriteBase::isEnabled() |
---|
bool
isInCatArticles(string $sName, int $iArtId, int $iLangId, int $iCatId) : bool
Check all articles in the current category on existing same websafe name.
string
Websafe name to check
int
Current article id
int
Current language id
int
Category id
bool
True if websafename already exists, false if notisInCategories(string $sName, int $iCatId, int $iLangId) : bool
Check all categories in the main parent category on existing same websafe name
string
Websafe name to check
int
Current category id
int
Current language id
bool
True if websafename already exists, false if notrecreateAliases(bool $bOnlyEmpty)
Shortcut to recreateCategoriesAliases() and recreateArticlesAliases()
bool
Flag to reset only empty items
recreateArticlesAliases(bool $bOnlyEmpty)
bool
Flag to reset only empty items
recreateCategoriesAliases(bool $bOnlyEmpty)
bool
Flag to reset only empty items
resetAliases()
Shortcut to recreateCategoriesAliases() and recreateArticlesAliases()
resetArticlesAliases()
Clears all urlname entries in art_lang table, and sets the value for all existing entries.
deprecated | see ModRewrite::recreateArticlesAliases(); |
---|
resetCategoriesAliases()
Clears all urlname entries in cat_lang table, and sets the value for all existing entries.
deprecated | see ModRewrite::recreateCategoriesAliases(); |
---|
rewriteHtmlAnchor(array $aMatches) : string
array
[0] = complete anchor, [1] = pre arguments, [2] = anchor name, [3] = post arguments
string
New anchorsetArtWebsafeName(string $sName, int $iArtId, int $iLangId, int $iCatId) : bool
Insert new websafe name in article list
string
Original name (will be converted)
int
Current article id
int
Current language id
int
Category id
bool
True if insert was successfullysetCatUrlPath(int $iCatId, int $iLangId) : bool
int
Category id
int
Language id
bool
True if insert was successfullysetCatWebsafeName(string $sName, int $iCatId, int $iLangId) : bool
Insert new websafe name in category list.
string
Original name (will be converted) or alias
int
Category id
int
Language id
bool
True if insert was successfullysetConfig(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() |
urlPreClean(string $url) : string
Removes absolute path declaration '/front_content.php' or relative path definition to actual dir './front_content.php', ampersand entities '&' and returns a url like 'front_content.php?idart=12&idlang=1'
string
Url to clean
string
Cleaned Url