diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2008-07-23 02:34:48 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2008-07-23 02:34:48 +0400 |
commit | 8326c555bdc083fa6fc538db7724d9f0151f9c29 (patch) | |
tree | 97787eb7dbf58ff51b2630b7dd37e2600a458fe6 /modules/LogStats.php | |
parent | 5a3d2a23db5089683b5e2d7129688a6899958a68 (diff) |
- you can now Piwik_LogStats::getDb() from your plugin to get the Db object
git-svn-id: http://dev.piwik.org/svn/trunk@568 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'modules/LogStats.php')
-rw-r--r-- | modules/LogStats.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/LogStats.php b/modules/LogStats.php index fe059138b2..cd50980058 100644 --- a/modules/LogStats.php +++ b/modules/LogStats.php @@ -100,6 +100,11 @@ class Piwik_LogStats self::$db->connect(); } + + public static function getDb() + { + return self::$db; + } static function disconnectDb() { @@ -279,6 +284,8 @@ class Piwik_LogStats { header($header); } + + } function printDebug( $info = '' ) |