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:
authormattpiwik <matthieu.aubry@gmail.com>2010-07-19 00:47:45 +0400
committermattpiwik <matthieu.aubry@gmail.com>2010-07-19 00:47:45 +0400
commitb7ba425b454a42f980f124fa0ba7cd024a9065fd (patch)
treefe59c7b06aef4674d3d11eb3db3b67af7d9dddad /plugins/ExampleAPI
parentf716390ae085910c7baa056056a110c42f8e431c (diff)
Fixes #1485
* Adding XML export of multi dim arrays * Adding metadata for all plugins that define the API functions, metrics, dimensions, category, report name, metrics translations * Could well be extended to include 100% of Piwik report metadata later * cleaning up Goals API returned values to ensure consistency with other responses in piwik APIs git-svn-id: http://dev.piwik.org/svn/trunk@2549 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/ExampleAPI')
-rw-r--r--plugins/ExampleAPI/tests/expected/test_allGetMethods__ExampleAPI.getMultiArray.xml40
1 files changed, 19 insertions, 21 deletions
diff --git a/plugins/ExampleAPI/tests/expected/test_allGetMethods__ExampleAPI.getMultiArray.xml b/plugins/ExampleAPI/tests/expected/test_allGetMethods__ExampleAPI.getMultiArray.xml
index bbd47da257..963d90548f 100644
--- a/plugins/ExampleAPI/tests/expected/test_allGetMethods__ExampleAPI.getMultiArray.xml
+++ b/plugins/ExampleAPI/tests/expected/test_allGetMethods__ExampleAPI.getMultiArray.xml
@@ -1,24 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<result>
- <error message=" Data structure returned is not convertible in the requested format. Try to call this method with the parameters '&amp;format=original&amp;serialize=1'; you will get the original php data structure serialized. The data structure looks like this:
- $data = array (
- 'Limitation' =&gt;
- array (
- 0 =&gt; 'Multi dimensional arrays is only supported by format=JSON',
- 1 =&gt; 'Known limitation',
- ),
- 'Second Dimension' =&gt;
- array (
- 0 =&gt; true,
- 1 =&gt; false,
- 2 =&gt; 1,
- 3 =&gt; 0,
- 4 =&gt; 152,
- 5 =&gt; 'test',
- 6 =&gt;
- array (
- 42 =&gt; 'end',
- ),
- ),
-); " />
+ <Limitation>
+ <row>Multi dimensional arrays is only supported by format=JSON</row>
+ <row>Known limitation</row>
+
+ </Limitation>
+ <Second_Dimension>
+ <row>1</row>
+ <row></row>
+ <row>1</row>
+ <row>0</row>
+ <row>152</row>
+ <row>test</row>
+ <row>
+ <row>end</row>
+
+ </row>
+
+ </Second_Dimension>
+
</result> \ No newline at end of file