diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-08-02 17:59:33 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-08-02 17:59:33 +0400 |
commit | a96ec40e983a8b64f4c25def541a519ff3670e6a (patch) | |
tree | bef2a5f7b1e9532dc96161334e23a553cdff7ea1 /plugins/CoreAdminHome/API.php | |
parent | 61997f45e4c39360000e815c9e0853ae04e2f56f (diff) |
Refs #4059 Converting dozens of plugins/* classes to use Namespaces, \Piwik\Plugins\*
Added namespaces to functions.php files in the five plugins that had one
Work in progress
Diffstat (limited to 'plugins/CoreAdminHome/API.php')
-rw-r--r-- | plugins/CoreAdminHome/API.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/CoreAdminHome/API.php b/plugins/CoreAdminHome/API.php index 2768708ef5..71444288e3 100644 --- a/plugins/CoreAdminHome/API.php +++ b/plugins/CoreAdminHome/API.php @@ -6,8 +6,11 @@ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * * @category Piwik_Plugins - * @package Piwik_CoreAdminHome + * @package CoreAdminHome */ +namespace Piwik\Plugins\CoreAdminHome; + +use Exception; use Piwik\DataAccess\ArchiveTableCreator; use Piwik\Period; use Piwik\Period\Week; @@ -20,14 +23,14 @@ use Piwik\Site; use Piwik\Db; /** - * @package Piwik_CoreAdminHome + * @package CoreAdminHome */ -class Piwik_CoreAdminHome_API +class API { static private $instance = null; /** - * @return Piwik_CoreAdminHome_API + * @return \Piwik\Plugins\CoreAdminHome\API */ static public function getInstance() { @@ -103,7 +106,6 @@ class Piwik_CoreAdminHome_API } } - // If using the feature "Delete logs older than N days"... $logsAreDeletedBeforeThisDate = Config::getInstance()->Deletelogs['delete_logs_schedule_lowest_interval']; $logsDeleteEnabled = Config::getInstance()->Deletelogs['delete_logs_enable']; @@ -188,7 +190,7 @@ class Piwik_CoreAdminHome_API Db::query($query, $bind); // Force to re-process data for these websites in the next archive.php cron run - $invalidatedIdSites = Piwik_CoreAdminHome_API::getWebsiteIdsToInvalidate(); + $invalidatedIdSites = self::getWebsiteIdsToInvalidate(); $invalidatedIdSites = array_merge($invalidatedIdSites, $idSites); $invalidatedIdSites = array_unique($invalidatedIdSites); $invalidatedIdSites = array_values($invalidatedIdSites); |