Constructor Function
ModRewrite
ModRewrite
()
build_new_url()
build new url from given arguments
get querystring of front_content.php and convert this url to the new mod_rewrite url method will be startet before the complete output of the front site will be executed
string
build_new_url
([string $str_args = ""], [ $str_xhtml = true])
-
string
$str_args: given arguments
-
$str_xhtml
build_recursiv_path()
build a recursiv path for mod_rewrite rule like server directories ( dir1/dir2/dir3 )
string
build_recursiv_path
([integer $int_id = 0], [ $int_lang_id = 0], [ $int_lastid = 0])
-
integer
$int_id: latest category id
-
$int_lang_id
-
$int_lastid
return full contenido url from single anchor
string
contenido_html_anchor
([array $arr_matches = array()], [ $str_xhtml = true])
-
array
$arr_matches: [0] = complete anchor, [1] = pre arguments, [2] = anchor name, [3] = post arguments
-
$str_xhtml
get_artids()
get article title, language id
array
get_artids
([integer $int_id = 0])
-
integer
$int_id: idartlang
Get article name from article id and language id
string
get_arttitle
([int $int_id = 0], [int $int_lang_id = 0])
-
int
$int_id: Article id
-
int
$int_lang_id: Language id
get_art_lang_websafename()
get article websafe name from idartlang
string
get_art_lang_websafename
([integer $int_id = 0])
-
integer
$int_id: idartlang
get_art_websafename()
get article websafe name from article id and language id
string
get_art_websafename
([integer $int_id = 0], [integer $int_lang_id = 0])
-
integer
$int_id: article id
-
integer
$int_lang_id: language id
Get category name from category id and language id.
string
get_catname
([int $int_id = 0], [int $int_lang_id = 0])
-
int
$int_id: Category id
-
int
$int_lang_id: Language id
Get language ids from category id
array
get_cat_languages
([int $int_id = 0])
get_client_full_url_parts() 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')
array
get_client_full_url_parts
(string $url)
-
string
$url: URL to split
Get name of client by id
string
get_client_name
([int $clientId = 0])
Get article id and language id from article language id
array
get_id_from_idartlang
([int $int_id = 0])
-
int
$int_id: Current article id
Used to postprocess resolved path
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
mixed
get_id_from_pathresolver_result
(array $results)
-
array
$results: Pathresolver results array
Returns name of language by id
string
get_language_name
([int $languageId = 0])
-
int
$languageId: Language id
Check articles on websafe name.
Check all articles in the current category on existing same websafe name.
bool
in_articles
([string $str_name = ""], [int $int_id = 0], [int $int_lang_id = 0], [ $int_idcat = 0])
-
string
$str_name: Websafe name to check
-
int
$int_id: Current article id
-
int
$int_lang_id: Current language id
-
$int_idcat
Check categories on websafe name
Check all categories in the main parent category on existing same websafe name
bool
in_category
([string $str_name = ""], [int $int_id = 0], [int $int_lang_id = 0])
-
string
$str_name: Websafe name to check
-
int
$int_id: Current category id
-
int
$int_lang_id: Current language id
Returns enabled state of mod rewrite plugin
bool
is_enabled
()
reset_aliases()
method to reset all aliases (category and article)
void
reset_aliases
()
reset_articles_aliases()
method to reset all aliases in articles
void
reset_articles_aliases
()
reset_categories_aliases()
method to reset all aliases in categories
void
reset_categories_aliases
()
return full contenido url from single anchor
string
rewrite_html_anchor
([array $arr_matches = array()])
-
array
$arr_matches: [0] = complete anchor, [1] = pre arguments, [2] = anchor name, [3] = post arguments
Set websafe name in article list.
Insert new websafe name in article list
bool
set_article
([string $str_name = ""], [int $int_id = 0], [int $int_lang_id = 0], [ $int_idcat = 0])
-
string
$str_name: Original name (will be converted)
-
int
$int_id: Current article id
-
int
$int_lang_id: Current language id
-
$int_idcat
Set websafe name in category list.
Insert new websafe name in category list.
bool
set_category
([string $str_name = ""], [int $int_id = 0], [int $int_lang_id = 0])
-
string
$str_name: Original name (will be converted) or alias
-
int
$int_id: Current article id
-
int
$int_lang_id: Current language id
Analyses the settings for usage of categories as a html file and returns the result as a boolean
bool
validate_setting_categories_as_html
()