|
dolibarr 23.0.3
|
Class to manage triggers. More...
Public Member Functions | |
| __construct ($db) | |
| Constructor. | |
| run_triggers ($action, $object, $user, $langs, $conf) | |
| Function called when a Dolibarr business event occurs This function call all qualified triggers. | |
| getTriggersList ($forcedirtriggers=null) | |
| Return list of triggers. | |
Class to manage triggers.
Definition at line 34 of file interfaces.class.php.
| Interfaces::__construct | ( | $db | ) |
Constructor.
Definition at line 61 of file interfaces.class.php.
| Interfaces::getTriggersList | ( | $forcedirtriggers = null | ) |
Return list of triggers.
Function used by admin page htdoc/admin/triggers. List is sorted by trigger filename so by priority to run.
| ?array<int,string> | $forcedirtriggers null=All default directories. This parameter is used by modulebuilder module only. |
Definition at line 289 of file interfaces.class.php.
References dol_buildpath(), dol_osencode(), img_object(), img_picto(), and isModEnabled().
| Interfaces::run_triggers | ( | $action, | |
| $object, | |||
| $user, | |||
| $langs, | |||
| $conf ) |
Function called when a Dolibarr business event occurs This function call all qualified triggers.
| string | $action | Trigger event code |
| ?Object | $object | Object concerned. Some context information may also be provided into array property object->context. |
| ?User | $user | Object user |
| ?Translate | $langs | Object lang |
| ?Conf | $conf | Object conf |
Definition at line 78 of file interfaces.class.php.
References $mysoc, $object, dol_buildpath(), dol_osencode(), dol_syslog(), getDolGlobalInt(), getDolGlobalString(), Societe\isACompany(), and isModEnabled().