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');
arrayThe array
mixedPosition of an indexed array or key of an assoziative array
mixedDefault value to return
mixedEither 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.
stringCode to prepare
stringNew 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) |
|---|
stringURL to rebuild
stringNew URLmr_conCopyArtLang(array $data) : array
Will be called by chain 'Contenido.Article.conCopyArtLang_AfterInsert'.
arrayAssoziative array with record entries
arrayLoop through of argumentsmr_conMoveArticles(array $data) : array
Will be called by chain 'Contenido.Article.conMoveArticles_Loop'.
arrayAssoziative array with record entries
arrayLoop through of argumentsmr_conSaveArticle(array $data) : array
Will be called by chain 'Contenido.Action.con_saveart.AfterCall'.
arrayAssoziative array with some article properties
arrayPassed parametermr_conSyncArticle(array $data) : array
Will be called by chain 'Contenido.Article.conSyncArticle_AfterInsert'.
arrayAssoziative 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 );
arrayLoop through of argumentmr_debugOutput(bool $print) : mixed
boolFlag to echo the debug data
mixedEither 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.
intId of client
arraynull
mr_getRequest(string $key, mixed $default) : mixed
Checks occurance in $_GET, then in $_POST. Uses trim() and strip_tags() to preclean data.
stringName of var to get
mixedDefault value to return
mixedThe valuemr_header(\$header $header)
\$headerHeader value for redirect
mr_i18n(string $key) : string
stringThe message id as string
stringRelated messagemr_loadConfiguration(int $clientId, bool $forceReload)
File is placed in /contenido/mod_rewrite/includes/and is named like config.mod_rewrite_{client_id}.php.
intId of client
boolFlag 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);
stringQuery to execute
mixedAssoziative array including recordset or nullmr_removeMultipleChars(string $char, string $string) : string
stringCharacter to remove
stringString to clean from character
stringCleaned stringmr_requestCleanup(mixed $data, array $options) : mixed
Pass the array to cleanup using several options. Emulates array_walk_recursive().
mixedData to cleanup
arrayDefault 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; }
mixedCleaned datamr_runFrontendController() : bool
Will be called by chain 'Contenido.Frontend.AfterLoadPlugins' at front_content.php.
boolJust a return valuemr_setClientLanguageId(int $client)
intClient 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.
intId of client
arrayConfiguration to save
boolmr_strCopyCategory(array $data) : array
Will be called by chain 'Contenido.Category.strCopyCategory'.
arrayAssoziative array with some values
arrayPassed parametermr_strMoveSubtree(array $data) : array
Will be called by chain 'Contenido.Action.str_movesubtree.AfterCall'.
arrayAssoziative array with some values
arrayPassed 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 |
|---|
intCategory id
intCategory 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 |
|---|
intId of category beeing moved down
intCategory idmr_strNewCategory(array $data) : array
Will be called by chain 'Contenido.Action.str_newcat.AfterCall'.
arrayAssoziative array with some values
arrayPassed parametermr_strNewTree(array $data) : array
Will be called by chain 'Contenido.Action.str_newtree.AfterCall'.
arrayAssoziative array with some values
arrayPassed parametermr_strRenameCategory(array $data) : array
2010-02-01: max 50 recursion level
Will be called by chain 'Contenido.Action.str_renamecat.AfterCall'.
arrayAssoziative array with some values
arrayPassed parametermr_strSyncCategory(array $data) : array
Will be called by chain 'Contenido.Category.strSyncCategory_Loop'.
arrayAssoziative array with some values
arrayPassed 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 »