Methods summary
	
		| 
			 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. 
			
Initialization, is to call at least once, also possible to call multible
times, if different client configuration is to load. Loads configuration of passed client and sets some properties. Parameters
					$clientIdinteger$clientId Client id
 | 
	
		| 
			 public static
			boolean
			
			 | 
		#
		isInCategories( string $sName = '', integer $iCatId = 0, integer $iLangId = 0 )
			
Check categories on websafe name 
			
Check categories on websafe name Check all categories in the main parent category on existing same websafe
name Parameters
					$sNamestring$sName Websafe name to check
$iCatIdinteger$iCatId Current category id
$iLangIdinteger$iLangId Current language id
Returns
					booleanTrue if websafename already exists, false if not
 
 | 
	
		| 
			 public static
			boolean
			
			 | 
		#
		isInCatArticles( string $sName = '', integer $iArtId = 0, integer $iLangId = 0, integer $iCatId = 0 )
			
Check articles on websafe name. 
			
Check articles on websafe name. Check all articles in the current category on existing same websafe name. Parameters
					$sNamestring$sName Websafe name to check
$iArtIdinteger$iArtId Current article id
$iLangIdinteger$iLangId Current language id
$iCatIdinteger$iCatId Category id
Returns
					booleanTrue if websafename already exists, false if not
 
 | 
	
		| 
			 public static
			boolean
			
			 | 
		#
		setArtWebsafeName( string $sName = '', integer $iArtId = 0, integer $iLangId = 0, integer $iCatId = 0 )
			
Set websafe name in article list. 
			
Set websafe name in article list. Insert new websafe name in article list Parameters
					$sNamestring$sName Original name (will be converted)
$iArtIdinteger$iArtId Current article id
$iLangIdinteger$iLangId Current language id
$iCatIdinteger$iCatId Category id
Returns
					booleanTrue if insert was successfully
 
 | 
	
		| 
			 public static
			boolean
			
			 | 
		#
		setCatWebsafeName( string $sName = '', integer $iCatId = 0, integer $iLangId = 0 )
			
Set websafe name in category list. 
			
Set websafe name in category list. Insert new websafe name in category list. Parameters
					$sNamestring$sName Original name (will be converted) or alias
$iCatIdinteger$iCatId Category id
$iLangIdinteger$iLangId Language id
Returns
					booleanTrue if insert was successfully
 
 | 
	
		| 
			 public static
			boolean
			
			 | 
		#
		setCatUrlPath( integer $iCatId = 0, integer $iLangId = 0 )
			
Set urlpath of category Parameters
					$iCatIdinteger$iCatId Category id
$iLangIdinteger$iLangId Language id
Returns
					booleanTrue if insert was successfully
 
 | 
	
		| 
			 public static
			array
			
			 | 
		#
		getArtIdByArtlangId( integer $iArtlangId = 0 )
			
Get article id and language id from article language id 
			
Get article id and language id from article language id Parameters
					$iArtlangIdinteger$iArtlangId Current article id
Returns
					arrayArray with idart and idlang of current article
 
 | 
	
		| 
			 public static
			integer|null
			
			 | 
		#
		getArtIdByWebsafeName( string $sArtName = '', integer $iCatId = 0, integer $iLangId = 0 )
			
Get article id by article websafe name 
			
Get article id by article websafe name Parameters
					$sArtNamestring$sArtName Websafe name
$iCatIdinteger$iCatId Category id
$iLangIdinteger$iLangId Language id
Returns
					integer|nullRecent article id or NULL
 
 | 
	
		| 
			 public static
			string
			
			 | 
		#
		getCatName( integer $iCatId = 0, integer $iLangId = 0 )
			
Get category name from category id and language id. 
			
Get category name from category id and language id. Parameters
					$iCatIdinteger$iCatId Category id
$iLangIdinteger$iLangId Language id
Returns
					stringCategory name
 
 | 
	
		| 
			 public static
			integer
			
			 | 
		#
		getCatIdByUrlPath( string $path )
			
