|
dolibarr 18.0.8
|
Class to manage notifications. More...

Public Member Functions | |
| __construct ($db) | |
| Constructor. | |
| confirmMessage ($action, $socid, $object) | |
| Return message that say how many notification (and to which email) will occurs on requested event. | |
| getNotificationsArray ($notifcode, $socid=0, $object=null, $userid=0, $scope=array('thirdparty', 'user', 'global')) | |
| Return number of notifications activated for action code (and third party) | |
| send ($notifcode, $object, $filename_list=array(), $mimetype_list=array(), $mimefilename_list=array()) | |
| Check if notification are active for couple action/company. | |
Class to manage notifications.
Definition at line 33 of file notify.class.php.
| Notify::__construct | ( | $db | ) |
| Notify::confirmMessage | ( | $action, | |
| $socid, | |||
| $object ) |
Return message that say how many notification (and to which email) will occurs on requested event.
This is to show confirmation messages before event is recorded.
| string | $action | Id of action in llx_c_action_trigger |
| int | $socid | Id of third party |
| Object | $object | Object the notification is about |
Definition at line 109 of file notify.class.php.
References getNotificationsArray(), and img_object().
| Notify::getNotificationsArray | ( | $notifcode, | |
| $socid = 0, | |||
| $object = null, | |||
| $userid = 0, | |||
| $scope = array('thirdparty', 'user', 'global') ) |
Return number of notifications activated for action code (and third party)
| string | $notifcode | Code of action in llx_c_action_trigger (new usage) or Id of action in llx_c_action_trigger (old usage) |
| int | $socid | Id of third party or 0 for all thirdparties or -1 for no thirdparties |
| Object | $object | Object the notification is about (need it to check threshold value of some notifications) |
| int | $userid | Id of user or 0 for all users or -1 for no users |
| array | $scope | Scope where to search |
Definition at line 190 of file notify.class.php.
References dol_syslog(), and isValidEmail().
Referenced by confirmMessage().
| Notify::send | ( | $notifcode, | |
| $object, | |||
| $filename_list = array(), | |||
| $mimetype_list = array(), | |||
| $mimefilename_list = array() ) |
Check if notification are active for couple action/company.
If yes, send mail and save trace into llx_notify.
| string | $notifcode | Code of action in llx_c_action_trigger (new usage) or Id of action in llx_c_action_trigger (old usage) |
| Object | $object | Object the notification deals on |
| array | $filename_list | List of files to attach (full path of filename on file system) |
| array | $mimetype_list | List of MIME type of attached files |
| array | $mimefilename_list | List of attached file name in message |
Definition at line 354 of file notify.class.php.
References complete_substitutions_array(), dol_getIdFromCode(), dol_is_file(), dol_now(), dol_print_error(), dol_sanitizeFileName(), dol_strlen(), dol_syslog(), dolGetFirstLastname(), get_exdir(), getCommonSubstitutionArray(), getDolGlobalString(), and make_substitutions().