Class ModRewrite
Class to create websafe names, it also provides several helper functions
- ModRewriteBase
- ModRewrite
Copyright: www.polycoder.de
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Stefan Seifarth / stese
Author: Murat Purc murat@purc.de
Located at plugins/mod_rewrite/classes/class.modrewrite.php
public static
|
#
initialize( integer $clientId )
Initialization, is to call at least once, also possible to call multible times, if different client configuration is to load. |
public static
boolean
|
#
isInCategories( string $sName = '', integer $iCatId = 0, integer $iLangId = 0 )
Check categories on websafe name |
public static
boolean
|
#
isInCatArticles( string $sName = '', integer $iArtId = 0, integer $iLangId = 0, integer $iCatId = 0 )
Check articles on websafe name. |
public static
boolean
|
#
setArtWebsafeName( string $sName = '', integer $iArtId = 0, integer $iLangId = 0, integer $iCatId = 0 )
Set websafe name in article list. |
public static
boolean
|
#
setCatWebsafeName( string $sName = '', integer $iCatId = 0, integer $iLangId = 0 )
Set websafe name in category list. |
public static
boolean
|
|
public static
array
|
#
getArtIdByArtlangId( integer $iArtlangId = 0 )
Get article id and language id from article language id |
public static
integer|null
|
#
getArtIdByWebsafeName( string $sArtName = '', integer $iCatId = 0, integer $iLangId = 0 )
Get article id by article websafe name |
public static
string
|
#
getCatName( integer $iCatId = 0, integer $iLangId = 0 )
Get category name from category id and language id. |
public static
integer
|
|
public static
string
|
#
getArtTitle( integer $iArtId = 0, integer $iLangId = 0 )
Get article name from article id and language id |
public static
array
|
|
public static
array
|
|
public static
string
|
#
buildRecursivPath( integer $iCatId = 0, integer $iLangId = 0, integer $iLastId = 0 )
Build a recursiv path for mod_rewrite rule like server directories (dir1/dir2/dir3) |
public static
string
|
|
public static
string
|
#
contenidoHtmlAnchor( array $aMatches = array(), boolean $bXHTML = true )
Return full CONTENIDO url from single anchor |
public static
string
|
#
getArtWebsafeName( integer $iArtId = 0, integer $iLangId = 0 )
Get article websafe name from article id and language id. |
public static
string
|
|
public static
string
|
|
public static
integer
|
|
public static
boolean
|
|
public static
string
|
|
public static
boolean
|
|
public static
integer
|
#
getLanguageId( string $sLanguageName = '', integer $iClientId = 1 )
Get language id from language name thanks to Nicolas Dickinson for multi Client/Language BugFix |
public static
array
|
|
public static
string
|
|
public static
|
#
recreateCategoriesAliases( boolean $bOnlyEmpty = false )
Recreates all or only empty aliases in categories table. |
public static
array|integer
|
#
getEmptyCategoriesAliases( boolean $bOnlyNumber = true )
Returns list of all empty category aliases |
public static
|
#
recreateArticlesAliases( boolean $bOnlyEmpty = false )
Recreates all or only empty urlname entries in art_lang table. |
public static
array|integer
|
|
public static
|
|
public static
|
#
recreateAliases( boolean $bOnlyEmpty = false )
Recreate all or only empty aliases (categories and articles). |
public static
array
|
getConfig(),
isEnabled(),
setConfig(),
setEnabled()
|
private static
|
$_db
Database instance |
|
protected static
array
|
$_lookupTable
Lookup table to cache some internal data such as db query results |