From e15509d62039d25f9955108650536cdbeca933d7 Mon Sep 17 00:00:00 2001
From: Thomas Steur <thomas.steur@googlemail.com>
Date: Wed, 6 Aug 2014 11:59:37 +0200
Subject: [PATCH] refs #5926 added missing files

---
 plugins/ExampleReport/API.php           | 38 +++++++++++++++++++++++++
 plugins/ExampleReport/ExampleReport.php | 13 +++++++++
 plugins/ExampleReport/plugin.json       | 13 +++++++++
 3 files changed, 64 insertions(+)
 create mode 100644 plugins/ExampleReport/API.php
 create mode 100644 plugins/ExampleReport/ExampleReport.php
 create mode 100644 plugins/ExampleReport/plugin.json

diff --git a/plugins/ExampleReport/API.php b/plugins/ExampleReport/API.php
new file mode 100644
index 0000000000..3c7c3866c4
--- /dev/null
+++ b/plugins/ExampleReport/API.php
@@ -0,0 +1,38 @@
+<?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;
+    }
+}
diff --git a/plugins/ExampleReport/ExampleReport.php b/plugins/ExampleReport/ExampleReport.php
new file mode 100644
index 0000000000..b1d2d1c708
--- /dev/null
+++ b/plugins/ExampleReport/ExampleReport.php
@@ -0,0 +1,13 @@
+<?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
+{
+}
diff --git a/plugins/ExampleReport/plugin.json b/plugins/ExampleReport/plugin.json
new file mode 100644
index 0000000000..92b90becb4
--- /dev/null
+++ b/plugins/ExampleReport/plugin.json
@@ -0,0 +1,13 @@
+{
+ "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
-- 
GitLab