dolibarr 20.0.0
InterfaceWebhookTriggers Class Reference

Class of triggers for Webhook module. More...

Inheritance diagram for InterfaceWebhookTriggers:
Collaboration diagram for InterfaceWebhookTriggers:

Public Member Functions

 __construct ($db)
 Constructor.
 
 runTrigger ($action, $object, User $user, Translate $langs, Conf $conf)
 Function called when a Dolibarr business event is done.
 
- Public Member Functions inherited from DolibarrTriggers
 __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
 

Detailed Description

Class of triggers for Webhook module.

Definition at line 40 of file interface_95_modWebhook_WebhookTriggers.class.php.

Constructor & Destructor Documentation

◆ __construct()

InterfaceWebhookTriggers::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 47 of file interface_95_modWebhook_WebhookTriggers.class.php.

References description.

Member Function Documentation

◆ runTrigger()

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

Function called when a Dolibarr business event is done.

All functions "runTrigger" are triggered if file of function is inside directory core/triggers.

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

Reimplemented from DolibarrTriggers.

Definition at line 67 of file interface_95_modWebhook_WebhookTriggers.class.php.

References $object, dol_clone(), dol_syslog(), getDolGlobalString(), and getURLContent().


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