diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-16 05:35:34 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-16 05:35:34 +0400 |
commit | a20afb2f9817cefffefe6615aa63545e2006cc9b (patch) | |
tree | f1d52126e160b7d3eadfad6668d78b012196f1d3 /plugins/Actions/API.php | |
parent | 614d0e82ad80556af00471369e291f32b0ee0af1 (diff) |
DbHelper groups logic around Db, tables, etc.
Diffstat (limited to 'plugins/Actions/API.php')
-rw-r--r-- | plugins/Actions/API.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Actions/API.php b/plugins/Actions/API.php index 9b05536227..aaad454f0e 100644 --- a/plugins/Actions/API.php +++ b/plugins/Actions/API.php @@ -21,7 +21,7 @@ use Piwik\Plugins\Actions\Actions; use Piwik\Tracker\Action; use Piwik\Plugins\Actions\Archiver; use Piwik\Plugins\Actions\ArchivingHelper; -use Piwik\Plugins\CustomVariables\API as CustomVariablesAPI; +use Piwik\Plugins\CustomVariables\API as APICustomVariables; /** * The Actions API lets you request reports for all your Visitor Actions: Page URLs, Page titles (Piwik Events), @@ -343,7 +343,7 @@ class API public function getSiteSearchCategories($idSite, $period, $date, $segment = false) { Actions::checkCustomVariablesPluginEnabled(); - $customVariables = CustomVariablesAPI::getInstance()->getCustomVariables($idSite, $period, $date, $segment, $expanded = false, $_leavePiwikCoreVariables = true); + $customVariables = APICustomVariables::getInstance()->getCustomVariables($idSite, $period, $date, $segment, $expanded = false, $_leavePiwikCoreVariables = true); $customVarNameToLookFor = Action::CVAR_KEY_SEARCH_CATEGORY; @@ -362,7 +362,7 @@ class API if ($row) { $dateRewrite = $customVariableTableForDate->metadata['period']->getDateStart()->toString(); $idSubtable = $row->getIdSubDataTable(); - $categories = CustomVariablesAPI::getInstance()->getCustomVariablesValuesFromNameId($idSite, $period, $dateRewrite, $idSubtable, $segment); + $categories = APICustomVariables::getInstance()->getCustomVariablesValuesFromNameId($idSite, $period, $dateRewrite, $idSubtable, $segment); $dataTable->addTable($categories, $key); } } @@ -371,7 +371,7 @@ class API $row = $customVariables->getRowFromLabel($customVarNameToLookFor); if ($row) { $idSubtable = $row->getIdSubDataTable(); - $dataTable = CustomVariablesAPI::getInstance()->getCustomVariablesValuesFromNameId($idSite, $period, $date, $idSubtable, $segment); + $dataTable = APICustomVariables::getInstance()->getCustomVariablesValuesFromNameId($idSite, $period, $date, $idSubtable, $segment); } } $this->filterActionsDataTable($dataTable); |