Skip to content
Extraits de code Groupes Projets
Valider e15509d6 rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

refs #5926 added missing files

parent 3159815e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\ExampleReport;
use Piwik\DataTable;
use Piwik\DataTable\Row;
/**
* API for plugin ExampleReport
*
* @method static \Piwik\Plugins\ExampleReport\API getInstance()
*/
class API extends \Piwik\Plugin\API
{
/**
* Another example method that returns a data table.
* @param int $idSite
* @param string $period
* @param string $date
* @param bool|string $segment
* @return DataTable
*/
public function getExampleReport($idSite, $period, $date, $segment = false)
{
$table = new DataTable();
$table->addRowFromArray(array(Row::COLUMNS => array('nb_visits' => 5)));
return $table;
}
}
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\ExampleReport;
class ExampleReport extends \Piwik\Plugin
{
}
{
"name": "ExampleReport",
"version": "0.1.0",
"description": "A plugin that shows how to define a report",
"theme": false,
"authors": [
{
"name": "Piwik",
"email": "",
"homepage": ""
}
]
}
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter