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:
authormattab <matthieu.aubry@gmail.com>2013-07-21 12:01:35 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-21 12:01:36 +0400
commitaca8ec33a85e0a70b818b6227145041717d7a69e (patch)
tree41377e3a9737d63222522ef93ecf8483f3faddfa /plugins/VisitorInterest/API.php
parent0a63210e3eae7562af1a3dbee340eb1ee140db3d (diff)
Refs #4059 Work in progress: Conversion to use Namespaces: Period*, Metrics, Segment, SegmentExpression, PluginsManager.
Removed some deprecated code.
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);
}