|
dolibarr
13.0.2
|
Class of triggers for workflow module. More...
Inheritance diagram for InterfaceWorkflowManager:
Collaboration diagram for InterfaceWorkflowManager:Public Member Functions | |
| __construct ($db) | |
| Constructor. More... | |
| 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... | |
Private Member Functions | |
| shouldClassify ($conf, $totalonlinkedelements, $object_total_ht) | |
Class of triggers for workflow module.
Definition at line 33 of file interface_20_modWorkflow_WorkflowManager.class.php.
| InterfaceWorkflowManager::__construct | ( | $db | ) |
Constructor.
Definition at line 40 of file interface_20_modWorkflow_WorkflowManager.class.php.
References db, description, and name.
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)
| string | $action | Event action code |
| Object | $object | Object |
| User | $user | Object user |
| Translate | $langs | Object langs |
| conf | $conf | Object conf |
Definition at line 63 of file interface_20_modWorkflow_WorkflowManager.class.php.
References db, dol_syslog(), name, shouldClassify(), 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.
|
private |
| Object | $conf | Dolibarr settings object |
| float | $totalonlinkedelements | Sum of total amounts (excl VAT) of invoices linked to $object |
| float | $object_total_ht | The total amount (excl VAT) of the object (an order, a proposal, a bill, etc.) |
Definition at line 318 of file interface_20_modWorkflow_WorkflowManager.class.php.
References price2num().
Referenced by runTrigger().