dolibarr 21.0.0-beta
|
Class of triggers for security audit events. More...
Public Member Functions | |
__construct (DoliDB $db) | |
Constructor. | |
runTrigger ($action, $object, User $user, Translate $langs, Conf $conf) | |
Function called when a Dolibarr security audit event is done. | |
Public Member Functions inherited from DolibarrTriggers | |
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 | |
Static Public Member Functions | |
static | isEventActionTextKey ($event_text) |
Check if text contains an event action key. | |
Private Member Functions | |
initEventData ($key_text, $object) | |
Method called by runTrigger to initialize date, label & description data for event. | |
Class of triggers for security audit events.
Definition at line 33 of file interface_20_all_Logevents.class.php.
InterfaceLogevents::__construct | ( | DoliDB | $db | ) |
Constructor.
Reimplemented from DolibarrTriggers.
Definition at line 68 of file interface_20_all_Logevents.class.php.
References description.
|
private |
Method called by runTrigger to initialize date, label & description data for event.
string | $key_text | Action string |
Object | $object | Object |
Definition at line 147 of file interface_20_all_Logevents.class.php.
References $object, and dol_now().
Referenced by runTrigger().
|
static |
Check if text contains an event action key.
Used for dynamic localization on frontend events list.
string | $event_text | Input event text |
Definition at line 170 of file interface_20_all_Logevents.class.php.
Function called when a Dolibarr security audit 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 |
Exception | dol_syslog can throw Exceptions |
Reimplemented from DolibarrTriggers.
Definition at line 93 of file interface_20_all_Logevents.class.php.
References $conf, $object, dol_syslog(), getDolGlobalString(), initEventData(), and name.