Funcion to return cat id by path. 
			
Funcion to return cat id by path. Caches the paths at first call to provode faster processing at further
calls. Parameters
					$pathstring$path Category path
Returns
					integerCategory id
 
 | 
	
		| 
			 public static
			string
			
			 | 
		#
		getArtTitle( integer $iArtId = 0, integer $iLangId = 0 )
			
Get article name from article id and language id 
			
Get article name from article id and language id Parameters
					$iArtIdinteger$iArtId Article id
$iLangIdinteger$iLangId Language id
Returns
					stringArticle name
 
 NOTE:
						seems to be not used???
 | 
	
		| 
			 public static
			array
			
			 | 
		#
		getCatLanguages( integer $iCatId = 0 )
			
Get language ids from category id 
			
Get language ids from category id Parameters
					$iCatIdinteger$iCatId Category id
Returns
					arrayUsed language ids
 
 | 
	
		| 
			 public static
			array
			
			 | 
		#
		getArtIds( integer $iArtlangId = 0 )
			
Get article urlname and language id 
			
Get article urlname and language id Parameters
					$iArtlangIdinteger$iArtlangId idartlang
Returns
					arrayUrlname, idlang of empty 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) 
			
Build a recursiv path for mod_rewrite rule like server directories
(dir1/dir2/dir3) Parameters
					$iCatIdinteger$iCatId Latest category id
$iLangIdinteger$iLangId Language id
$iLastIdinteger$iLastId Last category id
Returns
					stringlinkpath with correct uri
 
 | 
	
		| 
			 public static
			string
			
			 | 
		#
		rewriteHtmlAnchor( array $aMatches = array() )
			
Return full CONTENIDO url from single anchor 
			
Return full CONTENIDO url from single anchor Parameters
					$aMatchesarray$aMatches [0] = complete anchor, [1] = pre arguments, [2] = anchor name, [3] =
post arguments
Returns
					stringNew anchor
 
 | 
	
		| 
			 public static
			string
			
			 | 
		#
		contenidoHtmlAnchor( array $aMatches = array(), boolean $bXHTML = true )
			
Return full CONTENIDO url from single anchor 
			
Return full CONTENIDO url from single anchor Parameters
					$aMatchesarray$aMatches [0] = complete anchor, [1] = pre arguments, [2] = anchor name, [3] =
post arguments
$bXHTMLboolean$bXHTML Flag to return XHTML valid url
Returns
					stringNew anchor
 
 | 
	
		| 
			 public static
			string
			
			 | 
		#
		getArtWebsafeName( integer $iArtId = 0, integer $iLangId = 0 )
			
Get article websafe name from article id and language id. 
			
Get article websafe name from article id and language id. Parameters
					$iArtIdinteger$iArtId Article id
$iLangIdinteger$iLangId Language id
Returns
					stringArticle websafe name
 
 | 
	
		| 
			 public static
			string
			
			 | 
		#
		getArtLangWebsafeName( integer $iArtLangId = 0 )
			
Get article websafe name from idartlang. 
			
Get article websafe name from idartlang. Parameters
					$iArtLangIdinteger$iArtLangId idartlang
Returns
					stringArticle websafe name
 
 | 
	
		| 
			 public static
			string
			
			 | 
		#
		getClientName( integer $clientId = 0 )
			
Get name of client by id. 
			
Get name of client by id. Parameters
					$clientIdinteger$clientId Client id
Returns
					stringClient name
 
 | 
	
		| 
			 public static
			integer
			
			 | 
		#
		getClientId( string $sClientName = '' )
			
Get client id from client name 
			
Get client id from client name Parameters
					$sClientNamestring$sClientName Client name
Returns
					integerClient id
 
 | 
	
		| 
			 public static
			boolean
			
			 | 
		#
		clientIdExists( integer $clientId )
			
