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

better formatting

parent 9ce09248
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# Piwik Platform Changelog # Piwik Platform Changelog
This is a changelog for Piwik platform developers. All new API's, changes, new features for our HTTP API's, Plugins, Themes, etc will be listed here. This is a changelog for Piwik platform developers. All changes for our HTTP API's, Plugins, Themes, etc will be listed here.
## Piwik 2.5.0 ## Piwik 2.5.0
### Breaking Changes ### Breaking Changes
* The [settings](http://developer.piwik.org/guides/piwik-configuration) API does now receive the actual entered value and will no longer convert characters like `&` to `&`. If you still want this behavior - for instance to prevent XSS - you can define a filter by setting the `transform` property like this: * The [settings](http://developer.piwik.org/guides/piwik-configuration) API will receive the actual entered value and will no longer convert characters like `&` to `&`. If you still want this behavior - for instance to prevent XSS - you can define a filter by setting the `transform` property like this:
`$setting->transform = function ($value) { return Common::sanitizeInputValue($value); }` `$setting->transform = function ($value) { return Common::sanitizeInputValue($value); }`
* Config setting `disable_merged_assets` moved from `Debug` section to `Development`. The updater will automatically change the section for you. * Config setting `disable_merged_assets` moved from `Debug` section to `Development`. The updater will automatically change the section for you.
### Deprecations ### Deprecations
* The following events are considered as deprecated and the new structure should be used in the future. We have not scheduled when those events will be removed, probably in Piwik 3.0 which is not scheduled yet and won't be soon. The following events are considered as deprecated and the new structure should be used in the future. We have not scheduled when those events will be removed but probably in Piwik 3.0 which is not scheduled yet and won't be soon. New features will be added only to the new classes.
* "API.getReportMetadata", "API.getSegmentDimensionMetadata", "Goals.getReportsWithGoalMetrics"
=> use [Report](http://developer.piwik.org/api-reference/Piwik/Plugin/Report) class instead to define new reports. There is an updated guide as well [Part1](http://developer.piwik.org/guides/getting-started-part-1) * `API.getReportMetadata`, `API.getSegmentDimensionMetadata`, `Goals.getReportsWithGoalMetrics`: use [Report](http://developer.piwik.org/api-reference/Piwik/Plugin/Report) class instead to define new reports. There is an updated guide as well [Part1](http://developer.piwik.org/guides/getting-started-part-1)
* "WidgetsList.addWidgets" * `WidgetsList.addWidgets`: use [Widgets](http://developer.piwik.org/api-reference/Piwik/Plugin/Widgets) class instead to define new widgets
=> use [Widgets](http://developer.piwik.org/api-reference/Piwik/Plugin/Widgets) class instead to define new widgets * `Menu.Admin.addItems`, `Menu.Reporting.addItems`, `Menu.Top.addItems`: use [Menu](http://developer.piwik.org/api-reference/Piwik/Plugin/Menu) class instead
* "Menu.Admin.addItems", "Menu.Reporting.addItems", "Menu.Top.addItems" * `TaskScheduler.getScheduledTasks`: use [Tasks](http://developer.piwik.org/api-reference/Piwik/Plugin/Tasks) class instead to define new tasks
=> use [Menu](http://developer.piwik.org/api-reference/Piwik/Plugin/Menu) class instead * `Tracker.recordEcommerceGoal`, `Tracker.recordStandardGoals`, `Tracker.newConversionInformation`: use [Conversion Dimension](http://developer.piwik.org/api-reference/Piwik/Plugin/Dimension/ConversionDimension) class instead
* "TaskScheduler.getScheduledTasks" * `Tracker.existingVisitInformation`, `Tracker.newVisitorInformation`, `Tracker.getVisitFieldsToPersist`: use [Visit Dimension](http://developer.piwik.org/api-reference/Piwik/Plugin/Dimension/VisitDimension) class instead
=> use [Tasks](http://developer.piwik.org/api-reference/Piwik/Plugin/Tasks) class instead to define new tasks
* "Tracker.recordEcommerceGoal", "Tracker.recordStandardGoals", "Tracker.newConversionInformation"
=> use [Conversion Dimension](http://developer.piwik.org/api-reference/Piwik/Plugin/Dimension/ConversionDimension) class instead
* "Tracker.existingVisitInformation", "Tracker.newVisitorInformation", "Tracker.getVisitFieldsToPersist"
=> use [Visit Dimension](http://developer.piwik.org/api-reference/Piwik/Plugin/Dimension/VisitDimension) class instead
### New features ### New features
* Translation key search: As a plugin developer you might want to reuse existing translation keys. You can now find all available translations and translation keys by going to the "Settings => Development:Translation search".
#### Translation search
As a plugin developer you might want to reuse existing translation keys. You can now find all available translations and translation keys by opening the page "Settings => Development:Translation search" in your Piwik installation. Read more about [internationalization](http://developer.piwik.org/guides/internationalization) here.
### New APIs ### New APIs
* [Report](http://developer.piwik.org/api-reference/Piwik/Plugin/Report) * [Report](http://developer.piwik.org/api-reference/Piwik/Plugin/Report) to add a new report
* [Action Dimension](http://developer.piwik.org/api-reference/Piwik/Plugin/Dimension/ActionDimension) to add a dimension that tracks action related information * [Action Dimension](http://developer.piwik.org/api-reference/Piwik/Plugin/Dimension/ActionDimension) to add a dimension that tracks action related information
* [Visit Dimension](http://developer.piwik.org/api-reference/Piwik/Plugin/Dimension/VisitDimension) to add a dimension that tracks visit related information * [Visit Dimension](http://developer.piwik.org/api-reference/Piwik/Plugin/Dimension/VisitDimension) to add a dimension that tracks visit related information
* [Conversion Dimension](http://developer.piwik.org/api-reference/Piwik/Plugin/Dimension/ConversionDimension) to add a dimension that tracks conversion related information * [Conversion Dimension](http://developer.piwik.org/api-reference/Piwik/Plugin/Dimension/ConversionDimension) to add a dimension that tracks conversion related information
...@@ -38,14 +35,15 @@ This is a changelog for Piwik platform developers. All new API's, changes, new f ...@@ -38,14 +35,15 @@ This is a changelog for Piwik platform developers. All new API's, changes, new f
* [Tasks](http://developer.piwik.org/api-reference/Piwik/Plugin/Tasks) to add scheduled tasks * [Tasks](http://developer.piwik.org/api-reference/Piwik/Plugin/Tasks) to add scheduled tasks
### New commmands ### New commmands
* `development:enable` Let's you enable the development mode which will will disable some caching to make code changes directly visible and it will assist developers by performing additional checks to prevent for instance typos. Should not be used in production. * `generate:theme` Let's you easily generate a new theme and customize colors, see the [Theming guide](http://developer.piwik.org/guides/theming)
* `development:disable` Let's you disable the development mode
* `generate:update` Let's you generate an update file * `generate:update` Let's you generate an update file
* `generate:report` Let's you generate a report * `generate:report` Let's you generate a report
* `generate:dimension` Let's you enhance the tracking by adding new dimensions * `generate:dimension` Let's you enhance the tracking by adding new dimensions
* `generate:menu` Let's you generate a menu class to add or modify menu items * `generate:menu` Let's you generate a menu class to add or modify menu items
* `generate:widgets` Let's you generate a widgets class to add or modify widgets * `generate:widgets` Let's you generate a widgets class to add or modify widgets
* `generate:tasks` Let's you generate a tasks class to add or modify tasks * `generate:tasks` Let's you generate a tasks class to add or modify tasks
* `development:enable` Let's you enable the development mode which will will disable some caching to make code changes directly visible and it will assist developers by performing additional checks to prevent for instance typos. Should not be used in production.
* `development:disable` Let's you disable the development mode
<!-- <!--
## Temlate: Piwik version number ## Temlate: Piwik version number
...@@ -56,4 +54,4 @@ This is a changelog for Piwik platform developers. All new API's, changes, new f ...@@ -56,4 +54,4 @@ This is a changelog for Piwik platform developers. All new API's, changes, new f
### New APIs ### New APIs
### New commmands ### New commmands
### New guides ### New guides
--> -->
\ 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