[ Index ]

PHP Cross Reference of BuddyPress




/src/bp-notifications/classes/ -> class-bp-notifications-template.php (summary)

BuddyPress Notifications Template Loop Class.

File Size: 350 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BP_Notifications_Template:: (6 methods):

Class: BP_Notifications_Template  - X-Ref

The main notifications template loop class.

Responsible for loading a group of notifications into a loop for display.

__construct( $args = array()   X-Ref
Constructor method.

param: array $args {
since: 1.9.0

has_notifications()   X-Ref
Whether there are notifications available in the loop.

since: 1.9.0
return: bool True if there are items in the loop, otherwise false.

next_notification()   X-Ref
Set up the next notification and iterate index.

since: 1.9.0
return: BP_Notifications_Notification The next notification to iterate over.

rewind_notifications()   X-Ref
Rewind the blogs and reset blog index.

since: 1.9.0

notifications()   X-Ref
Whether there are notifications left in the loop to iterate over.

This method is used by {@link bp_notifications()} as part of the
while loop that controls iteration inside the notifications loop, eg:
while ( bp_notifications() ) { ...

since: 1.9.0
return: bool True if there are more notifications to show,

the_notification()   X-Ref
Set up the current notification inside the loop.

Used by {@link bp_the_notification()} to set up the current
notification data while looping, so that template tags used during
that iteration make reference to the current notification.

since: 1.9.0

Generated: Fri Jul 12 01:00:55 2024 Cross-referenced by PHPXref 0.7.1