mr_build_generated_code (line
435)
mr_build_generated_code()
Replaces existing ancors inside passed code, while rebuilding the urls.
Will be called by chain 'Contenido.Content.conGenerateCode' or 'Contenido.Frontend.HTMLCodeOutput' depening on mod_rewrite settings.
string
mr_build_generated_code
(string $code)
-
string
$code: Code to prepare
mr_build_new_url (line
375)
mr_build_new_url()
Works as a wrapper for ModRewrite::build_new_url() function.
Will be called by chain 'Contenido.Frontend.CreateURL'.
string
mr_build_new_url
(string $url)
-
string
$url: URL to rebuild
mr_conCopyArtLang (line
302)
Processes mod_rewrite related job for duplicated articles.
Will be called by chain 'Contenido.Article.conCopyArtLang_AfterInsert'.
array
mr_conCopyArtLang
(array $param)
-
array
$param: Assoziative array with record entries
mr_conEditArt (line
253)
Processes mod_rewrite related job after editing a article.
Will be called as a action code from table con_actions.
void
mr_conEditArt
(int $idart)
-
int
$idart: Id of edited article
mr_conEditFirstTime (line
231)
Processes mod_rewrite related job after editing a article first time.
Will be called as a action code from table con_actions.
void
mr_conEditFirstTime
(int $newIdart)
-
int
$newIdart: Id of new edited article
mr_conMoveArticles (line
275)
Processes mod_rewrite related job for articles beeing moved.
Will be called by chain 'Contenido.Article.conMoveArticles_Loop'.
array
mr_conMoveArticles
(array $param)
-
array
$param: Assoziative array with record entries
mr_conSyncArticle (line
335)
Processes mod_rewrite related job for synchronized articles.
Will be called by chain 'Contenido.Article.conSyncArticle_AfterInsert'.
array
mr_conSyncArticle
(array $param)
-
array
$param: Assoziative array with record entries as follows:
array(
'src_art_lang' => Recordset (assoziative array) of source item from con_art_lang table
'dest_art_lang' => Recordset (assoziative array) of inserted destination item from con_art_lang table
);
mr_get_client_id (line
67)
mr_get_client_id()
get client id from client name
integer
mr_get_client_id
([string $str_clientname = ""])
-
string
$str_clientname: client name
mr_get_idart (line
95)
mr_get_idart()
get article id
get recent article from websafe name tree
integer
mr_get_idart
([string $str_artname = ""], [integer $int_id = 0], [ $int_lang_id = 0])
-
string
$str_artname: Websafe name
-
integer
$int_id: category id
-
$int_lang_id
mr_get_language_id (line
40)
mr_get_language_id()
get language id from language name thanks to Nicolas Dickinson for multi Client/Language BugFix
integer
mr_get_language_id
([string $str_languagename = ""], [ $int_client = 1])
-
string
$str_languagename: language name
-
$int_client
mr_load_configuration (line
523)
Loads Advanced Mod Rewrite configuration for passed client using serialized file containing the settings.
File is placed in /contenido/mod_rewrite/includes/and is named like config.mod_rewrite_{client_id}.php.
void
mr_load_configuration
(int $clientId)
-
int
$clientId: Id of client
mr_query_n_next_record (line
576)
Database query helper. Used to execute a selece statement and to return the result of first recordset.
Minimizes following code:
// default way
$db = new DB_Contenido();
$sql = "SELECT * FROM foo WHERE bar='foobar'";
$db->query($sql);
$db->next_record();
$data = $db->Record;
// new way
$sql = "SELECT * FROM foo WHERE bar='foobar'";
mixed
mr_query_n_next_record
(string $query)
-
string
$query: Query to execute
mr_set_client_language (line
485)
Sets language of client, like done in front_content.php
void
mr_set_client_language
(int $client)
mr_strMoveDownCategory (line
176)
Processes mod_rewrite related job after moving a category down.
Will be called as a action code from table con_actions.
void
mr_strMoveDownCategory
(int $idcat)
-
int
$idcat: Id of category beeing moved down
mr_strMoveSubtree (line
205)
Processes mod_rewrite related job after moving a category subtree.
Will be called as a action code from table con_actions.
void
mr_strMoveSubtree
(int $idcat)
-
int
$idcat: Id of category where the subtree has beeen moved
mr_strMoveUpCategory (line
147)
Processes mod_rewrite related job after moving a category up.
Will be called as a action code from table con_actions.
void
mr_strMoveUpCategory
(int $idcat)
-
int
$idcat: Id of category beeing moved up