dolibarr
x.y.z
|
Class that all the triggers must extend. More...
Public Member Functions | |
__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... | |
Class that all the triggers must extend.
Definition at line 21 of file dolibarrtriggers.class.php.
DolibarrTriggers::__construct | ( | DoliDB | $db | ) |
DolibarrTriggers::getDesc | ( | ) |
Returns the description of trigger file.
Reimplemented in InterfaceMyModuleTriggers, and InterfaceWebhookTriggers.
Definition at line 118 of file dolibarrtriggers.class.php.
DolibarrTriggers::getName | ( | ) |
Returns the name of the trigger file.
Reimplemented in InterfaceMyModuleTriggers, and InterfaceWebhookTriggers.
Definition at line 108 of file dolibarrtriggers.class.php.
DolibarrTriggers::getVersion | ( | ) |
Returns the version of the trigger file.
Definition at line 128 of file dolibarrtriggers.class.php.
|
abstract |
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 |
Reimplemented in InterfaceMyModuleTriggers, InterfaceZapierTriggers, InterfaceWebhookTriggers, InterfaceContactRoles, InterfaceStripe, InterfaceTicketEmail, InterfaceNotification, InterfaceMailmanSpipsynchro, InterfaceLdapsynchro, InterfaceEventOrganization, InterfaceActionsBlockedLog, InterfaceActionsAuto, InterfaceWorkflowManager, and InterfaceLogevents.