9
edits
mNo edit summary Tag: 2017 source edit |
m (Corrected typo, added a space) |
||
| Line 24: | Line 24: | ||
*'''interface_99_mod''MyModule_Xxx''.class.php''' | *'''interface_99_mod''MyModule_Xxx''.class.php''' | ||
where ''Xxx'' is a string of your choice starting with uppercase character, ''99'' is the priority number for the execution of your trigger (1 being the top priority) and ''MyModule'' is the name of a module if you want that trigger is activated only if module | where ''Xxx'' is a string of your choice starting with uppercase character, ''99'' is the priority number for the execution of your trigger (1 being the top priority) and ''MyModule'' is the name of a module if you want that trigger is activated only if module MyModule is activated. If you want the trigger to be always active, use ''all'' instead of modMyModule. | ||
This new file must be saved inside same directory. | This new file must be saved inside same directory. | ||
Note: Value you can use for | Note: Value you can use for mod MyModule are values found in directory | ||
''htdocs/includes/modules''. | ''htdocs/includes/modules''. | ||
| Line 109: | Line 109: | ||
To manage events other than those above, you must modify the Dolibarr code to add the following sequence in the business methods of the classes of the objects handled: | To manage events other than those above, you must modify the Dolibarr code to add the following sequence in the business methods of the classes of the objects handled: | ||
<source lang = "php"> | <source lang="php"> | ||
// Call trigger | // Call trigger | ||
//$this->context = array('paramX'=>$valueX); | //$this->context = array('paramX'=>$valueX); | ||
edits