dolibarr 21.0.0-beta
|
Class that all triggers must inherit. More...
Public Member Functions | |
__construct (DoliDB $db) | |
Constructor. | |
getName () | |
Returns the name of the trigger file. | |
getDesc () | |
Returns the description of trigger file. | |
getVersion () | |
Returns the version of the trigger file. | |
setErrorsFromObject (CommonObject $object) | |
setErrorsFromObject | |
runTrigger ($action, $object, User $user, Translate $langs, Conf $conf) | |
Function called when a Dolibarr business event is done. | |
Class that all triggers must inherit.
Definition at line 23 of file dolibarrtriggers.class.php.
DolibarrTriggers::__construct | ( | DoliDB | $db | ) |
Constructor.
Reimplemented in InterfaceLogevents.
Definition at line 110 of file dolibarrtriggers.class.php.
References description, and name.
DolibarrTriggers::getDesc | ( | ) |
Returns the description of trigger file.
Definition at line 137 of file dolibarrtriggers.class.php.
DolibarrTriggers::getName | ( | ) |
Returns the name of the trigger file.
Definition at line 127 of file dolibarrtriggers.class.php.
DolibarrTriggers::getVersion | ( | ) |
Returns the version of the trigger file.
Definition at line 147 of file dolibarrtriggers.class.php.
|
abstract |
Function called when a Dolibarr 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 InterfaceActionsAuto, InterfaceActionsBlockedLog, InterfaceContactRoles, InterfaceEventOrganization, InterfaceLdapsynchro, InterfaceLogevents, InterfaceMailmanSpipsynchro, InterfaceMyModuleTriggers, InterfaceNotification, InterfaceStripe, InterfaceTicketEmail, InterfaceWebhookTriggers, and InterfaceZapierTriggers.
DolibarrTriggers::setErrorsFromObject | ( | CommonObject | $object | ) |
setErrorsFromObject
CommonObject | $object | Object |
Definition at line 169 of file dolibarrtriggers.class.php.
References $object.