diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2010-07-19 00:47:45 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2010-07-19 00:47:45 +0400 |
commit | b7ba425b454a42f980f124fa0ba7cd024a9065fd (patch) | |
tree | fe59c7b06aef4674d3d11eb3db3b67af7d9dddad /plugins/ExampleAPI | |
parent | f716390ae085910c7baa056056a110c42f8e431c (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.xml | 40 |
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 '&format=original&serialize=1'; you will get the original php data structure serialized. The data structure looks like this: - $data = array ( - 'Limitation' => - array ( - 0 => 'Multi dimensional arrays is only supported by format=JSON', - 1 => 'Known limitation', - ), - 'Second Dimension' => - array ( - 0 => true, - 1 => false, - 2 => 1, - 3 => 0, - 4 => 152, - 5 => 'test', - 6 => - array ( - 42 => '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 |