diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-07-23 11:52:15 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-07-23 11:52:15 +0400 |
commit | 5104d94f3b2250f766b9c520e2da8da9b4cab2e9 (patch) | |
tree | 5f30daf7bc14373fb1bbd0504ce11a771dafc02f /core/Tracker/Db.php | |
parent | ae4b1f4e38077b174e4df5b7d4513d63fe026a24 (diff) |
Refs #4059 Work in progress: Conversion to use Namespaces of dozen more classes
Removed many Piwik_ functions, in Piwik 2 it is best practise to use the methods calls instead
Todo: finish converting core/ classes + convert plugins/ classes to use \Piwik\Plugin namespace + fix build + Merge master
Diffstat (limited to 'core/Tracker/Db.php')
-rw-r--r-- | core/Tracker/Db.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/Tracker/Db.php b/core/Tracker/Db.php index 5b7cbde2cc..f917f3ed61 100644 --- a/core/Tracker/Db.php +++ b/core/Tracker/Db.php @@ -9,6 +9,7 @@ * @package Piwik */ use Piwik\Common; +use Piwik\Timer; /** * Simple database wrapper. @@ -16,7 +17,7 @@ use Piwik\Common; * We wrote this simple class * * @package Piwik - * @subpackage Piwik_Tracker + * @subpackage Tracker */ abstract class Piwik_Tracker_Db { @@ -60,18 +61,18 @@ abstract class Piwik_Tracker_Db /** * Initialize profiler * - * @return Piwik_Timer + * @return Timer */ protected function initProfiler() { - return new Piwik_Timer; + return new Timer; } /** * Record query profile * * @param string $query - * @param Piwik_Timer $timer + * @param Timer $timer */ protected function recordQueryProfile($query, $timer) { |