NotificationHelper
in package

Tags
since
1.13.0

Table of Contents

DEFAULT_OPERATOR  = 'before'
DEFAULT_UNIT  = 'day'
UNIT_DAY  = 'day'
UNIT_HOUR  = 'hour'
convertTriggerToString()  : string
displayNotifierNotice()  : mixed
findNotificationsByNewReservation()  : array<string|int, Notification>
findReservationsByNotification()  : array<string|int, Reservation>
getDefaultHeader()  : string
getDefaultMessage()  : string
getDefaultNotificationType()  : string
getDefaultSubject()  : string
getDefaultTriggerOperator()  : string
getDefaultTriggerUnit()  : string
getNotificationTypes()  : array<string|int, string>
getRecipients()  : array<string|int, string>
getTriggerOperators()  : array<string|int, mixed>
getTriggerUnits()  : array<string|int, mixed>
renderNotifierNotice()  : string
triggerNotificationsForNewBooking()  : mixed
findReservationsByDailyNotification()  : array<string|int, Reservation>
findReservationsByHourlyNotification()  : array<string|int, Reservation>

Constants

DEFAULT_OPERATOR

public mixed DEFAULT_OPERATOR = 'before'

DEFAULT_UNIT

public mixed DEFAULT_UNIT = 'day'

UNIT_DAY

public mixed UNIT_DAY = 'day'

UNIT_HOUR

public mixed UNIT_HOUR = 'hour'

Methods

convertTriggerToString()

public static convertTriggerToString(Notification $notification) : string
Parameters
$notification : Notification
Return values
string

displayNotifierNotice()

public static displayNotifierNotice() : mixed
Return values
mixed

findNotificationsByNewReservation()

public static findNotificationsByNewReservation(Reservation $reservation) : array<string|int, Notification>
Parameters
$reservation : Reservation
Return values
array<string|int, Notification>

findReservationsByNotification()

public static findReservationsByNotification(Notification $notification) : array<string|int, Reservation>
Parameters
$notification : Notification
Return values
array<string|int, Reservation>

getDefaultHeader()

public static getDefaultHeader() : string
Return values
string

getDefaultMessage()

public static getDefaultMessage() : string
Return values
string

getDefaultNotificationType()

public static getDefaultNotificationType() : string
Return values
string

getDefaultSubject()

public static getDefaultSubject() : string
Return values
string

getDefaultTriggerOperator()

public static getDefaultTriggerOperator() : string
Return values
string

getDefaultTriggerUnit()

public static getDefaultTriggerUnit() : string
Return values
string

getNotificationTypes()

public static getNotificationTypes() : array<string|int, string>
Return values
array<string|int, string>

getRecipients()

public static getRecipients(Notification $notification[, Booking|null $booking = null ][, Reservation|null $reservation = null ]) : array<string|int, string>
Parameters
$notification : Notification
$booking : Booking|null = null

Optional.

$reservation : Reservation|null = null

Optional.

Return values
array<string|int, string>

getTriggerOperators()

public static getTriggerOperators() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTriggerUnits()

public static getTriggerUnits() : array<string|int, mixed>
Return values
array<string|int, mixed>

renderNotifierNotice()

public static renderNotifierNotice() : string
Return values
string

triggerNotificationsForNewBooking()

public static triggerNotificationsForNewBooking(Booking $booking) : mixed
Parameters
$booking : Booking
Return values
mixed

findReservationsByDailyNotification()

protected static findReservationsByDailyNotification(Notification $notification) : array<string|int, Reservation>
Parameters
$notification : Notification
Return values
array<string|int, Reservation>

findReservationsByHourlyNotification()

protected static findReservationsByHourlyNotification(Notification $notification) : array<string|int, Reservation>
Parameters
$notification : Notification
Return values
array<string|int, Reservation>

Search results