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_arttitle()
get article name from article id and language id
string
get_arttitle
([integer $int_id = 0], [integer $int_lang_id = 0])
-
integer
$int_id: article id
-
integer
$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_catname()
get category name from category id and language id
string
get_catname
([integer $int_id = 0], [integer $int_lang_id = 0])
-
integer
$int_id: category id
-
integer
$int_lang_id: language id
get_cat_languages()
get language ids from category id
array
get_cat_languages
([integer $int_id = 0])
-
integer
$int_id: category id
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_client_name()
get name of client id
string
get_client_name
([integer $int_id = 0])
-
integer
$int_id: language id
get_id_from_idartlang()
get article id and language id from article language id
Array
get_id_from_idartlang
([integer $int_id = 0])
-
integer
$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
array
get_language_name
([int $int_id = 0])
get_language_name()
get name of language id
string
get_language_name_old
([integer $int_id = 0])
-
integer
$int_id: language id
in_articles()
Check articles on websafe name
Check all articles in the current category on existing same websafe name
boolean
in_articles
([string $str_name = ""], [integer $int_id = 0], [integer $int_lang_id = 0], [ $int_idcat = 0])
-
string
$str_name: Websafe name to check
-
integer
$int_id: current article id
-
integer
$int_lang_id: current language id
-
$int_idcat
in_categories()
Check categories on websafe name
Check all categories in the main parent category on existing same websafe name
boolean
in_category
([string $str_name = ""], [integer $int_id = 0], [integer $int_lang_id = 0])
-
string
$str_name: Websafe name to check
-
integer
$int_id: current category id
-
integer
$int_lang_id: current language id
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_article()
set websafe name in article list
insert new websafe name in article list
boolean
set_article
([string $str_name = ""], [integer $int_id = 0], [integer $int_lang_id = 0], [ $int_idcat = 0])
-
string
$str_name: original name (will be converted)
-
integer
$int_id: current article id
-
integer
$int_lang_id: current language id
-
$int_idcat
set_category()
set websafe name in category list
insert new websafe name in category list
boolean
set_category
([string $str_name = ""], [integer $int_id = 0], [integer $int_lang_id = 0])
-
string
$str_name: original name (will be converted)
-
integer
$int_id: current article id
-
integer
$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
()