Opened 4 years ago

Closed 4 years ago

#1222 closed Bug (fixed)

Document plugin getInformation() and the version number policy

Reported by: hebbet Owned by:
Priority: low Milestone: Piwik 0.6
Component: Documentation Keywords:
Cc: Sensitive: no

Description (last modified by vipsoft)

Most of the core plugins are using Piwik_Version::VERSION for their version number, but not so for the example plugins.

The version number policy is:

  • core plugins (distributed in the Piwik release, with the exception of examples) use Piwik_Version::VERSION, so that they always reflect/match the base version
  • example plugins use a hard-coded version number as an example for 3rd party developers (e.g., '0.1')
  • 3rd party plugins use a hard-coded version number that must be incremented with each plugin release

A policy for transitioning 3rd party plugins to core will be formalized after #1116.

Attachments (1)

plugin-numbers.patch (2.3 KB) - added by hebbet 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by hebbet

comment:1 Changed 4 years ago by vipsoft (robocoder)

  • Component changed from Core to Documentation
  • Description modified (diff)
  • Summary changed from Plugin Version numbers to Document plugin getInformation() and the version number policy

comment:2 Changed 4 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [1964]) fixes #1222 - document the version number policy; point developers (who read the code) to Piwik_Plugin (core/Plugin.php)

Note: See TracTickets for help on using tickets.