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/ExampleAPI
parent0a63210e3eae7562af1a3dbee340eb1ee140db3d (diff)
Refs #4059 Work in progress: Conversion to use Namespaces: Period*, Metrics, Segment, SegmentExpression, PluginsManager.
Removed some deprecated code.
Diffstat (limited to 'plugins/ExampleAPI')
-rw-r--r--plugins/ExampleAPI/API.php8
-rw-r--r--plugins/ExampleAPI/ExampleAPI.php3
2 files changed, 7 insertions, 4 deletions
diff --git a/plugins/ExampleAPI/API.php b/plugins/ExampleAPI/API.php
index 163d265c27..d4a0febccf 100644
--- a/plugins/ExampleAPI/API.php
+++ b/plugins/ExampleAPI/API.php
@@ -8,7 +8,9 @@
* @category Piwik_Plugins
* @package Piwik_ExampleAPI
*/
+use Piwik\DataTable\Row;
use Piwik\Piwik;
+use Piwik\DataTable;
/**
* The ExampleAPI is useful to developers building a custom Piwik plugin.
@@ -126,13 +128,13 @@ class Piwik_ExampleAPI_API
* This data table will be converted to all available formats
* when requested in the API request.
*
- * @return Piwik_DataTable
+ * @return DataTable
*/
public function getCompetitionDatatable()
{
- $dataTable = new Piwik_DataTable();
+ $dataTable = new DataTable();
- $row1 = new Piwik_DataTable_Row();
+ $row1 = new Row();
$row1->setColumns(array('name' => 'piwik', 'license' => 'GPL'));
// Rows Metadata is useful to store non stats data for example (logos, urls, etc.)
diff --git a/plugins/ExampleAPI/ExampleAPI.php b/plugins/ExampleAPI/ExampleAPI.php
index 7c96f96c19..da1c3f4c52 100644
--- a/plugins/ExampleAPI/ExampleAPI.php
+++ b/plugins/ExampleAPI/ExampleAPI.php
@@ -8,12 +8,13 @@
* @category Piwik_Plugins
* @package Piwik_ExampleAPI
*/
+use Piwik\Plugin;
/**
* ExampleAPI plugin
*
* @package Piwik_ExampleAPI
*/
-class Piwik_ExampleAPI extends Piwik_Plugin
+class Piwik_ExampleAPI extends Plugin
{
}