Checks if client id exists 
			
Checks if client id exists Parameters
					$clientIdinteger$clientId
Returns
					boolean
 | 
	
		| 
			 public static
			string
			
			 | 
		#
		getLanguageName( integer $languageId = 0 )
			
Returns name of language by id. 
			
Returns name of language by id. Parameters
					$languageIdinteger$languageId Language id
Returns
					stringLanuage name
 
 | 
	
		| 
			 public static
			boolean
			
			 | 
		#
		languageIdExists( integer $languageId )
			
Checks if language id exists 
			
Checks if language id exists Parameters
					$languageIdinteger$languageId Language id
Returns
					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 
			
Get language id from language name thanks to Nicolas Dickinson for multi
Client/Language BugFix Parameters
					$sLanguageNamestring$sLanguageName Language name
$iClientIdinteger$iClientId Client id
Returns
					integerLanguage id
 
 | 
	
		| 
			 public static
			array
			
			 | 
		#
		getClientFullUrlParts( string $url )
			
Splits passed argument into scheme://host and path/query. 
			
Splits passed argument into scheme://host and path/query. Example: input = http://host/front_content.php?idcat=123
return = array('htmlpath' => 'http://host', 'url' =>
'front_content.php?idcat=123') Parameters
					$urlstring$url URL to split
Returns
					arrayAssoziative array including the two parts: - array('htmlpath' => $path, 'url'
=> $url)
 
 | 
	
		| 
			 public static
			string
			
			 | 
		#
		urlPreClean( string $url )
			
Function to preclean a url. 
			
Function to preclean a url. 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' Parameters
					$urlstring$url Url to clean
Returns
					stringCleaned Url
 
 | 
	
		| 
			 public static
			
			
			 | 
		#
		recreateCategoriesAliases( boolean $bOnlyEmpty = false )
			
Recreates all or only empty aliases in categories table. 
			
Recreates all or only empty aliases in categories table. Parameters
					$bOnlyEmptyboolean$bOnlyEmpty Flag to reset only empty items
 | 
	
		| 
			 public static
			array|integer
			
			 | 
		#
		getEmptyCategoriesAliases( boolean $bOnlyNumber = true )
			
Returns list of all empty category aliases 
			
Returns list of all empty category aliases Parameters
					$bOnlyNumberboolean$bOnlyNumber
Returns
					array|integer
 | 
	
		| 
			 public static
			
			
			 | 
		#
		recreateArticlesAliases( boolean $bOnlyEmpty = false )
			
Recreates all or only empty urlname entries in art_lang table. 
			
Recreates all or only empty urlname entries in art_lang table. Parameters
					$bOnlyEmptyboolean$bOnlyEmpty Flag to reset only empty items
 | 
	
		| 
			 public static
			array|integer
			
			 | 
		#
		getEmptyArticlesAliases( boolean $bOnlyNumber = true )
			
Returns list of all empty article aliases 
			
Returns list of all empty article aliases Parameters
					$bOnlyNumberboolean$bOnlyNumber
Returns
					array|integer
 | 
	
		| 
			 public static
			
			
			 | 
		#
		resetAliases( )
			
Method to reset all aliases (categories and articles). 
			
Method to reset all aliases (categories and articles). Shortcut to recreateCategoriesAliases() and recreateArticlesAliases() | 
	
		| 
			 public static
			
			
			 | 
		#
		recreateAliases( boolean $bOnlyEmpty = false )
			
Recreate all or only empty aliases (categories and articles). 
			
Recreate all or only empty aliases (categories and articles). Shortcut to recreateCategoriesAliases() and recreateArticlesAliases() Parameters
					$bOnlyEmptyboolean$bOnlyEmpty Flag to reset only empty items
 | 
	
		| 
			 public static
			array
			
			 | 
		#
		getHtaccessInfo( )
			
Returns .htaccess related assoziative info array 
			
Returns .htaccess related assoziative info array Returns
					array
 |