Changeset 10139
- Timestamp:
- 09/25/2015 12:02:25 AM (9 years ago)
- Location:
- trunk/src/bp-messages
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-actions.php
r9966 r10139 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Messages Actions. … … 12 11 */ 13 12 14 // Exit if accessed directly 13 // Exit if accessed directly. 15 14 defined( 'ABSPATH' ) || exit; 16 15 … … 18 17 * Handle creating of private messages or sitewide notices 19 18 * 20 * @since BuddyPress (2.4.0)This function was split from messages_screen_compose(). See #6505.19 * @since 2.4.0 This function was split from messages_screen_compose(). See #6505. 21 20 * 22 21 * @return boolean … … 79 78 * Filters the array of recipients to receive the composed message. 80 79 * 81 * @since BuddyPress (1.2.10)80 * @since 1.2.10 82 81 * 83 82 * @param array $recipients Array of recipients to receive message. … … 129 128 * Handle editing of sitewide notices 130 129 * 131 * @since BuddyPress (2.4.0)This function was split from messages_screen_notices(). See #6505.130 * @since 2.4.0 This function was split from messages_screen_notices(). See #6505. 132 131 * 133 132 * @global int $notice_id … … 253 252 * Fires after processing a view request for a single message thread. 254 253 * 255 * @since BuddyPress (1.7.0)254 * @since 1.7.0 256 255 */ 257 256 do_action( 'messages_action_conversation' ); … … 293 292 * Handle marking a single message thread as read. 294 293 * 295 * @since BuddyPress (2.2.0)294 * @since 2.2.0 296 295 * 297 296 * @return bool|null Returns false on failure. Otherwise redirects back to the … … 334 333 * Handle marking a single message thread as unread. 335 334 * 336 * @since BuddyPress (2.2.0)335 * @since 2.2.0 337 336 * 338 337 * @return bool|null Returns false on failure. Otherwise redirects back to the … … 375 374 * Handle bulk management (mark as read/unread, delete) of message threads. 376 375 * 377 * @since BuddyPress (2.2.0)376 * @since 2.2.0 378 377 * 379 378 * @return bool Returns false on failure. Otherwise redirects back to the -
trunk/src/bp-messages/bp-messages-cache.php
r9862 r10139 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Messages Caching. … … 8 7 * 9 8 * @package BuddyPress 9 * @subpackage MessagesCache 10 10 */ 11 11 12 // Exit if accessed directly 12 // Exit if accessed directly. 13 13 defined( 'ABSPATH' ) || exit; 14 14 … … 20 20 * message meta within a loop context. 21 21 * 22 * @since BuddyPress (2.2.0)22 * @since 2.2.0 23 23 * 24 24 * @param int|string|array|bool $message_ids Accepts a single message_id, or a … … 49 49 * Clear message cache after a message is saved. 50 50 * 51 * @since BuddyPress (2.0.0)51 * @since 2.0.0 52 52 * 53 53 * @param BP_Messages_Message $message … … 70 70 * Clear message cache after a message thread is deleted. 71 71 * 72 * @since BuddyPress (2.0.0)72 * @since 2.0.0 73 73 * 74 74 * @param int|array $thread_ids If single thread, the thread ID. … … 92 92 * Currently, invalidates active notice cache. 93 93 * 94 * @since BuddyPress (2.0.0)94 * @since 2.0.0 95 95 * 96 96 * @param BP_Messages_Notice $notice -
trunk/src/bp-messages/bp-messages-classes.php
r9928 r10139 1 1 <?php 2 2 /** 3 * BuddyPress Messages Classes 3 * BuddyPress Messages Classes. 4 4 * 5 5 * @package BuddyPress … … 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 -
trunk/src/bp-messages/bp-messages-cssjs.php
r9819 r10139 1 1 <?php 2 3 2 /** 4 * BuddyPress Messages CSS and JS 3 * BuddyPress Messages CSS and JS. 5 4 * 6 5 * @package BuddyPress … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 -
trunk/src/bp-messages/bp-messages-filters.php
r10060 r10139 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Messages Filters. … … 10 9 */ 11 10 12 // Exit if accessed directly 11 // Exit if accessed directly. 13 12 defined( 'ABSPATH' ) || exit; 14 13 … … 71 70 * Enforce limitations on viewing private message contents 72 71 * 73 * @since BuddyPress (2.3.2)72 * @since 2.3.2 74 73 * 75 74 * @see bp_has_message_threads() for description of parameters -
trunk/src/bp-messages/bp-messages-functions.php
r9862 r10139 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Messages Functions. … … 13 12 */ 14 13 15 // Exit if accessed directly 14 // Exit if accessed directly. 16 15 defined( 'ABSPATH' ) || exit; 17 16 … … 158 157 * Fires after a message has been successfully sent. 159 158 * 160 * @since BuddyPress (1.1.0)159 * @since 1.1.0 161 160 * 162 161 * @param BP_Messages_Message $message Message object. Passed by reference. … … 192 191 * Fires after a notice has been successfully sent. 193 192 * 194 * @since BuddyPress (1.0.0)193 * @since 1.0.0 195 194 * 196 195 * @param string $subject Subject of the notice. … … 215 214 * Fires before specified thread IDs have been deleted. 216 215 * 217 * @since BuddyPress (1.5.0)216 * @since 1.5.0 218 217 * 219 218 * @param int|array Thread ID or array of thread IDs that were deleted. … … 236 235 * Fires after specified thread IDs have been deleted. 237 236 * 238 * @since BuddyPress (1.0.0)237 * @since 1.0.0 239 238 * 240 239 * @param int|array Thread ID or array of thread IDs that were deleted. … … 374 373 * Get the thread ID from a message ID. 375 374 * 376 * @since BuddyPress (2.3.0)375 * @since 2.3.0 377 376 * 378 377 * @param int $message_id ID of the message. … … 394 393 * If $meta_key is false, this will delete all meta for the message ID. 395 394 * 396 * @since BuddyPress (2.2.0)395 * @since 2.2.0 397 396 * 398 397 * @see delete_metadata() for full documentation excluding $meta_type variable. … … 437 436 * Get a piece of message metadata. 438 437 * 439 * @since BuddyPress (2.2.0)438 * @since 2.2.0 440 439 * 441 440 * @see get_metadata() for full documentation excluding $meta_type variable. … … 458 457 * Update a piece of message metadata. 459 458 * 460 * @since BuddyPress (2.2.0)459 * @since 2.2.0 461 460 * 462 461 * @see update_metadata() for full documentation excluding $meta_type variable. … … 481 480 * Add a piece of message metadata. 482 481 * 483 * @since BuddyPress (2.2.0)482 * @since 2.2.0 484 483 * 485 484 * @see add_metadata() for full documentation excluding $meta_type variable. -
trunk/src/bp-messages/bp-messages-loader.php
r9936 r10139 1 1 <?php 2 3 2 /** 4 * BuddyPress Messages Loader 3 * BuddyPress Messages Loader. 5 4 * 6 5 * A private messages component, for users to send messages to each other. … … 10 9 */ 11 10 12 // Exit if accessed directly 11 // Exit if accessed directly. 13 12 defined( 'ABSPATH' ) || exit; 14 13 … … 16 15 * Implementation of BP_Component for the Messages component. 17 16 * 18 * @since BuddyPress (1.5.0)17 * @since 1.5.0 19 18 */ 20 19 class BP_Messages_Component extends BP_Component { … … 24 23 * this is set to false, in which any matching users will be returned. 25 24 * 26 * @since BuddyPress (1.5.0)25 * @since 1.5.0 27 26 * @var bool 28 27 */ … … 32 31 * Start the messages component creation process. 33 32 * 34 * @since BuddyPress (1.5.0)33 * @since 1.5.0 35 34 */ 36 35 public function __construct() { … … 49 48 * Include files. 50 49 * 51 * @since BuddyPress (1.5.0)50 * @since 1.5.0 52 51 * 53 52 * @param array $includes See {BP_Component::includes()} for details. … … 83 82 * backwards compatibility. 84 83 * 85 * @since BuddyPress (1.5.0)84 * @since 1.5.0 86 85 * 87 86 * @param array $args Not used. … … 327 326 * Setup cache groups 328 327 * 329 * @since BuddyPress (2.2.0)328 * @since 2.2.0 330 329 */ 331 330 public function setup_cache_groups() { -
trunk/src/bp-messages/bp-messages-notifications.php
r9862 r10139 1 1 <?php 2 3 /** 4 * BuddyPress Messages Notifications 2 /** 3 * BuddyPress Messages Notifications. 5 4 * 6 5 * @package BuddyPress … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 16 15 * Email message recipients to alert them of a new unread private message. 17 16 * 18 * @since BuddyPress (1.0.0)17 * @since 1.0.0 19 18 * 20 19 * @param array|BP_Messages_Message $raw_args { … … 96 95 * Filters the user email that the message notification will be sent to. 97 96 * 98 * @since BuddyPress (1.2.0)97 * @since 1.2.0 99 98 * 100 99 * @param string $email_to User email the notification is being sent to. … … 106 105 * Filters the message notification subject that will be sent to user. 107 106 * 108 * @since BuddyPress (1.2.0)107 * @since 1.2.0 109 108 * 110 109 * @param string $email_subject Email notification subject text. … … 117 116 * Filters the message notification message that will be sent to user. 118 117 * 119 * @since BuddyPress (1.2.0)118 * @since 1.2.0 120 119 * 121 120 * @param string $email_content Email notification message text. … … 136 135 * Fires after the sending of a new message email notification. 137 136 * 138 * @since BuddyPress (1.5.0)137 * @since 1.5.0 139 138 * 140 139 * @param array $recipients User IDs of recipients. … … 152 151 * Format notifications for the Messages component. 153 152 * 154 * @since BuddyPress (1.0.0)153 * @since 1.0.0 155 154 * 156 155 * @param string $action The kind of notification being rendered. … … 224 223 * Fires right before returning the formatted message notifications. 225 224 * 226 * @since BuddyPress (1.0.0)225 * @since 1.0.0 227 226 * 228 227 * @param string $action The type of message notification. … … 239 238 * Send notifications to message recipients. 240 239 * 241 * @since BuddyPress (1.9.0)240 * @since 1.9.0 242 241 * 243 242 * @param BP_Messages_Message $message Message object. … … 263 262 * Mark new message notification when member reads a message thread directly. 264 263 * 265 * @since BuddyPress (1.9.0)264 * @since 1.9.0 266 265 */ 267 266 function bp_messages_screen_conversation_mark_notifications() { … … 297 296 * When a message is deleted, delete corresponding notifications. 298 297 * 299 * @since BuddyPress (2.0.0)298 * @since 2.0.0 300 299 * 301 300 * @param int $thread_id ID of the thread. -
trunk/src/bp-messages/bp-messages-screens.php
r10081 r10139 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Messages Screens. … … 12 11 */ 13 12 14 // Exit if accessed directly 13 // Exit if accessed directly. 15 14 defined( 'ABSPATH' ) || exit; 16 15 … … 18 17 * Load the Messages > Inbox screen. 19 18 * 20 * @since BuddyPress (1.0.0)19 * @since 1.0.0 21 20 */ 22 21 function messages_screen_inbox() { … … 30 29 * Fires right before the loading of the Messages inbox screen template file. 31 30 * 32 * @since BuddyPress (1.0.0)31 * @since 1.0.0 33 32 */ 34 33 do_action( 'messages_screen_inbox' ); … … 37 36 * Filters the template to load for the Messages inbox screen. 38 37 * 39 * @since BuddyPress (1.0.0)38 * @since 1.0.0 40 39 * 41 40 * @param string $template Path to the messages template to load. … … 47 46 * Load the Messages > Sent screen. 48 47 * 49 * @since BuddyPress (1.0.0)48 * @since 1.0.0 50 49 */ 51 50 function messages_screen_sentbox() { … … 59 58 * Fires right before the loading of the Messages sentbox screen template file. 60 59 * 61 * @since BuddyPress (1.0.0)60 * @since 1.0.0 62 61 */ 63 62 do_action( 'messages_screen_sentbox' ); … … 66 65 * Filters the template to load for the Messages sentbox screen. 67 66 * 68 * @since BuddyPress (1.0.0)67 * @since 1.0.0 69 68 * 70 69 * @param string $template Path to the messages template to load. … … 76 75 * Load the Messages > Compose screen. 77 76 * 78 * @since BuddyPress (1.0.0)77 * @since 1.0.0 79 78 */ 80 79 function messages_screen_compose() { … … 91 90 * Fires right before the loading of the Messages compose screen template file. 92 91 * 93 * @since BuddyPress (1.0.0)92 * @since 1.0.0 94 93 */ 95 94 do_action( 'messages_screen_compose' ); … … 98 97 * Filters the template to load for the Messages compose screen. 99 98 * 100 * @since BuddyPress (1.0.0)99 * @since 1.0.0 101 100 * 102 101 * @param string $template Path to the messages template to load. … … 108 107 * Load an individual conversation screen. 109 108 * 110 * @since BuddyPress (1.0.0)109 * @since 1.0.0 111 110 * 112 111 * @return bool|null False on failure. … … 134 133 * Fires right before the loading of the Messages view screen template file. 135 134 * 136 * @since BuddyPress (1.7.0)135 * @since 1.7.0 137 136 */ 138 137 do_action( 'messages_screen_conversation' ); … … 141 140 * Filters the template to load for the Messages view screen. 142 141 * 143 * @since BuddyPress (1.0.0)142 * @since 1.0.0 144 143 * 145 144 * @param string $template Path to the messages template to load. … … 152 151 * Load the Messages > Notices screen. 153 152 * 154 * @since BuddyPress (1.0.0)153 * @since 1.0.0 155 154 * 156 155 * @return false|null False on failure. … … 166 165 * Fires right before the loading of the Messages notices screen template file. 167 166 * 168 * @since BuddyPress (1.0.0)167 * @since 1.0.0 169 168 */ 170 169 do_action( 'messages_screen_notices' ); … … 173 172 * Filters the template to load for the Messages notices screen. 174 173 * 175 * @since BuddyPress (1.0.0)174 * @since 1.0.0 176 175 * 177 176 * @param string $template Path to the messages template to load. … … 183 182 * Render the markup for the Messages section of Settings > Notifications. 184 183 * 185 * @since BuddyPress (1.0.0)184 * @since 1.0.0 186 185 */ 187 186 function messages_screen_notification_settings() { … … 219 218 * Fires inside the closing </tbody> tag for messages screen notification settings. 220 219 * 221 * @since BuddyPress (1.0.0)220 * @since 1.0.0 222 221 */ 223 222 do_action( 'messages_screen_notification_settings' ); ?> -
trunk/src/bp-messages/bp-messages-star.php
r9951 r10139 4 4 * 5 5 * @since BuddyPress (2.3.0) 6 */ 6 * 7 * @package BuddyPress 8 * @subpackage MessagesStar 9 */ 10 11 // Exit if accessed directly. 12 defined( 'ABSPATH' ) || exit; 7 13 8 14 /** UTILITY **************************************************************/ … … 11 17 * Return the starred messages slug. Defaults to 'starred'. 12 18 * 13 * @since BuddyPress (2.3.0)19 * @since 2.3.0 14 20 * 15 21 * @return string … … 19 25 * Filters the starred message slug. 20 26 * 21 * @since BuddyPress (2.3.0)27 * @since 2.3.0 22 28 * 23 29 * @param string … … 29 35 * Function to determine if a message ID is starred. 30 36 * 31 * @since BuddyPress (2.3.0)37 * @since 2.3.0 32 38 * 33 39 * @param int $mid The message ID. Please note that this isn't the message thread ID. … … 56 62 * Output the link or raw URL for starring or unstarring a message. 57 63 * 58 * @since BuddyPress (2.3.0)64 * @since 2.3.0 59 65 * 60 66 * @param array $args See bp_get_the_message_star_action_link() for full documentation. … … 66 72 * Return the link or raw URL for starring or unstarring a message. 67 73 * 68 * @since BuddyPress (2.3.0)74 * @since 2.3.0 69 75 * 70 76 * @param array $args { … … 207 213 * Filters the star action URL for starring / unstarring a message. 208 214 * 209 * @since BuddyPress (2.3.0)215 * @since 2.3.0 210 216 * 211 217 * @param string $retval URL for starring / unstarring a message. … … 220 226 * Filters the star action link, including markup. 221 227 * 222 * @since BuddyPress (2.3.0)228 * @since 2.3.0 223 229 * 224 230 * @param string $retval Link for starring / unstarring a message, including markup. … … 231 237 * Save or delete star message meta according to a message's star status. 232 238 * 233 * @since BuddyPress (2.3.0)239 * @since 2.3.0 234 240 * 235 241 * @param array $args { … … 311 317 * Screen handler to display a user's "Starred" private messages page. 312 318 * 313 * @since BuddyPress (2.3.0)319 * @since 2.3.0 314 320 */ 315 321 function bp_messages_star_screen() { … … 319 325 * Fires right before the loading of the "Starred" messages box. 320 326 * 321 * @since BuddyPress (2.3.0)327 * @since 2.3.0 322 328 */ 323 329 do_action( 'bp_messages_screen_star' ); … … 329 335 * Screen content callback to display a user's "Starred" messages page. 330 336 * 331 * @since BuddyPress (2.3.0)337 * @since 2.3.0 332 338 */ 333 339 function bp_messages_star_content() { … … 345 351 * Filter message threads by those starred by the logged-in user. 346 352 * 347 * @since BuddyPress (2.3.0)353 * @since 2.3.0 348 354 * 349 355 * @param array $r Current message thread arguments. … … 365 371 * Action handler to set a message's star status for those not using JS. 366 372 * 367 * @since BuddyPress (2.3.0)373 * @since 2.3.0 368 374 */ 369 375 function bp_messages_star_action_handler() { … … 402 408 * Bulk manage handler to set the star status for multiple messages. 403 409 * 404 * @since BuddyPress (2.3.0)410 * @since 2.3.0 405 411 */ 406 412 function bp_messages_star_bulk_manage_handler() { … … 475 481 * The dashicons font is used for the star / unstar icon. 476 482 * 477 * @since BuddyPress (2.3.0)483 * @since 2.3.0 478 484 */ 479 485 function bp_messages_star_enqueue_scripts() { … … 489 495 * Add the "Add star" and "Remove star" options to the bulk management list. 490 496 * 491 * @since BuddyPress (2.3.0)497 * @since 2.3.0 492 498 */ 493 499 function bp_messages_star_bulk_management_dropdown() { … … 504 510 * Add CSS class for the current message depending on starred status. 505 511 * 506 * @since BuddyPress (2.3.0)512 * @since 2.3.0 507 513 * 508 514 * @param array $retval Current CSS classes -
trunk/src/bp-messages/bp-messages-template.php
r10060 r10139 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Messages Template Tags. … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 290 289 * Fires when at the end of threads to iterate over. 291 290 * 292 * @since BuddyPress (1.5.0)291 * @since 1.5.0 293 292 */ 294 293 do_action( 'messages_box_loop_end' ); … … 352 351 * Fires if at the start of the message thread loop. 353 352 * 354 * @since BuddyPress (1.5.0)353 * @since 1.5.0 355 354 */ 356 355 do_action( 'messages_box_loop_start' ); … … 366 365 * the theme via individual template parts for a member's inbox/sentbox/notices. 367 366 * 368 * @since BuddyPress (1.0.0)367 * @since 1.0.0 369 368 * 370 369 * @global BP_Messages_Box_Template $messages_template … … 430 429 * Filters if there are any message threads to display in inbox/sentbox/notices. 431 430 * 432 * @since BuddyPress (1.1.0)431 * @since 1.1.0 433 432 * 434 433 * @param bool $value Whether or not the message has threads. … … 476 475 * Filters the ID of the current thread in the loop. 477 476 * 478 * @since BuddyPress (1.0.0)477 * @since 1.0.0 479 478 * 480 479 * @param int $thread_id ID of the current thread in the loop. … … 500 499 * Filters the subject of the current thread in the loop. 501 500 * 502 * @since BuddyPress (1.1.0)501 * @since 1.1.0 503 502 * 504 503 * @param string $value Subject of the current thread in the loop. … … 524 523 * Filters the excerpt of the current thread in the loop. 525 524 * 526 * @since BuddyPress (1.0.0)525 * @since 1.0.0 527 526 * 528 527 * @param string $value Excerpt of the current thread in the loop. … … 540 539 * the thread of which you *are* the member. 541 540 * 542 * @since BuddyPress (2.0.0)541 * @since 2.0.0 543 542 */ 544 543 function bp_message_thread_content() { … … 554 553 * the thread of which you *are* the member. 555 554 * 556 * @since BuddyPress (2.0.0)555 * @since 2.0.0 557 556 * @return string The raw content of the last message in the thread. 558 557 */ … … 563 562 * Filters the content of the last message in the thread. 564 563 * 565 * @since BuddyPress (2.0.0)564 * @since 2.0.0 566 565 * 567 566 * @param string $last_message_content Content of the last message in the thread. … … 587 586 * Filters the link to the page of the current thread's last author. 588 587 * 589 * @since BuddyPress (1.0.0)588 * @since 1.0.0 590 589 * 591 590 * @param string $value Link to the page of the current thread's last author. … … 611 610 * Filters the HTML links to the pages of the current thread's recipients. 612 611 * 613 * @since BuddyPress (1.0.0)612 * @since 1.0.0 614 613 * 615 614 * @param string $value HTML links to the pages of the current thread's recipients. … … 646 645 * Filters the permalink of a particular thread. 647 646 * 648 * @since BuddyPress (1.0.0)647 * @since 1.0.0 649 648 * 650 649 * @param string $value permalink of a particular thread. … … 670 669 * Filters the URL for deleting the current thread. 671 670 * 672 * @since BuddyPress (1.0.0)671 * @since 1.0.0 673 672 * 674 673 * @param string $value URL for deleting the current thread. … … 683 682 * Since this function directly outputs a URL, it is escaped. 684 683 * 685 * @since BuddyPress (2.2.0)684 * @since 2.2.0 686 685 */ 687 686 function bp_the_message_thread_mark_unread_url() { … … 691 690 * Return the URL used for marking a single message thread as unread. 692 691 * 693 * @since BuddyPress (2.2.0)692 * @since 2.2.0 694 693 * 695 694 * @return string … … 718 717 * Filters the URL used for marking a single message thread as unread. 719 718 * 720 * @since BuddyPress (2.2.0)719 * @since 2.2.0 721 720 * 722 721 * @param string $url URL used for marking a single message thread as unread. … … 730 729 * Since this function directly outputs a URL, it is escaped. 731 730 * 732 * @since BuddyPress (2.2.0)731 * @since 2.2.0 733 732 */ 734 733 function bp_the_message_thread_mark_read_url() { … … 738 737 * Return the URL used for marking a single message thread as read. 739 738 * 740 * @since BuddyPress (2.2.0)739 * @since 2.2.0 741 740 * 742 741 * @return string … … 765 764 * Filters the URL used for marking a single message thread as read. 766 765 * 767 * @since BuddyPress (2.2.0)766 * @since 2.2.0 768 767 * 769 768 * @param string $url URL used for marking a single message thread as read. … … 795 794 * Filters the CSS class for the current thread. 796 795 * 797 * @since BuddyPress (1.2.10)796 * @since 1.2.10 798 797 * 799 798 * @param string $class Class string to be added to the list of classes. … … 817 816 * Filters whether or not a message thread has unread items. 818 817 * 819 * @since BuddyPress (2.1.0)818 * @since 2.1.0 820 819 * 821 820 * @param bool $retval Whether or not a message thread has unread items. … … 845 844 * Filters the current thread's unread count. 846 845 * 847 * @since BuddyPress (1.0.0)846 * @since 1.0.0 848 847 * 849 848 * @param int $count Current thread unread count. … … 855 854 * Output a thread's total message count. 856 855 * 857 * @since BuddyPress (2.2.0)856 * @since 2.2.0 858 857 * 859 858 * @param int|bool $thread_id Optional. ID of the thread. Defaults to current thread ID. … … 865 864 * Get the current thread's total message count. 866 865 * 867 * @since BuddyPress (2.2.0)866 * @since 2.2.0 868 867 * 869 868 * @param int|bool $thread_id Optional. ID of the thread. … … 889 888 * Filters the current thread's total message count. 890 889 * 891 * @since BuddyPress (2.2.0)890 * @since 2.2.0 892 891 * 893 892 * @param int $count Current thread total message count. … … 899 898 * Output markup for the current thread's total and unread count. 900 899 * 901 * @since BuddyPress (2.2.0)900 * @since 2.2.0 902 901 * 903 902 * @param int|bool $thread_id Optional. ID of the thread. Default: current thread ID. … … 945 944 * Filters the unformatted date of the last post in the current thread. 946 945 * 947 * @since BuddyPress (2.1.0)946 * @since 2.1.0 948 947 * 949 948 * @param string $last_message_date Unformatted date of the last post in the current thread. … … 968 967 * Filters the nicely formatted date of the last post in the current thread. 969 968 * 970 * @since BuddyPress (2.1.0)969 * @since 2.1.0 971 970 * 972 971 * @param string $value Formatted date of the last post in the current thread. … … 1022 1021 * Filters the avatar for the last sender in the current message thread. 1023 1022 * 1024 * @since BuddyPress (1.0.0)1023 * @since 1.0.0 1025 1024 * 1026 1025 * @param string $value User avatar string. … … 1053 1052 * Filters the unread messages count for the current inbox. 1054 1053 * 1055 * @since BuddyPress (1.0.0)1054 * @since 1.0.0 1056 1055 * 1057 1056 * @param int $value Unread messages count for the current inbox. … … 1077 1076 * Filters the pagination HTML for the current thread loop. 1078 1077 * 1079 * @since BuddyPress (1.0.0)1078 * @since 1.0.0 1080 1079 * 1081 1080 * @param int $pag_links Pagination HTML for the current thread loop. … … 1110 1109 * 1111 1110 * @todo Move markup to template part in: /members/single/messages/search.php 1112 * @since BuddyPress (1.6.0)1111 * @since 1.6.0 1113 1112 */ 1114 1113 function bp_message_search_form() { … … 1139 1138 * Filters the private message component search form. 1140 1139 * 1141 * @since BuddyPress (2.2.0)1140 * @since 2.2.0 1142 1141 * 1143 1142 * @param string $search_form_html HTML markup for the message search form. … … 1162 1161 * Filters the form action for Messages HTML forms. 1163 1162 * 1164 * @since BuddyPress (1.0.0)1163 * @since 1.0.0 1165 1164 * 1166 1165 * @param string $value The form action. … … 1189 1188 * cookie or 'r' $_GET parameter is set. 1190 1189 * 1191 * @since BuddyPress (1.0.0)1190 * @since 1.0.0 1192 1191 * 1193 1192 * @param string $value Default user name. … … 1224 1223 * Filters the default value for the subject field. 1225 1224 * 1226 * @since BuddyPress (1.0.0)1225 * @since 1.0.0 1227 1226 * 1228 1227 * @param string $subject The default value for the subject field. … … 1255 1254 * Filters the default value for the content field. 1256 1255 * 1257 * @since BuddyPress (1.0.0)1256 * @since 1.0.0 1258 1257 * 1259 1258 * @param string $content The default value for the content field. … … 1294 1293 * Output the dropdown for bulk management of messages. 1295 1294 * 1296 * @since BuddyPress (2.2.0)1295 * @since 2.2.0 1297 1296 */ 1298 1297 function bp_messages_bulk_management_dropdown() { … … 1308 1307 * Action to add additional options to the messages bulk management dropdown. 1309 1308 * 1310 * @since BuddyPress (2.3.0)1309 * @since 2.3.0 1311 1310 */ 1312 1311 do_action( 'bp_messages_bulk_management_dropdown' ); … … 1320 1319 * Return whether or not the notice is currently active. 1321 1320 * 1322 * @since BuddyPress (1.6.0)1321 * @since 1.6.0 1323 1322 */ 1324 1323 function bp_messages_is_active_notice() { … … 1332 1331 * Filters whether or not the notice is currently active. 1333 1332 * 1334 * @since BuddyPress (2.1.0)1333 * @since 2.1.0 1335 1334 * 1336 1335 * @param bool $retval Whether or not the notice is currently active. … … 1344 1343 * Since 1.6 this function has been deprecated in favor of text in the theme. 1345 1344 * 1346 * @since BuddyPress (1.0.0)1347 * @deprecated BuddyPress (1.6.0)1345 * @since 1.0.0 1346 * @deprecated 1.6.0 1348 1347 * @uses bp_get_message_is_active_notice() 1349 1348 */ … … 1357 1356 * theme. 1358 1357 * 1359 * @since BuddyPress (1.0.0)1360 * @deprecated BuddyPress (1.6.0)1358 * @since 1.0.0 1359 * @deprecated 1.6.0 1361 1360 * @uses bp_messages_is_active_notice() 1362 1361 */ … … 1387 1386 * Filters the ID of the current notice in the loop. 1388 1387 * 1389 * @since BuddyPress (1.5.0)1388 * @since 1.5.0 1390 1389 * 1391 1390 * @param int $id ID of the current notice in the loop. … … 1411 1410 * Filters the post date of the current notice in the loop. 1412 1411 * 1413 * @since BuddyPress (1.0.0)1412 * @since 1.0.0 1414 1413 * 1415 1414 * @param string $value Formatted post date of the current notice in the loop. … … 1435 1434 * Filters the subject of the current notice in the loop. 1436 1435 * 1437 * @since BuddyPress (1.0.0)1436 * @since 1.0.0 1438 1437 * 1439 1438 * @param string $subject Subject of the current notice in the loop. … … 1459 1458 * Filters the text of the current notice in the loop. 1460 1459 * 1461 * @since BuddyPress (1.0.0)1460 * @since 1.0.0 1462 1461 * 1463 1462 * @param string $message Text for the current notice in the loop. … … 1483 1482 * Filters the URL for deleting the current notice. 1484 1483 * 1485 * @since BuddyPress (1.0.0)1484 * @since 1.0.0 1486 1485 * 1487 1486 * @param string $value URL for deleting the current notice. … … 1514 1513 * Filters the URL for deactivating the current notice. 1515 1514 * 1516 * @since BuddyPress (1.0.0)1515 * @since 1.0.0 1517 1516 * 1518 1517 * @param string $link URL for deactivating the current notice. … … 1544 1543 * Filters the "Deactivate" or "Activate" text for notice action links. 1545 1544 * 1546 * @since BuddyPress (1.0.0)1545 * @since 1.0.0 1547 1546 * 1548 1547 * @param string $text Text used for notice action links. … … 1554 1553 * Output the messages component slug. 1555 1554 * 1556 * @since BuddyPress (1.5.0)1555 * @since 1.5.0 1557 1556 * 1558 1557 * @uses bp_get_messages_slug() … … 1564 1563 * Return the messages component slug. 1565 1564 * 1566 * @since BuddyPress (1.5.0)1565 * @since 1.5.0 1567 1566 * 1568 1567 * @return string … … 1573 1572 * Filters the messages component slug. 1574 1573 * 1575 * @since BuddyPress (1.5.0)1574 * @since 1.5.0 1576 1575 * 1577 1576 * @param string $slug Messages component slug. … … 1631 1630 * Filters the URL for the Private Message link in member profile headers. 1632 1631 * 1633 * @since BuddyPress (1.2.10)1632 * @since 1.2.10 1634 1633 * 1635 1634 * @param string $value URL for the Private Message link in member profile headers. … … 1643 1642 * Explicitly named function to avoid confusion with public messages. 1644 1643 * 1645 * @since BuddyPress (1.2.6)1644 * @since 1.2.6 1646 1645 * 1647 1646 * @uses bp_get_send_message_button() … … 1670 1669 * Filters the "Private Message" button for member profile headers. 1671 1670 * 1672 * @since BuddyPress (1.8.0)1671 * @since 1.8.0 1673 1672 * 1674 1673 * @param array $value See {@link BP_Button}. … … 1704 1703 * Filters the URL of the Messages AJAX loader gif. 1705 1704 * 1706 * @since BuddyPress (1.0.0)1705 * @since 1.0.0 1707 1706 * 1708 1707 * @param string $value URL of the Messages AJAX loader gif. … … 1757 1756 * Filters the recipients usernames for prefilling the 'To' field on the Compose screen. 1758 1757 * 1759 * @since BuddyPress (1.0.0)1758 * @since 1.0.0 1760 1759 * 1761 1760 * @param string $recipients Recipients usernames for 'To' field prefilling. … … 1912 1911 * Fires when at the end of messages to iterate over. 1913 1912 * 1914 * @since BuddyPress (1.1.0)1913 * @since 1.1.0 1915 1914 */ 1916 1915 do_action( 'thread_loop_end' ); … … 1942 1941 * Fires if at the start of the message loop. 1943 1942 * 1944 * @since BuddyPress (1.1.0)1943 * @since 1.1.0 1945 1944 */ 1946 1945 do_action( 'thread_loop_start' ); … … 2040 2039 * Filters the ID of the thread that the current loop belongs to. 2041 2040 * 2042 * @since BuddyPress (1.1.0)2041 * @since 1.1.0 2043 2042 * 2044 2043 * @param int $thread_id ID of the thread. … … 2064 2063 * Filters the subject of the thread currently being iterated over. 2065 2064 * 2066 * @since BuddyPress (1.1.0)2065 * @since 1.1.0 2067 2066 * 2068 2067 * @return string $last_message_subject Subject of the thread currently being iterated over. … … 2093 2092 * Get the number of recipients in the current thread. 2094 2093 * 2095 * @since BuddyPress (2.2.0)2094 * @since 2.2.0 2096 2095 * 2097 2096 * @return int … … 2105 2104 * Get the max number of recipients to list in the 'Conversation between...' gloss. 2106 2105 * 2107 * @since BuddyPress (2.3.0)2106 * @since 2.3.0 2108 2107 * 2109 2108 * @return int … … 2113 2112 * Filters the max number of recipients to list in the 'Conversation between...' gloss. 2114 2113 * 2115 * @since BuddyPress (2.3.0)2114 * @since 2.3.0 2116 2115 * 2117 2116 * @param int $count Recipient count. Default: 5. … … 2123 2122 * Output HTML links to recipients in the current thread. 2124 2123 * 2125 * @since BuddyPress (2.2.0)2124 * @since 2.2.0 2126 2125 */ 2127 2126 function bp_the_thread_recipients_list() { … … 2131 2130 * Generate HTML links to the profiles of recipients in the current thread. 2132 2131 * 2133 * @since BuddyPress (2.2.0)2132 * @since 2.2.0 2134 2133 * 2135 2134 * @return string … … 2155 2154 * Filters the HTML links to the profiles of recipients in the current thread. 2156 2155 * 2157 * @since BuddyPress (2.2.0)2156 * @since 2.2.0 2158 2157 * 2159 2158 * @param string $value Comma-separated list of recipient HTML links for current thread. … … 2165 2164 * Echo the ID of the current message in the thread. 2166 2165 * 2167 * @since BuddyPress (1.9.0)2166 * @since 1.9.0 2168 2167 */ 2169 2168 function bp_the_thread_message_id() { … … 2173 2172 * Get the ID of the current message in the thread. 2174 2173 * 2175 * @since BuddyPress (1.9.0)2174 * @since 1.9.0 2176 2175 * 2177 2176 * @return int … … 2187 2186 * Filters the ID of the current message in the thread. 2188 2187 * 2189 * @since BuddyPress (1.9.0)2188 * @since 1.9.0 2190 2189 * 2191 2190 * @param int $thread_message_id ID of the current message in the thread. … … 2197 2196 * Output the CSS classes for messages within a single thread. 2198 2197 * 2199 * @since BuddyPress (2.1.0)2198 * @since 2.1.0 2200 2199 */ 2201 2200 function bp_the_thread_message_css_class() { … … 2205 2204 * Generate the CSS classes for messages within a single thread. 2206 2205 * 2207 * @since BuddyPress (2.1.0)2206 * @since 2.1.0 2208 2207 * 2209 2208 * @return string … … 2228 2227 * Filters the CSS classes for messages within a single thread. 2229 2228 * 2230 * @since BuddyPress (2.1.0)2229 * @since 2.1.0 2231 2230 * 2232 2231 * @param array $classes Array of classes to add to the HTML class attribute. … … 2260 2259 * Filters the CSS class used for message zebra striping. 2261 2260 * 2262 * @since BuddyPress (1.1.0)2261 * @since 1.1.0 2263 2262 * 2264 2263 * @param string $class Class determined to be next for zebra striping effect. … … 2270 2269 * Output the ID for message sender within a single thread. 2271 2270 * 2272 * @since BuddyPress (2.1.0)2271 * @since 2.1.0 2273 2272 */ 2274 2273 function bp_the_thread_message_sender_id() { … … 2278 2277 * Return the ID for message sender within a single thread. 2279 2278 * 2280 * @since BuddyPress (2.1.0)2279 * @since 2.1.0 2281 2280 * 2282 2281 * @return string … … 2292 2291 * Filters the ID for message sender within a single thread. 2293 2292 * 2294 * @since BuddyPress (2.1.0)2293 * @since 2.1.0 2295 2294 * 2296 2295 * @param int $user_id ID of the message sender. … … 2332 2331 * Filters the avatar for the current message sender. 2333 2332 * 2334 * @since BuddyPress (1.1.0)2333 * @since 1.1.0 2335 2334 * 2336 2335 * @param string $value <img> tag containing the avatar value. … … 2362 2361 * Filters the link to the sender of the current message. 2363 2362 * 2364 * @since BuddyPress (1.1.0)2363 * @since 1.1.0 2365 2364 * 2366 2365 * @param string $value Link to the sender of the current message. … … 2392 2391 * Filters the display name of the sender of the current message. 2393 2392 * 2394 * @since BuddyPress (1.1.0)2393 * @since 1.1.0 2395 2394 * 2396 2395 * @param string $display_name Display name of the sender of the current message. … … 2415 2414 * Filters the URL for deleting the current thread. 2416 2415 * 2417 * @since BuddyPress (1.0.0)2416 * @since 1.0.0 2418 2417 * 2419 2418 * @param string $value URL for deleting the current thread. … … 2439 2438 * Filters the 'Sent x hours ago' string for the current message. 2440 2439 * 2441 * @since BuddyPress (1.1.0)2440 * @since 1.1.0 2442 2441 * 2443 2442 * @param string $value Default text of 'Sent x hours ago'. … … 2449 2448 * Output the timestamp for the current message. 2450 2449 * 2451 * @since BuddyPress (2.1.0)2450 * @since 2.1.0 2452 2451 */ 2453 2452 function bp_the_thread_message_date_sent() { … … 2457 2456 * Generate the 'Sent x hours ago' string for the current message. 2458 2457 * 2459 * @since BuddyPress (2.1.0)2458 * @since 2.1.0 2460 2459 * 2461 2460 * @uses strtotime() To convert the message string into a usable timestamp. … … 2469 2468 * Filters the date sent value for the current message as a timestamp. 2470 2469 * 2471 * @since BuddyPress (2.1.0)2470 * @since 2.1.0 2472 2471 * 2473 2472 * @param string $value Timestamp of the date sent value for the current message. … … 2493 2492 * Filters the content of the current message in the loop. 2494 2493 * 2495 * @since BuddyPress (1.1.0)2494 * @since 1.1.0 2496 2495 * 2497 2496 * @param string $message The content of the current message in the loop. … … 2505 2504 * Enable oEmbed support for Messages. 2506 2505 * 2507 * @since BuddyPress (1.5.0)2506 * @since 1.5.0 2508 2507 * 2509 2508 * @see BP_Embed … … 2521 2520 * Used during {@link BP_Embed::parse_oembed()} via {@link bp_messages_embed()}. 2522 2521 * 2523 * @since BuddyPress (2.2.0)2522 * @since 2.2.0 2524 2523 * 2525 2524 * @param string $cache An empty string passed by BP_Embed::parse_oembed() for … … 2539 2538 * Used during {@link BP_Embed::parse_oembed()} via {@link bp_messages_embed()}. 2540 2539 * 2541 * @since BuddyPress (2.2.0)2540 * @since 2.2.0 2542 2541 * 2543 2542 * @param string $cache An empty string passed by BP_Embed::parse_oembed() for -
trunk/src/bp-messages/bp-messages-widgets.php
r9862 r10139 7 7 */ 8 8 9 // Exit if accessed directly. 10 defined( 'ABSPATH' ) || exit; 11 9 12 /** 10 13 * Register widgets for the Messages component. 11 14 * 12 * @since BuddyPress (1.9.0)15 * @since 1.9.0 13 16 */ 14 17 function bp_messages_register_widgets() { … … 22 25 * A widget that displays sitewide notices. 23 26 * 24 * @since BuddyPress (1.9.0)27 * @since 1.9.0 25 28 */ 26 29 class BP_Messages_Sitewide_Notices_Widget extends WP_Widget { … … 67 70 * Filters the title of the Messages widget. 68 71 * 69 * @since BuddyPress (1.9.0)70 * @since BuddyPress (2.3.0)Added 'instance' and 'id_base' to arguments passed to filter.72 * @since 1.9.0 73 * @since 2.3.0 Added 'instance' and 'id_base' to arguments passed to filter. 71 74 * 72 75 * @param string $title The widget title. -
trunk/src/bp-messages/classes/class-bp-messages-message.php
r9862 r10139 1 1 <?php 2 2 /** 3 * BuddyPress Messages Classes 3 * BuddyPress Messages Classes. 4 4 * 5 5 * @package BuddyPress … … 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 119 119 * Please use this hook to filter the properties above. Each part will be passed in. 120 120 * 121 * @since BuddyPress (1.0.0)121 * @since 1.0.0 122 122 * 123 123 * @param BP_Messages_Message $this Current instance of the message item being saved. Passed by reference. … … 165 165 * Fires after the current message item has been saved. 166 166 * 167 * @since BuddyPress (1.0.0)167 * @since 1.0.0 168 168 * 169 169 * @param BP_Messages_Message $this Current instance of the message item being saved. Passed by reference. -
trunk/src/bp-messages/classes/class-bp-messages-notice.php
r9862 r10139 1 1 <?php 2 2 /** 3 * BuddyPress Messages Classes 3 * BuddyPress Messages Classes. 4 4 * 5 5 * @package BuddyPress … … 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 15 15 * Use this class to create, activate, deactivate or delete notices. 16 16 * 17 * @since BuddyPress (1.0.0)17 * @since 1.0.0 18 18 */ 19 19 class BP_Messages_Notice { … … 56 56 * Constructor. 57 57 * 58 * @since BuddyPress (1.0.0)58 * @since 1.0.0 59 59 * @param int $id Optional. The ID of the current notice. 60 60 */ … … 71 71 * Runs during constructor. 72 72 * 73 * @since BuddyPress (1.0.0)73 * @since 1.0.0 74 74 */ 75 75 public function populate() { … … 91 91 * Saves a notice. 92 92 * 93 * @since BuddyPress (1.0.0)93 * @since 1.0.0 94 94 * 95 95 * @return bool … … 108 108 * Please use this hook to filter the properties above. Each part will be passed in. 109 109 * 110 * @since BuddyPress (1.0.0)110 * @since 1.0.0 111 111 * 112 112 * @param BP_Messages_Notice $this Current instance of the message notice item being saved. Passed by reference. … … 136 136 * Fires after the current message notice item has been saved. 137 137 * 138 * @since BuddyPress (1.0.0)138 * @since 1.0.0 139 139 * 140 140 * @param BP_Messages_Notice $this Current instance of the message item being saved. Passed by reference. … … 148 148 * Activates a notice. 149 149 * 150 * @since BuddyPress (1.0.0)150 * @since 1.0.0 151 151 * 152 152 * @return bool … … 160 160 * Deactivates a notice. 161 161 * 162 * @since BuddyPress (1.0.0)162 * @since 1.0.0 163 163 * 164 164 * @return bool … … 172 172 * Deletes a notice. 173 173 * 174 * @since BuddyPress (1.0.0)174 * @since 1.0.0 175 175 * 176 176 * @return bool … … 182 182 * Fires before the current message item has been deleted. 183 183 * 184 * @since BuddyPress (1.0.0)184 * @since 1.0.0 185 185 * 186 186 * @param BP_Messages_Notice $this Current instance of the message notice item being deleted. … … 205 205 * To get all notices, pass a value of -1 to pag_num. 206 206 * 207 * @since BuddyPress (1.0.0)207 * @since 1.0.0 208 208 * 209 209 * @param array $args { … … 237 237 * Returns the total number of recorded notices. 238 238 * 239 * @since BuddyPress (1.0.0)239 * @since 1.0.0 240 240 * 241 241 * @return int … … 254 254 * Returns the active notice that should be displayed on the frontend. 255 255 * 256 * @since BuddyPress (1.0.0)256 * @since 1.0.0 257 257 * 258 258 * @return object The BP_Messages_Notice object. -
trunk/src/bp-messages/classes/class-bp-messages-thread.php
r10038 r10139 1 1 <?php 2 2 /** 3 * BuddyPress Messages Classes 3 * BuddyPress Messages Classes. 4 4 * 5 5 * @package BuddyPress … … 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 13 13 * BuddyPress Message Thread class. 14 14 * 15 * @since BuddyPress (1.0.0)15 * @since 1.0.0 16 16 */ 17 17 class BP_Messages_Thread { … … 20 20 * The message thread ID. 21 21 * 22 * @since BuddyPress (1.0.0)22 * @since 1.0.0 23 23 * @var int 24 24 */ … … 28 28 * The current messages. 29 29 * 30 * @since BuddyPress (1.0.0)30 * @since 1.0.0 31 31 * @var array 32 32 */ … … 36 36 * The current recipients in the message thread. 37 37 * 38 * @since BuddyPress (1.0.0)38 * @since 1.0.0 39 39 * @var array 40 40 */ … … 44 44 * The user IDs of all messages in the message thread. 45 45 * 46 * @since BuddyPress (1.2.0)46 * @since 1.2.0 47 47 * @var array 48 48 */ … … 52 52 * The unread count for the logged-in user. 53 53 * 54 * @since BuddyPress (1.2.0)54 * @since 1.2.0 55 55 * @var int 56 56 */ … … 60 60 * The content of the last message in this thread. 61 61 * 62 * @since BuddyPress (1.2.0)62 * @since 1.2.0 63 63 * @var string 64 64 */ … … 68 68 * The date of the last message in this thread. 69 69 * 70 * @since BuddyPress (1.2.0)70 * @since 1.2.0 71 71 * @var string 72 72 */ … … 76 76 * The ID of the last message in this thread. 77 77 * 78 * @since BuddyPress (1.2.0)78 * @since 1.2.0 79 79 * @var int 80 80 */ … … 84 84 * The subject of the last message in this thread. 85 85 * 86 * @since BuddyPress (1.2.0)86 * @since 1.2.0 87 87 * @var string 88 88 */ … … 92 92 * The user ID of the author of the last message in this thread. 93 93 * 94 * @since BuddyPress (1.2.0)94 * @since 1.2.0 95 95 * @var int 96 96 */ … … 100 100 * Sort order of the messages in this thread (ASC or DESC). 101 101 * 102 * @since BuddyPress (1.5.0)102 * @since 1.5.0 103 103 * @var string 104 104 */ … … 108 108 * Constructor. 109 109 * 110 * @since BuddyPress (1.0.0)110 * @since 1.0.0 111 111 * 112 112 * @see BP_Messages_Thread::populate() for full description of parameters. … … 127 127 * Used in constructor. 128 128 * 129 * @since BuddyPress (1.0.0)129 * @since 1.0.0 130 130 * 131 131 * @param int $thread_id The message thread ID. … … 192 192 * Fires after a BP_Messages_Thread object has been populated. 193 193 * 194 * @since BuddyPress (2.2.0)194 * @since 2.2.0 195 195 * 196 196 * @param BP_Messages_Thread $this Message thread object. … … 202 202 * Mark a thread initialized in this class as read. 203 203 * 204 * @since BuddyPress (1.0.0)204 * @since 1.0.0 205 205 * 206 206 * @see BP_Messages_Thread::mark_as_read() … … 213 213 * Mark a thread initialized in this class as unread. 214 214 * 215 * @since BuddyPress (1.0.0)215 * @since 1.0.0 216 216 * 217 217 * @see BP_Messages_Thread::mark_as_unread() … … 224 224 * Returns recipients for a message thread. 225 225 * 226 * @since BuddyPress (1.0.0)227 * @since BuddyPress (2.3.0)Added $thread_id as a parameter.226 * @since 1.0.0 227 * @since 2.3.0 Added $thread_id as a parameter. 228 228 * 229 229 * @param int $thread_id The thread ID. … … 258 258 * Filters the recipients of a message thread. 259 259 * 260 * @since BuddyPress (2.2.0)260 * @since 2.2.0 261 261 * 262 262 * @param array $recipients Array of recipient objects. … … 271 271 * Get all messages associated with a thread. 272 272 * 273 * @since BuddyPress (2.3.0)273 * @since 2.3.0 274 274 * 275 275 * @param int $thread_id The message thread ID. … … 298 298 * Static method to get message recipients by thread ID. 299 299 * 300 * @since BuddyPress (2.3.0)300 * @since 2.3.0 301 301 * 302 302 * @param int $thread_id The thread ID. … … 315 315 * has marked the thread as deleted. 316 316 * 317 * @since BuddyPress (1.0.0)317 * @since 1.0.0 318 318 * 319 319 * @param int $thread_id The message thread ID. … … 329 329 * Fires before a message thread is marked as deleted. 330 330 * 331 * @since BuddyPress (2.2.0)331 * @since 2.2.0 332 332 * 333 333 * @param int $thread_id ID of the thread being deleted. … … 355 355 * Fires before an entire message thread is deleted. 356 356 * 357 * @since BuddyPress (2.2.0)357 * @since 2.2.0 358 358 * 359 359 * @param int $thread_id ID of the thread being deleted. … … 374 374 * Fires after a message is deleted. This hook is poorly named. 375 375 * 376 * @since BuddyPress (1.0.0)376 * @since 1.0.0 377 377 * 378 378 * @param int $message_id ID of the message. … … 388 388 * Fires after a message thread is either marked as deleted or deleted. 389 389 * 390 * @since BuddyPress (2.2.0)390 * @since 2.2.0 391 391 * 392 392 * @param int $thread_id ID of the thread being deleted. … … 401 401 * Get current message threads for a user. 402 402 * 403 * @since BuddyPress (1.0.0)403 * @since 1.0.0 404 404 * 405 405 * @param array $args { … … 536 536 * Filters the results of the query for a user's message threads. 537 537 * 538 * @since BuddyPress (2.2.0)538 * @since 2.2.0 539 539 * 540 540 * @param array $value { … … 555 555 * and creating the necessary SQL clauses. 556 556 * 557 * @since BuddyPress (2.2.0)557 * @since 2.2.0 558 558 * 559 559 * @param array $meta_query An array of meta_query filters. See the … … 586 586 * Mark a thread as read. 587 587 * 588 * @since BuddyPress (1.0.0)588 * @since 1.0.0 589 589 * 590 590 * @param int $thread_id The message thread ID. … … 604 604 * Mark a thread as unread. 605 605 * 606 * @since BuddyPress (1.0.0)606 * @since 1.0.0 607 607 * 608 608 * @param int $thread_id The message thread ID. … … 622 622 * Returns the total number of message threads for a user. 623 623 * 624 * @since BuddyPress (1.0.0)624 * @since 1.0.0 625 625 * 626 626 * @param int $user_id The user ID. … … 653 653 * Determine if the logged-in user is a sender of any message in a thread. 654 654 * 655 * @since BuddyPress (1.0.0)655 * @since 1.0.0 656 656 * 657 657 * @param int $thread_id The message thread ID. … … 676 676 * Returns the userlink of the last sender in a message thread. 677 677 * 678 * @since BuddyPress (1.0.0)678 * @since 1.0.0 679 679 * 680 680 * @param int $thread_id The message thread ID. … … 697 697 * Gets the unread message count for a user. 698 698 * 699 * @since BuddyPress (1.0.0)699 * @since 1.0.0 700 700 * 701 701 * @param int $user_id The user ID. … … 723 723 * Filters a user's unread message count. 724 724 * 725 * @since BuddyPress (2.2.0)725 * @since 2.2.0 726 726 * 727 727 * @param int $unread_count Unread message count. … … 734 734 * Checks whether a user is a part of a message thread discussion. 735 735 * 736 * @since BuddyPress (1.0.0)736 * @since 1.0.0 737 737 * 738 738 * @param int $thread_id The message thread ID. … … 759 759 * Checks whether a message thread exists. 760 760 * 761 * @since BuddyPress (1.0.0)761 * @since 1.0.0 762 762 * 763 763 * @param int $thread_id The message thread ID. … … 789 789 * "X Recipients" where "X" is the number of recipients in the message thread. 790 790 * 791 * @since BuddyPress (1.0.0)791 * @since 1.0.0 792 792 * 793 793 * @param array $recipients Array containing the message recipients (array of objects). … … 819 819 * Upgrade method for the older BP message thread DB table. 820 820 * 821 * @since BuddyPress (1.2.0)821 * @since 1.2.0 822 822 * 823 823 * @todo We should remove this. No one is going to upgrade from v1.1, right?
Note: See TracChangeset
for help on using the changeset viewer.