[ Index ]

PHP Cross Reference of BuddyPress




/src/bp-messages/classes/ -> class-bp-messages-notice.php (summary)

BuddyPress Messages Classes.

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

Defines 1 class

BP_Messages_Notice:: (9 methods):

Class: BP_Messages_Notice  - X-Ref

BuddyPress Notices class.

Use this class to create, activate, deactivate or delete notices.

__construct( $id = null )   X-Ref

param: int|null $id Optional. The ID of the current notice.
since: 1.0.0

populate()   X-Ref
Populate method.

Runs during constructor.

since: 1.0.0

save()   X-Ref
Saves a notice.

since: 1.0.0
return: bool

activate()   X-Ref
Activates a notice.

since: 1.0.0
return: bool

deactivate()   X-Ref
Deactivates a notice.

since: 1.0.0
return: bool

delete()   X-Ref
Deletes a notice.

since: 1.0.0
return: bool

get_notices( $args = array()   X-Ref
Pulls up a list of notices.

To get all notices, pass a value of -1 to pag_num.

param: array $args {
since: 1.0.0
return: object List of notices to display.

get_total_notice_count()   X-Ref
Returns the total number of recorded notices.

since: 1.0.0
return: int

get_active()   X-Ref
Returns the active notice that should be displayed on the front end.

since: 1.0.0
return: object The BP_Messages_Notice object.

Generated: Sun Nov 29 01:01:38 2020 Cross-referenced by PHPXref 0.7.1