- Timestamp:
- 05/12/2015 04:39:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/classes/class-bp_messages-thread.php
r9819 r9862 57 57 58 58 /** 59 * The content of the last message in this thread 59 * The content of the last message in this thread. 60 60 * 61 61 * @since BuddyPress (1.2.0) … … 65 65 66 66 /** 67 * The date of the last message in this thread 67 * The date of the last message in this thread. 68 68 * 69 69 * @since BuddyPress (1.2.0) … … 73 73 74 74 /** 75 * The ID of the last message in this thread 75 * The ID of the last message in this thread. 76 76 * 77 77 * @since BuddyPress (1.2.0) … … 81 81 82 82 /** 83 * The subject of the last message in this thread 83 * The subject of the last message in this thread. 84 84 * 85 85 * @since BuddyPress (1.2.0) … … 89 89 90 90 /** 91 * The user ID of the author of the last message in this thread 91 * The user ID of the author of the last message in this thread. 92 92 * 93 93 * @since BuddyPress (1.2.0) … … 109 109 * @since BuddyPress (1.0.0) 110 110 * 111 * @see BP_Messages_Thread::populate() for full description of parameters 111 * @see BP_Messages_Thread::populate() for full description of parameters. 112 * 113 * @param bool $thread_id 114 * @param string $order 115 * @param array $args 112 116 */ 113 117 public function __construct( $thread_id = false, $order = 'ASC', $args = array() ) { … … 124 128 * @since BuddyPress (1.0.0) 125 129 * 126 * @param int $thread_id The message thread ID.127 * @param string $order The order to sort the messages. Either 'ASC' or 'DESC'.130 * @param int $thread_id The message thread ID. 131 * @param string $order The order to sort the messages. Either 'ASC' or 'DESC'. 128 132 * @param array $args { 129 133 * Array of arguments. 130 134 * @type bool $update_meta_cache Whether to pre-fetch metadata for 131 * queried message items. Default: true.135 * queried message items. Default: true. 132 136 * } 133 137 * @return bool False on failure. … … 182 186 * @since BuddyPress (2.2.0) 183 187 * 184 * @param BP_Messages_Thread Message thread object.188 * @param BP_Messages_Thread $this Message thread object. 185 189 */ 186 190 do_action( 'bp_messages_thread_post_populate', $this ); … … 215 219 * @since BuddyPress (2.3.0) Added $thread_id as a parameter. 216 220 * 217 * @param int $thread_id The thread ID 221 * @param int $thread_id The thread ID. 222 * 218 223 * @return array 219 224 */ … … 257 262 * @since BuddyPress (2.3.0) 258 263 * 259 * @param int $thread_id The message thread ID 264 * @param int $thread_id The message thread ID. 265 * 260 266 * @return array 261 267 */ … … 282 288 * @since BuddyPress (2.3.0) 283 289 * 284 * @param int $thread_id The thread ID 290 * @param int $thread_id The thread ID. 291 * 285 292 * @return array 286 293 */ … … 298 305 * @since BuddyPress (1.0.0) 299 306 * 300 * @param int $thread_id The message thread ID 307 * @param int $thread_id The message thread ID. 308 * 301 309 * @return bool 302 310 */ … … 353 361 * @since BuddyPress (1.0.0) 354 362 * 355 * @param int $message_id ID of the message 363 * @param int $message_id ID of the message. 356 364 */ 357 365 do_action( 'messages_thread_deleted_thread', $message_id ); … … 363 371 364 372 /** 365 * Fires after a message thread is either marked as deleted or deleted 373 * Fires after a message thread is either marked as deleted or deleted. 366 374 * 367 375 * @since BuddyPress (2.2.0) … … 521 529 * 522 530 * @param array $meta_query An array of meta_query filters. See the 523 * documentation for WP_Meta_Query for details. 531 * documentation for WP_Meta_Query for details. 532 * 524 533 * @return array $sql_array 'join' and 'where' clauses. 525 534 */ … … 587 596 * 588 597 * @param int $user_id The user ID. 589 * @param string $box The type of mailbox to get. Either 'inbox' or 'sentbox'.590 * Defaults to 'inbox'.591 * @param string $type The type of messages to get. Either 'all' or 'unread'592 * or 'read'. Defaults to 'all'.598 * @param string $box The type of mailbox to get. Either 'inbox' or 'sentbox'. 599 * Defaults to 'inbox'. 600 * @param string $type The type of messages to get. Either 'all' or 'unread'. 601 * or 'read'. Defaults to 'all'. 593 602 * @return int 594 603 */ … … 616 625 * 617 626 * @param int $thread_id The message thread ID. 627 * 618 628 * @return bool 619 629 */ … … 638 648 * 639 649 * @param int $thread_id The message thread ID. 650 * 640 651 * @return string|bool The user link on success. Boolean false on failure. 641 652 */ … … 658 669 * 659 670 * @param int $user_id The user ID. 671 * 660 672 * @return int 661 673 */ … … 694 706 * 695 707 * @param int $thread_id The message thread ID. 696 * @param int $user_id The user ID. 697 * @return int|null The recorded recipient ID on success, null on failure 708 * @param int $user_id The user ID. 709 * 710 * @return int|null The recorded recipient ID on success, null on failure. 698 711 */ 699 712 public static function check_access( $thread_id, $user_id = 0 ) { … … 717 730 * 718 731 * @param int $thread_id The message thread ID. 719 * @return int|null The message thread ID on success, null on failure 732 * 733 * @return int|null The message thread ID on success, null on failure. 720 734 */ 721 735 public static function is_valid( $thread_id = 0 ) { … … 745 759 * 746 760 * @param array $recipients Array containing the message recipients (array of objects). 761 * 747 762 * @return string 748 763 */
Note: See TracChangeset
for help on using the changeset viewer.