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/DBStats/API.php')
-rw-r--r--plugins/DBStats/API.php25
1 files changed, 13 insertions, 12 deletions
diff --git a/plugins/DBStats/API.php b/plugins/DBStats/API.php
index 0c4a4d1e53..46b3666c02 100644
--- a/plugins/DBStats/API.php
+++ b/plugins/DBStats/API.php
@@ -10,6 +10,7 @@
*/
use Piwik\Piwik;
use Piwik\Common;
+use Piwik\DataTable;
/**
* @see plugins/DBStats/MySQLMetadataProvider.php
@@ -100,7 +101,7 @@ class Piwik_DBStats_API
* This function will group tracker tables, numeric archive tables, blob archive tables
* and other tables together so only four rows are shown.
*
- * @return Piwik_DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
+ * @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
*/
public function getDatabaseUsageSummary()
{
@@ -130,13 +131,13 @@ class Piwik_DBStats_API
$rowToAddTo['row_count'] += $status['Rows'];
}
- return Piwik_DataTable::makeFromIndexedArray($rows);
+ return DataTable::makeFromIndexedArray($rows);
}
/**
* Returns a datatable describing how much space is taken up by each log table.
*
- * @return Piwik_DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
+ * @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
*/
public function getTrackerDataSummary()
{
@@ -148,7 +149,7 @@ class Piwik_DBStats_API
* Returns a datatable describing how much space is taken up by each numeric
* archive table.
*
- * @return Piwik_DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
+ * @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
*/
public function getMetricDataSummary()
{
@@ -160,7 +161,7 @@ class Piwik_DBStats_API
* Returns a datatable describing how much space is taken up by each numeric
* archive table, grouped by year.
*
- * @return Piwik_DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
+ * @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
*/
public function getMetricDataSummaryByYear()
{
@@ -178,7 +179,7 @@ class Piwik_DBStats_API
* Returns a datatable describing how much space is taken up by each blob
* archive table.
*
- * @return Piwik_DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
+ * @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
*/
public function getReportDataSummary()
{
@@ -190,7 +191,7 @@ class Piwik_DBStats_API
* Returns a datatable describing how much space is taken up by each blob
* archive table, grouped by year.
*
- * @return Piwik_DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
+ * @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
*/
public function getReportDataSummaryByYear()
{
@@ -210,7 +211,7 @@ class Piwik_DBStats_API
* An 'admin' table is a table that is not central to analytics functionality.
* So any table that isn't an archive table or a log table is an 'admin' table.
*
- * @return Piwik_DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
+ * @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
*/
public function getAdminDataSummary()
{
@@ -226,7 +227,7 @@ class Piwik_DBStats_API
*
* @param bool $forceCache false to use the cached result, true to run the queries again and
* cache the result.
- * @return Piwik_DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
+ * @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
*/
public function getIndividualReportsSummary($forceCache = false)
{
@@ -242,7 +243,7 @@ class Piwik_DBStats_API
*
* @param bool $forceCache false to use the cached result, true to run the queries again and
* cache the result.
- * @return Piwik_DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
+ * @return DataTable A datatable with three columns: 'data_size', 'index_size', 'row_count'.
*/
public function getIndividualMetricsSummary($forceCache = false)
{
@@ -254,11 +255,11 @@ class Piwik_DBStats_API
* Returns a datatable representation of a set of table statuses.
*
* @param array $statuses The table statuses to summarize.
- * @return Piwik_DataTable
+ * @return DataTable
*/
private function getTablesSummary($statuses)
{
- $dataTable = new Piwik_DataTable();
+ $dataTable = new DataTable();
foreach ($statuses as $status) {
$dataTable->addRowFromSimpleArray(array(
'label' => $status['Name'],