|
dolibarr
x.y.z
|
Class to manage notifications. More...

Public Member Functions | |
| __construct ($db) | |
| Constructor. More... | |
| confirmMessage ($action, $socid, $object) | |
| Return message that say how many notification (and to which email) will occurs on requested event. More... | |
| getNotificationsArray ($notifcode, $socid=0, $object=null, $userid=0, $scope=array('thirdparty', 'user', 'global')) | |
| Return number of notifications activated for action code (and third party) More... | |
| send ($notifcode, $object, $filename_list=array(), $mimetype_list=array(), $mimefilename_list=array()) | |
| Check if notification are active for couple action/company. More... | |
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 110 of file notify.class.php.
| 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 191 of file notify.class.php.
| 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 355 of file notify.class.php.