cCatPerm
checkLinks
getGroupIDs
linksort
mr_arrayValue
mr_buildGeneratedCode
mr_buildNewUrl
mr_conCopyArtLang
mr_conMoveArticles
mr_conSaveArticle
mr_conSyncArticle
mr_debugOutput
mr_getConfiguration
mr_getRequest
mr_header
mr_i18n
mr_loadConfiguration
mr_queryAndNextRecord
mr_removeMultipleChars
mr_requestCleanup
mr_runFrontendController
mr_setClientLanguageId
mr_setConfiguration
mr_strCopyCategory
mr_strMoveSubtree
mr_strMoveUpCategory
mr_strMovedownCategory
mr_strNewCategory
mr_strNewTree
mr_strRenameCategory
mr_strSyncCategory
pica_ArticleListActions
pica_GetCustomTabProperties
pica_RegisterCustomTab
pica_RenderArticleAction
searchFrontContentLinks
searchLinks
str_replace_recursive
url_is_image
url_is_uri
cCatPerm($widcat, $db)
checkLinks()
getGroupIDs($db)
linksort($sErrors)
mr_arrayValue(array $array, mixed $key, mixed $default) : mixed
Shortcut function for some ways to access to arrays:
// old way
if (is_array($foo) && isset($foo['bar']) && $foo['bar'] == 'yieeha') {
// do something
}
// new, more readable way:
if (mr_arrayValue($foo, 'bar') == 'yieeha') {
// do something
}
// old way
if (is_array($foo) && isset($foo['bar'])) {
$jep = $foo['bar'];
} else {
$jep = 'yummy';
}
// new way
$jep = mr_arrayValue($foo, 'bar', 'yummy');
array
The array
mixed
Position of an indexed array or key of an assoziative array
mixed
Default value to return
mixed
Either the found value or the default valuemr_buildGeneratedCode(string $code) : string
Will be called by chain 'Contenido.Content.conGenerateCode' or 'Contenido.Frontend.HTMLCodeOutput' depening on mod_rewrite settings.
string
Code to prepare
string
New codemr_buildNewUrl(string $url) : string
Will also be called by chain 'Contenido.Frontend.CreateURL'.
todo | : Still exists bcause of downwards compatibility (some other modules/plugins are using it) |
---|
string
URL to rebuild
string
New URLmr_conCopyArtLang(array $data) : array
Will be called by chain 'Contenido.Article.conCopyArtLang_AfterInsert'.
array
Assoziative array with record entries
array
Loop through of argumentsmr_conMoveArticles(array $data) : array
Will be called by chain 'Contenido.Article.conMoveArticles_Loop'.
array
Assoziative array with record entries
array
Loop through of argumentsmr_conSaveArticle(array $data) : array
Will be called by chain 'Contenido.Action.con_saveart.AfterCall'.
array
Assoziative array with some article properties
array
Passed parametermr_conSyncArticle(array $data) : array
Will be called by chain 'Contenido.Article.conSyncArticle_AfterInsert'.
array
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 );
array
Loop through of argumentmr_debugOutput(bool $print) : mixed
bool
Flag to echo the debug data
mixed
Either the debug data, if parameter $print is set to true, or nothingmr_getConfiguration(int $clientId) : array | null
File is placed in /contenido/mod_rewrite/includes/and is named like config.mod_rewrite_{client_id}.php.
int
Id of client
array
null
mr_getRequest(string $key, mixed $default) : mixed
Checks occurance in $_GET, then in $_POST. Uses trim() and strip_tags() to preclean data.
string
Name of var to get
mixed
Default value to return
mixed
The valuemr_header(\$header $header)
\$header
Header value for redirect
mr_i18n(string $key) : string
string
The message id as string
string
Related messagemr_loadConfiguration(int $clientId, bool $forceReload)
File is placed in /contenido/mod_rewrite/includes/and is named like config.mod_rewrite_{client_id}.php.
int
Id of client
bool
Flag to force to reload configuration, e. g. after done changes on it
mr_queryAndNextRecord(string $query) : mixed
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'";
$data = mr_queryAndNextRecord($sql);
string
Query to execute
mixed
Assoziative array including recordset or nullmr_removeMultipleChars(string $char, string $string) : string
string
Character to remove
string
String to clean from character
string
Cleaned stringmr_requestCleanup(mixed $data, array $options) : mixed
Pass the array to cleanup using several options. Emulates array_walk_recursive().
mixed
Data to cleanup
array
Default options array, provides only 'filter' key with several filter functions which are to execute as follows: $options['filter'] = array('trim', 'myFilterFunc');
If no filter functions are set, 'trim', 'strip_tags' and 'stripslashes' will be used by default. A userdefined function must accept the value as a parameter and must return the filtered parameter, e. g. function myFilter($data) { // do what you want with the data, e. g. cleanup of xss content return $data; }
mixed
Cleaned datamr_runFrontendController() : bool
Will be called by chain 'Contenido.Frontend.AfterLoadPlugins' at front_content.php.
bool
Just a return valuemr_setClientLanguageId(int $client)
int
Client id
mr_setConfiguration(int $clientId, array $config) : bool
File is placed in /contenido/mod_rewrite/includes/and is named like config.mod_rewrite_{client_id}.php.
int
Id of client
array
Configuration to save
bool
mr_strCopyCategory(array $data) : array
Will be called by chain 'Contenido.Category.strCopyCategory'.
array
Assoziative array with some values
array
Passed parametermr_strMoveSubtree(array $data) : array
Will be called by chain 'Contenido.Action.str_movesubtree.AfterCall'.
array
Assoziative array with some values
array
Passed parametermr_strMoveUpCategory(int $idcat) : int
Will be called by chain 'Contenido.Action.str_moveupcat.AfterCall'.
todo | do we really need processing of the category? there is no mr relevant data changes while moving the category on same level, level and name won't change |
---|
int
Category id
int
Category idmr_strMovedownCategory(int $idcat) : int
Will be called by chain 'Contenido.Action.str_movedowncat.AfterCall'.
todo | do we really need processing of the category? there is no mr relevant data changes while moving the category on same level, level and name won't change |
---|
int
Id of category beeing moved down
int
Category idmr_strNewCategory(array $data) : array
Will be called by chain 'Contenido.Action.str_newcat.AfterCall'.
array
Assoziative array with some values
array
Passed parametermr_strNewTree(array $data) : array
Will be called by chain 'Contenido.Action.str_newtree.AfterCall'.
array
Assoziative array with some values
array
Passed parametermr_strRenameCategory(array $data) : array
2010-02-01: max 50 recursion level
Will be called by chain 'Contenido.Action.str_renamecat.AfterCall'.
array
Assoziative array with some values
array
Passed parametermr_strSyncCategory(array $data) : array
Will be called by chain 'Contenido.Category.strSyncCategory_Loop'.
array
Assoziative array with some values
array
Passed parameterpica_ArticleListActions($aActions)
pica_GetCustomTabProperties($sIntName)
pica_RegisterCustomTab()
pica_RenderArticleAction($idcat, $idart, $idartlang, $actionkey)
searchFrontContentLinks($sValue, $iArt, $sArt, $iCat, $sCat)
searchLinks($sValue, $iArt, $sArt, $iCat, $sCat, $iLang, $sFromtype)
str_replace_recursive($array)
url_is_image($sUrl)
url_is_uri($sUrl)
Mod Rewrite controller class. Extracts url parts and sets some necessary globals like: - $idart - $idcat - $client - $changeclient - $lang - $changelang
« More »Mod rewrite url stack class. Provides features to collect urls and to get the pretty path and names of categories/articles at one go.
« More »