protected function _getCallerType($sScriptPath)
{
if (isset(self::$_aCallerTypeCache[$sScriptPath])) {
return self::$_aCallerTypeCache[$sScriptPath];
}
$sScriptPath = str_replace('\\', '/', $sScriptPath);
if (false !== strpos($sScriptPath, '/themes/')) {
self::$_aCallerTypeCache[$sScriptPath] = 'theme';
return 'theme';
}
if (false !== strpos($sScriptPath, '/plugins/')) {
self::$_aCallerTypeCache[$sScriptPath] = 'plugin';
return 'plugin';
}
self::$_aCallerTypeCache[$sScriptPath] = 'unknown';
return 'unknown';
}