Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
5772e46c
Commit
5772e46c
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
We start new modules with level "experimental".
parent
a996e8f9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/modules/modCommissions.class.php
+2
-2
2 additions, 2 deletions
htdocs/core/modules/modCommissions.class.php
htdocs/core/modules/modMargin.class.php
+3
-3
3 additions, 3 deletions
htdocs/core/modules/modMargin.class.php
with
5 additions
and
5 deletions
htdocs/core/modules/modCommissions.class.php
+
2
−
2
View file @
5772e46c
...
@@ -54,11 +54,11 @@ class modCommissions extends DolibarrModules
...
@@ -54,11 +54,11 @@ class modCommissions extends DolibarrModules
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
$this
->
description
=
"Commissions management"
;
$this
->
description
=
"Commissions management"
;
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this
->
version
=
'
dolibarr
'
;
$this
->
version
=
'
experimental
'
;
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
$this
->
const_name
=
'MAIN_MODULE_'
.
strtoupper
(
$this
->
name
);
$this
->
const_name
=
'MAIN_MODULE_'
.
strtoupper
(
$this
->
name
);
// Where to store the module in setup page (0=common,1=interface,2=other)
// Where to store the module in setup page (0=common,1=interface,2=other)
$this
->
special
=
0
;
$this
->
special
=
2
;
// Name of png file (without png) used for this module.
// Name of png file (without png) used for this module.
// Png file must be in theme/yourtheme/img directory under name object_pictovalue.png.
// Png file must be in theme/yourtheme/img directory under name object_pictovalue.png.
$this
->
picto
=
'commissions'
;
$this
->
picto
=
'commissions'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/modules/modMargin.class.php
+
3
−
3
View file @
5772e46c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
*/
*/
/** \defgroup margin Module Margin
/** \defgroup margin Module Margin
* \brief
Example of a module descriptor.
* \brief
Module to manage margins
* \file htdocs/includes/modules/modMargin.class.php
* \file htdocs/includes/modules/modMargin.class.php
* \ingroup margin
* \ingroup margin
* \brief Description and activation file for module Margin
* \brief Description and activation file for module Margin
...
@@ -52,11 +52,11 @@ class modMargin extends DolibarrModules
...
@@ -52,11 +52,11 @@ class modMargin extends DolibarrModules
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
$this
->
description
=
"Margin management"
;
$this
->
description
=
"Margin management"
;
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this
->
version
=
'
dolibarr
'
;
$this
->
version
=
'
experimental
'
;
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
$this
->
const_name
=
'MAIN_MODULE_'
.
strtoupper
(
$this
->
name
);
$this
->
const_name
=
'MAIN_MODULE_'
.
strtoupper
(
$this
->
name
);
// Where to store the module in setup page (0=common,1=interface,2=other)
// Where to store the module in setup page (0=common,1=interface,2=other)
$this
->
special
=
0
;
$this
->
special
=
2
;
// Name of png file (without png) used for this module.
// Name of png file (without png) used for this module.
// Png file must be in theme/yourtheme/img directory under name object_pictovalue.png.
// Png file must be in theme/yourtheme/img directory under name object_pictovalue.png.
$this
->
picto
=
'margin'
;
$this
->
picto
=
'margin'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment