Source for file class.modrewritebase.php
Documentation is available at class.modrewritebase.php
* Includes base mod rewrite class.
* @author Murat Purc <murat@purc.de>
* Abstract base mod rewrite class.
* Provides some common features such as common debugging, globals/configuration
* @author Murat Purc <murat@purc.de>
protected static $_oDebug;
protected static $_oGlobals;
* Initialization, is to call at least once by an child.
self::$_oDebug =
Contenido_mpDebug::getInstance();
self::$_oGlobals =
mpGlobals::getInstance();
* Returns enabled state of mod rewrite plugin
return (self::getConfig('use', 0) ==
1) ?
true :
false;
* Returns configuration of mod rewrite, content of gobal $cfg['mod_rewrite']
* @param string $key Name of configuration key
* @return mixed Desired value mr configuration, either the full configuration
* or one of the desired subpart
public static function getConfig($key=
null, $default=
null) {
$aCfg =
self::$_oGlobals->get('cfg/mod_rewrite');
} elseif ((string)
$key !==
'') {
return (isset
($aCfg[$key])) ?
$aCfg[$key] :
$default;
Documentation generated on Tue, 25 Nov 2008 22:07:22 +0100 by phpDocumentor 1.4.1