Calls the provided callback to configure the underlying query for this DatabaseNotificationCursor instance.
Name
Type
Required
Default
Description
The callback called to configure the underlying query of this DatabaseNotificationCursor.
Return: The DatabaseNotificationCursor instance.
Executes the configured query and stores the pagination and results internally. Maps the resulting rows into DatabaseNotification instances.
Name
Type
Required
Default
Description
Return: The DatabaseNotificationCursor instance.
Returns true if there are more pages left in the cursor.
Name
Type
Required
Default
Description
Return: boolean
Advances the page of the cursor and fetches the results.
Name
Type
Required
Default
Description
Return: The DatabaseNotificationCursor instance.
Throws: Megaphone.DatabaseNotificationCursor.MaximumPageReached
Returns true if there are more pages before the current page in the cursor.
Name
Type
Required
Default
Description
Return: boolean
Reverses the page of the cursor and fetches the results.
Name
Type
Required
Default
Description
Return: The DatabaseNotificationCursor instance.
Throws: Megaphone.DatabaseNotificationCursor.MinimumPageReached
Marks all the notifications under the cursor as read.
Name
Type
Required
Default
Description
The date to use when marking the notifications as read.
Return: The DatabaseNotificationCursor instance.
Deletes all the notifications under the cursor.
Name
Type
Required
Default
Description
Return: The DatabaseNotificationCursor instance.