update Piwik to version 2.16 (fixes #91)

This commit is contained in:
oliver 2016-04-10 18:55:57 +02:00
commit d885a4baa9
5833 changed files with 418860 additions and 226988 deletions

View file

@ -1,6 +1,6 @@
<?php
/**
* Piwik - Open source web analytics
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@ -12,14 +12,9 @@ use Piwik\Common;
use Piwik\DataTable;
use Piwik\Piwik;
/**
* @see plugins/DBStats/MySQLMetadataProvider.php
*/
require_once PIWIK_INCLUDE_PATH . '/plugins/DBStats/MySQLMetadataProvider.php';
/**
* DBStats API is used to request the overall status of the Mysql tables in use by Piwik.
*
* @hideExceptForSuperUser
* @method static \Piwik\Plugins\DBStats\API getInstance()
*/
class API extends \Piwik\Plugin\API
@ -29,18 +24,16 @@ class API extends \Piwik\Plugin\API
*/
private $metadataProvider;
/**
* Constructor.
*/
protected function __construct()
public function __construct(MySQLMetadataProvider $metadataProvider)
{
$this->metadataProvider = new MySQLMetadataProvider();
$this->metadataProvider = $metadataProvider;
}
/**
* Gets some general information about this Piwik installation, including the count of
* websites tracked, the count of users and the total space used by the database.
*
*
* @return array Contains the website count, user count and total space used by the database.
*/
public function getGeneralInformation()