|
dolibarr 21.0.0-beta
|
Class of triggers for ticket module. More...


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 | |
Private Member Functions | |
| composeAndSendAdminMessage ($sendto, $base_subject, $body, Ticket $object, Translate $langs) | |
| Composes and sends a message concerning a ticket, to be sent to admin address. | |
| composeAndSendCustomerMessage ($sendto, $base_subject, $body, $see_ticket, Ticket $object, Translate $langs) | |
| Composes and sends a message concerning a ticket, to be sent to customer addresses. | |
| composeAndSendAssigneeMessage ($sendto, $base_subject, $body, $see_ticket, Ticket $object, Translate $langs) | |
| Composes and sends a message concerning a ticket, to be sent to user assigned to the ticket. | |
Class of triggers for ticket module.
Definition at line 33 of file interface_50_modTicket_TicketEmail.class.php.
| InterfaceTicketEmail::__construct | ( | $db | ) |
Constructor.
Definition at line 40 of file interface_50_modTicket_TicketEmail.class.php.
References description, and name.
|
private |
Composes and sends a message concerning a ticket, to be sent to admin address.
| string | $sendto | Addresses to send the mail, format "first@address.net, second@address.net," etc. |
| string | $base_subject | email subject. Non-translated string. |
| string | $body | email body (first line). Non-translated string. |
| Ticket | $object | the ticket thet the email refers to |
| Translate | $langs | the translation object |
Definition at line 321 of file interface_50_modTicket_TicketEmail.class.php.
References $conf, $object, dol_nl2br(), dol_syslog(), dol_textishtml(), and getDolGlobalString().
Referenced by runTrigger().
|
private |
Composes and sends a message concerning a ticket, to be sent to user assigned to the ticket.
| string | $sendto | Addresses to send the mail, format "first@address.net, second@address.net, " etc. |
| string | $base_subject | email subject. Non-translated string. |
| string | $body | email body (first line). Non-translated string. |
| string | $see_ticket | string indicating the ticket public address |
| Ticket | $object | the ticket thet the email refers to |
| Translate | $langs | the translation object |
Definition at line 490 of file interface_50_modTicket_TicketEmail.class.php.
References $conf, $object, dol_nl2br(), dol_now(), dolGetFirstLastname(), getDolGlobalString(), getDolUserString(), and setEventMessages().
Referenced by runTrigger().
|
private |
Composes and sends a message concerning a ticket, to be sent to customer addresses.
| string | $sendto | Addresses to send the mail, format "first@address.net, second@address.net, " etc. |
| string | $base_subject | email subject. Non-translated string. |
| string | $body | email body (first line). Non-translated string. |
| string | $see_ticket | string indicating the ticket public address |
| Ticket | $object | the ticket thet the email refers to |
| Translate | $langs | the translation object |
Definition at line 394 of file interface_50_modTicket_TicketEmail.class.php.
References $conf, $object, dol_buildpath(), dol_eval(), dol_nl2br(), dol_now(), dol_syslog(), dol_textishtml(), and getDolGlobalString().
Referenced by runTrigger().
Function called when a Dolibarr business event is done.
All functions "runTrigger" are triggered if file is inside directory htdocs/core/triggers
| string | $action | Event action code |
| Ticket | $object | Object |
| User | $user | Object user |
| Translate | $langs | Object langs |
| conf | $conf | Object conf |
Reimplemented from DolibarrTriggers.
Definition at line 62 of file interface_50_modTicket_TicketEmail.class.php.
References $conf, $object, composeAndSendAdminMessage(), composeAndSendAssigneeMessage(), composeAndSendCustomerMessage(), dol_syslog(), getDolGlobalString(), getDolUserString(), GETPOST(), name, and setEventMessages().