Module development: Difference between revisions

Jump to navigation Jump to search
m
Line 17: Line 17:
= [[File:Art.png]] Create a descriptor of Module (required) =
= [[File:Art.png]] Create a descriptor of Module (required) =
'''When''': Required as soon as an addon is developed, whatever is its goal.
'''When''': Required as soon as an addon is developed, whatever is its goal.
== Internal Name of your Module ==
When you will create your class "class modXXX extends DolibarrModules" WARNING: The XXX '''MUST''' me set to a serie of alpha character, "MyModule", but '''the only character permit are [A-Za-z] and the MAX len of the XXX is 12 characters'''. In the 2.9 version will be add the support of the character "_" in the class name and the character permit will be [A-Za-z_].


== Create your module descriptor ==
== Create your module descriptor ==
Line 26: Line 23:


* all "modMyModule" with a value which corresponds to the vocation of your module. This value must always start with 'mod'.
* all "modMyModule" with a value which corresponds to the vocation of your module. This value must always start with 'mod'.
WARNING: The MyModule '''MUST''' be set to a serie of alpha character, but '''the only character permit are [A-Za-z] and the MAX len of the XXX is 12 characters'''. In the 2.9 version will be add the support of the character "_" in the class name and the character permit will be [A-Za-z_].
* $this->numero = 10000 by a number of free module (Go to '''Home page -> System Information -> Dolibarr -> Modules''' to know id the list of modules used).
* $this->numero = 10000 by a number of free module (Go to '''Home page -> System Information -> Dolibarr -> Modules''' to know id the list of modules used).
* Modify any other variables defined in the constructor (see comment in the code skeleton for their meaning).  
* Modify any other variables defined in the constructor (see comment in the code skeleton for their meaning).  

Navigation menu