[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/includes/extend/buddypress/ -> activity.php (summary)

bbPress BuddyPress Activity Class

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

Defines 1 class

BBP_BuddyPress_Activity:: (17 methods):
  __construct()
  setup_globals()
  setup_actions()
  setup_filters()
  fully_loaded()
  register_activity_actions()
  record_activity()
  delete_activity()
  get_activity_id()
  activity_can_comment()
  activity_get_permalink()
  topic_create()
  topic_delete()
  topic_update()
  reply_create()
  reply_delete()
  reply_update()


Class: BBP_BuddyPress_Activity  - X-Ref

Loads BuddyPress Activity extension

__construct()   X-Ref
The bbPress BuddyPress Activity loader

since: 2.0.0 bbPress (r3395)

setup_globals()   X-Ref
Extension variables

since: 2.0.0 bbPress (r3395)

setup_actions()   X-Ref
Setup the actions

since: 2.0.0 bbPress (r3395)

setup_filters()   X-Ref
Setup the filters

since: 2.0.0 bbPress (r3395)

fully_loaded()   X-Ref
Allow the variables, actions, and filters to be modified by third party
plugins and themes.

since: 2.1.0 bbPress (r3902)

register_activity_actions()   X-Ref
Register our activity actions with BuddyPress

since: 2.0.0 bbPress (r3395)

record_activity( $args = array()   X-Ref
Wrapper for recoding bbPress actions to the BuddyPress activity stream

since: 2.0.0 bbPress (r3395)
return: int   Activity ID if successful, false if not
param: array $args Array of arguments for bp_activity_add()

delete_activity( $args = array()   X-Ref
Wrapper for deleting bbPress actions from BuddyPress activity stream

since: 2.0.0 bbPress (r3395)
return: int   Activity ID if successful, false if not
param: array $args Array of arguments for bp_activity_add()

get_activity_id( $post_id = 0 )   X-Ref
Check for an existing activity stream entry for a given post_id

return: int if an activity id is verified, false if not
param: int $post_id ID of the topic or reply

activity_can_comment( $can_comment = true )   X-Ref
Maybe disable activity stream comments on select actions

since: 2.0.0 bbPress (r3399)
return: boolean
param: boolean $can_comment

activity_get_permalink( $link = '', $activity_object = false )   X-Ref
Maybe link directly to topics and replies in activity stream entries

since: 2.0.0 bbPress (r3399)
return: string The link to the activity stream item
param: string $link
param: mixed $activity_object

topic_create( $topic_id = 0, $forum_id = 0, $anonymous_data = array()   X-Ref
Record an activity stream entry when a topic is created or updated

since: 2.0.0 bbPress (r3395)
return: Bail early if topic is by anonymous user
param: int $topic_id
param: int $forum_id
param: array $anonymous_data
param: int $topic_author_id

topic_delete( $topic_id = 0 )   X-Ref
Delete the activity stream entry when a topic is spammed, trashed, or deleted

param: int $topic_id

topic_update( $topic_id = 0, $post = null )   X-Ref
Update the activity stream entry when a topic status changes

return: Bail early if not a topic, or topic is by anonymous user
param: int $topic_id
param: obj $post

reply_create( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = array()   X-Ref
Record an activity stream entry when a reply is created

since: 2.0.0 bbPress (r3395)
return: Bail early if topic is by anonymous user
param: int $topic_id
param: int $forum_id
param: array $anonymous_data
param: int $topic_author_id

reply_delete( $reply_id )   X-Ref
Delete the activity stream entry when a reply is spammed, trashed, or deleted

param: int $reply_id

reply_update( $reply_id, $post )   X-Ref
Update the activity stream entry when a reply status changes

return: Bail early if not a reply, or reply is by anonymous user
param: int $reply_id
param: obj $post



Generated: Sat Dec 21 01:00:52 2024 Cross-referenced by PHPXref 0.7.1