Changeset 7380 for trunk/src/includes/extend/buddypress/activity.php
- Timestamp:
- 12/05/2025 02:27:53 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/buddypress/activity.php
r7378 r7380 2 2 3 3 /** 4 * bbPress BuddyPress Activity Class 4 * bbPress BuddyPress Activity Class. 5 5 * 6 6 * @package bbPress … … 13 13 if ( ! class_exists( 'BBP_BuddyPress_Activity' ) ) : 14 14 /** 15 * Loads BuddyPress Activity extension 15 * Loads BuddyPress Activity extension. 16 16 * 17 17 * @since 2.0.0 bbPress (r3395) … … 25 25 26 26 /** 27 * The name of the BuddyPress component, used in activity streams 27 * The name of the BuddyPress component, used in activity streams. 28 28 * 29 29 * @var string … … 32 32 33 33 /** 34 * Forum Create Activity Action 34 * Forum Create Activity Action. 35 35 * 36 36 * @var string … … 39 39 40 40 /** 41 * Topic Create Activity Action 41 * Topic Create Activity Action. 42 42 * 43 43 * @var string … … 46 46 47 47 /** 48 * Topic Close Activity Action 48 * Topic Close Activity Action. 49 49 * 50 50 * @var string … … 53 53 54 54 /** 55 * Topic Edit Activity Action 55 * Topic Edit Activity Action. 56 56 * 57 57 * @var string … … 60 60 61 61 /** 62 * Topic Open Activity Action 62 * Topic Open Activity Action. 63 63 * 64 64 * @var string … … 67 67 68 68 /** 69 * Reply Create Activity Action 69 * Reply Create Activity Action. 70 70 * 71 71 * @var string … … 74 74 75 75 /** 76 * Reply Edit Activity Action 76 * Reply Edit Activity Action. 77 77 * 78 78 * @var string … … 83 83 84 84 /** 85 * The bbPress BuddyPress Activity loader 85 * The bbPress BuddyPress Activity loader. 86 86 * 87 87 * @since 2.0.0 bbPress (r3395) … … 95 95 96 96 /** 97 * Extension variables 97 * Extension variables. 98 98 * 99 99 * @since 2.0.0 bbPress (r3395) … … 121 121 122 122 /** 123 * Setup the actions 123 * Setup the actions. 124 124 * 125 125 * @since 2.0.0 bbPress (r3395) … … 146 146 147 147 /** 148 * Setup the filters 148 * Setup the filters. 149 149 * 150 150 * @since 2.0.0 bbPress (r3395) … … 174 174 175 175 /** 176 * Register our activity actions with BuddyPress 176 * Register our activity actions with BuddyPress. 177 177 * 178 178 * @since 2.0.0 bbPress (r3395) … … 202 202 203 203 /** 204 * Wrapper for recoding bbPress actions to the BuddyPress activity stream 205 * 206 * @since 2.0.0 bbPress (r3395) 207 * 208 * @param array $args Array of arguments for bp_activity_add() 209 * 210 * @return int Activity ID if successful, false if not 204 * Wrapper for recoding bbPress actions to the BuddyPress activity stream. 205 * 206 * @since 2.0.0 bbPress (r3395) 207 * 208 * @param array $args Array of arguments for bp_activity_add(). 209 * 210 * @return int Activity ID if successful, false if not. 211 211 */ 212 212 private function record_activity( $args = array() ) { … … 236 236 237 237 /** 238 * Wrapper for deleting bbPress actions from BuddyPress activity stream 239 * 240 * @since 2.0.0 bbPress (r3395) 241 * 242 * @param array $args Array of arguments for bp_activity_add() 243 * 244 * @return int Activity ID if successful, false if not 238 * Wrapper for deleting bbPress actions from BuddyPress activity stream. 239 * 240 * @since 2.0.0 bbPress (r3395) 241 * 242 * @param array $args Array of arguments for bp_activity_add(). 243 * 244 * @return int Activity ID if successful, false if not. 245 245 */ 246 246 public function delete_activity( $args = array() ) { … … 264 264 265 265 /** 266 * Check for an existing activity stream entry for a given post_id 267 * 268 * @param int $post_id ID of the topic or reply 269 * @return int if an activity id is verified, false if not 266 * Check for an existing activity stream entry for a given post_id. 267 * 268 * @param int $post_id ID of the topic or reply. 269 * @return int if an activity id is verified, false if not. 270 270 */ 271 271 private static function get_activity_id( $post_id = 0 ) { … … 290 290 291 291 /** 292 * Maybe disable activity stream comments on select actions 292 * Maybe disable activity stream comments on select actions. 293 293 * 294 294 * @since 2.0.0 bbPress (r3399) … … 328 328 329 329 /** 330 * Maybe link directly to topics and replies in activity stream entries 330 * Maybe link directly to topics and replies in activity stream entries. 331 331 * 332 332 * @since 2.0.0 bbPress (r3399) … … 334 334 * @param string $link 335 335 * @param mixed $activity_object 336 * @return string The link to the activity stream item 336 * @return string The link to the activity stream item. 337 337 */ 338 338 public function activity_get_permalink( $link = '', $activity_object = false ) { … … 355 355 356 356 /** 357 * Record an activity stream entry when a topic is created or updated 357 * Record an activity stream entry when a topic is created or updated. 358 358 * 359 359 * @since 2.0.0 bbPress (r3395) … … 363 363 * @param array $anonymous_data 364 364 * @param int $topic_author_id 365 * @return Bail early if topic is by anonymous user 365 * @return Bail early if topic is by anonymous user. 366 366 */ 367 367 public function topic_create( $topic_id = 0, $forum_id = 0, $anonymous_data = array(), $topic_author_id = 0 ) { … … 440 440 441 441 /** 442 * Delete the activity stream entry when a topic is spammed, trashed, or deleted 442 * Delete the activity stream entry when a topic is spammed, trashed, or deleted. 443 443 * 444 444 * @param int $topic_id … … 456 456 457 457 /** 458 * Update the activity stream entry when a topic status changes 458 * Update the activity stream entry when a topic status changes. 459 459 * 460 460 * @param int $topic_id 461 461 * @param obj $post 462 * @return Bail early if not a topic, or topic is by anonymous user 462 * @return Bail early if not a topic, or topic is by anonymous user. 463 463 */ 464 464 public function topic_update( $topic_id = 0, $post = null ) { … … 497 497 498 498 /** 499 * Record an activity stream entry when a reply is created 499 * Record an activity stream entry when a reply is created. 500 500 * 501 501 * @since 2.0.0 bbPress (r3395) … … 505 505 * @param array $anonymous_data 506 506 * @param int $topic_author_id 507 * @return Bail early if topic is by anonymous user 507 * @return Bail early if topic is by anonymous user. 508 508 */ 509 509 public function reply_create( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = array(), $reply_author_id = 0 ) { … … 586 586 587 587 /** 588 * Delete the activity stream entry when a reply is spammed, trashed, or deleted 588 * Delete the activity stream entry when a reply is spammed, trashed, or deleted. 589 589 * 590 590 * @param int $reply_id … … 602 602 603 603 /** 604 * Update the activity stream entry when a reply status changes 604 * Update the activity stream entry when a reply status changes. 605 605 * 606 606 * @param int $reply_id 607 607 * @param obj $post 608 * @return Bail early if not a reply, or reply is by anonymous user 608 * @return Bail early if not a reply, or reply is by anonymous user. 609 609 */ 610 610 public function reply_update( $reply_id, $post ) {
Note: See TracChangeset
for help on using the changeset viewer.