From 46d1f745ee2e4495c9b5a46e25cae8005c2c84bf Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 12 May 2020 20:59:15 +0200 Subject: [PATCH] Added boilerplate code for the new notifications library. --- application/libraries/Notifications.php | 89 +++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 application/libraries/Notifications.php diff --git a/application/libraries/Notifications.php b/application/libraries/Notifications.php new file mode 100644 index 00000000..90b08361 --- /dev/null +++ b/application/libraries/Notifications.php @@ -0,0 +1,89 @@ +framework = &get_instance(); + } + + /** + * Send an email notification for an appointment confirmation. + * + * @param array $appointment + * @param array $service + * @param array $provider + * @param array $customer + * @param array $settings + * @param string $subject + * @param string $message + * @param string $link + * @param string $recipient + * @param string $ics + */ + public function send_appointment_confirmation( + $appointment, + $service, + $provider, + $customer, + $settings, + $subject, + $message, + $link, + $recipient, + $ics + ) + { + // TODO: Port logic from engine/Notifications/Email.php + } + + /** + * Send an email notification for an appointment removal. + * + * @param array $appointment + * @param array $service + * @param array $provider + * @param array $customer + * @param array $settings + * @param string $recipient + * @param string $reason + */ + public function send_appointment_removal( + $appointment, + $service, + $provider, + $customer, + $settings, + $recipient, + $reason + ) + { + // TODO: Port logic from engine/Notifications/Email.php + } + + /** + * Send an email notification with the new password, used when recovering an account. + * + * @param string $password + * @param string $recipient + * @param string $settings + */ + public function send_new_password($password, $recipient, $settings) + { + // TODO: Port logic from engine/Notifications/Email.php + } +}