Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/VisitorInterest/API.php')
-rw-r--r--plugins/VisitorInterest/API.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/VisitorInterest/API.php b/plugins/VisitorInterest/API.php
index f93abbcb34..55474318db 100644
--- a/plugins/VisitorInterest/API.php
+++ b/plugins/VisitorInterest/API.php
@@ -11,6 +11,7 @@
use Piwik\Archive;
use Piwik\Metrics;
use Piwik\Piwik;
+use Piwik\DataTable;
/**
* VisitorInterest API lets you access two Visitor Engagement reports: number of visits per number of pages,
@@ -68,7 +69,7 @@ class Piwik_VisitorInterest_API
* @param string $period The period type.
* @param string $date The date type.
* @param string|bool $segment The segment.
- * @return Piwik_DataTable the archived report data.
+ * @return DataTable the archived report data.
*/
public function getNumberOfVisitsByDaysSinceLast($idSite, $period, $date, $segment = false)
{
@@ -89,7 +90,7 @@ class Piwik_VisitorInterest_API
* @param string $period The period type.
* @param string $date The date type.
* @param string|bool $segment The segment.
- * @return Piwik_DataTable the archived report data.
+ * @return DataTable the archived report data.
*/
public function getNumberOfVisitsByVisitCount($idSite, $period, $date, $segment = false)
{
@@ -110,11 +111,11 @@ class Piwik_VisitorInterest_API
* regardless of whether the data table is an data table array or just
* a data table.
*
- * @param Piwik_DataTable $dataTable The data table to modify.
+ * @param DataTable $dataTable The data table to modify.
*/
private static function addVisitsPercentColumn($dataTable)
{
- if ($dataTable instanceof Piwik_DataTable_Array) {
+ if ($dataTable instanceof DataTable\Map) {
foreach ($dataTable->getArray() as $table) {
self::addVisitsPercentColumn($table);
}