Documentation

Notification_Notifications_Cron extends CronHandler
in package

Notification_Notifications_Cron class.

Table of Contents

MODULE_NAME  = 'Notification'
$cronTask  : Cron
Cron task instance.
__construct()  : mixed
Construct.
checkTimeout()  : bool
Check cron task timeout.
process()  : void
Main function to execute task.
executeScheduled()  : mixed
Function executes the sending notifications action.
existNotifications()  : int
Function checks if notification exists.
getEndDate()  : string
Function get date.
markAsRead()  : mixed
Function get date.

Constants

Properties

Methods

__construct()

Construct.

public __construct(Cron $cronTask) : mixed
Parameters
$cronTask : Cron
Return values
mixed

checkTimeout()

Check cron task timeout.

public checkTimeout() : bool
Return values
bool

process()

Main function to execute task.

public process() : void
Return values
void

executeScheduled()

Function executes the sending notifications action.

private executeScheduled(array<string|int, mixed> $row) : mixed
Parameters
$row : array<string|int, mixed>
Return values
mixed

existNotifications()

Function checks if notification exists.

private existNotifications(int $userId, string $startDate, string $endDate) : int
Parameters
$userId : int
$startDate : string
$endDate : string
Return values
int

getEndDate()

Function get date.

private getEndDate(string $currentTime, string $timestampEndDate, int $frequency) : string
Parameters
$currentTime : string
$timestampEndDate : string
$frequency : int
Return values
string

markAsRead()

Function get date.

private markAsRead() : mixed
Return values
mixed

Search results