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
98344746
Commit
98344746
authored
9 years ago
by
Marcos García de La Fuente
Browse files
Options
Downloads
Patches
Plain Diff
Added missing scopes of modMyModule
parent
56ff0c73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev/skeletons/modMyModule.class.php
+11
-11
11 additions, 11 deletions
dev/skeletons/modMyModule.class.php
with
11 additions
and
11 deletions
dev/skeletons/modMyModule.class.php
+
11
−
11
View file @
98344746
...
...
@@ -34,11 +34,11 @@ include_once DOL_DOCUMENT_ROOT .'/core/modules/DolibarrModules.class.php';
class
modMyModule
extends
DolibarrModules
{
/**
*
Constructor. Define names, constants, directories, boxes, permissions
* Constructor. Define names, constants, directories, boxes, permissions
*
*
@param
DoliDB
$db
Database handler
* @param DoliDB
$db Database handler
*/
function
__construct
(
$db
)
public
function
__construct
(
$db
)
{
global
$langs
,
$conf
;
...
...
@@ -249,24 +249,24 @@ class modMyModule extends DolibarrModules
* @param string $options Options when enabling module ('', 'noboxes')
* @return int 1 if OK, 0 if KO
*/
function
init
(
$options
=
''
)
public
function
init
(
$options
=
''
)
{
$sql
=
array
();
$result
=
$this
->
_load_tables
(
'/mymodule/sql/'
);
//
$this->_load_tables('/mymodule/sql/');
return
$this
->
_init
(
$sql
,
$options
);
}
/**
*
Function called when module is disabled.
*
Remove from database constants, boxes and permissions from Dolibarr database.
*
Data directories are not deleted
*
Function called when module is disabled.
* Remove from database constants, boxes and permissions from Dolibarr database.
*
Data directories are not deleted
*
*
@param string $options Options when enabling module ('', 'noboxes')
*
@return int 1 if OK, 0 if KO
*
@param string $options Options when enabling module ('', 'noboxes')
* @return int 1 if OK, 0 if KO
*/
function
remove
(
$options
=
''
)
public
function
remove
(
$options
=
''
)
{
$sql
=
array
();
...
...
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