dolibarr  7.0.0-beta
Public Member Functions | List of all members
InterfaceWorkflowManager Class Reference

Class of triggers for workflow module. More...

+ Inheritance diagram for InterfaceWorkflowManager:
+ Collaboration diagram for InterfaceWorkflowManager:

Public Member Functions

 runTrigger ($action, $object, User $user, Translate $langs, Conf $conf)
 Function called when a Dolibarrr business event is done. More...
 
- Public Member Functions inherited from DolibarrTriggers
 __construct (DoliDB $db)
 Constructor. More...
 
 getName ()
 Returns the name of the trigger file. More...
 
 getDesc ()
 Returns the description of trigger file. More...
 
 getVersion ()
 Returns the version of the trigger file. More...
 
 runTrigger ($action, $object, User $user, Translate $langs, Conf $conf)
 Function called when a Dolibarrr business event is done. More...
 

Detailed Description

Class of triggers for workflow module.

Definition at line 33 of file interface_20_modWorkflow_WorkflowManager.class.php.

Member Function Documentation

InterfaceWorkflowManager::runTrigger (   $action,
  $object,
User  $user,
Translate  $langs,
Conf  $conf 
)

Function called when a Dolibarrr business event is done.

All functions "runTrigger" are triggered if file is inside directory htdocs/core/triggers or htdocs/module/code/triggers (and declared)

Parameters
string$actionEvent action code
Object$objectObject
User$userObject user
Translate$langsObject langs
conf$confObject conf
Returns
int <0 if KO, 0 if no triggered ran, >0 if OK

Definition at line 51 of file interface_20_modWorkflow_WorkflowManager.class.php.

References dol_syslog(), name, CommandeFournisseur\STATUS_ACCEPTED, Propal\STATUS_BILLED, Commande\STATUS_CLOSED, CommandeFournisseur\STATUS_ORDERSENT, CommandeFournisseur\STATUS_RECEIVED_COMPLETELY, CommandeFournisseur\STATUS_RECEIVED_PARTIALLY, Commande\STATUS_SHIPMENTONPROCESS, SupplierProposal\STATUS_SIGNED, Propal\STATUS_SIGNED, and Commande\STATUS_VALIDATED.


The documentation for this class was generated from the following file: