Changeset 9995 for trunk/src/bp-friends/bp-friends-template.php
- Timestamp:
- 07/04/2015 10:23:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-template.php
r9819 r9995 263 263 * 264 264 * @param int $user_id Optional. If provided, the function will simply 265 * return this value. 265 * return this value. 266 * 266 267 * @return int ID of potential friend. 267 268 */ … … 290 291 * 291 292 * @param int $user_id ID of the potential friend. Default: the value of 292 * {@link bp_get_potential_friend_id()}. 293 * {@link bp_get_potential_friend_id()}. 294 * 293 295 * @return string 'is_friend', 'not_friends', or 'pending'. 294 296 */ … … 319 321 * @see bp_get_add_friend_button() for information on arguments. 320 322 * 321 * @param int $potential_friend_id See {@link bp_get_add_friend_button()}.322 * @param int $friend_statusSee {@link bp_get_add_friend_button()}.323 * @param int $potential_friend_id See {@link bp_get_add_friend_button()}. 324 * @param int|bool $friend_status See {@link bp_get_add_friend_button()}. 323 325 */ 324 326 function bp_add_friend_button( $potential_friend_id = 0, $friend_status = false ) { … … 328 330 * Create the Add Friend button. 329 331 * 330 * @param int $potential_friend_id ID of the user to whom the button 331 * applies. Default: value of {@link bp_get_potential_friend_id()}. 332 * @param bool $friend_status Not currently used. 332 * @param int $potential_friend_id ID of the user to whom the button 333 * applies. Default: value of {@link bp_get_potential_friend_id()}. 334 * @param bool $friend_status Not currently used. 335 * 333 336 * @return string HTML for the Add Friend button. 334 337 */ … … 427 430 * 428 431 * @param int $user_id Optional. Default: the displayed user's ID, or the 429 * logged-in user's ID. 432 * logged-in user's ID. 433 * 430 434 * @return string|bool A comma-separated list of friend IDs if any are found, 431 * otherwise false.435 * otherwise false. 432 436 */ 433 437 function bp_get_friend_ids( $user_id = 0 ) { … … 451 455 * 452 456 * @param int $user_id ID of the user whose requests are being retrieved. 453 * Defaults to displayed user. 457 * Defaults to displayed user. 458 * 454 459 * @return array|int An array of user IDs if found, or a 0 if none are found. 455 460 */ … … 580 585 * 581 586 * @param int $user_id See {@link friends_get_total_friend_count()}. 587 * 582 588 * @return int Total friend count. 583 589 */ … … 609 615 * 610 616 * @param int $user_id ID of the user whose requests are being counted. 611 * Default: ID of the logged-in user. 617 * Default: ID of the logged-in user. 618 * 612 619 * @return int Friend count. 613 620 */ … … 633 640 * @since BuddyPress (2.0.0) 634 641 * 635 * @param array $args before|after|user_id 636 * @uses bp_friends_get_profile_stats() to get the stats 642 * @uses bp_friends_get_profile_stats() to get the stats. 643 * 644 * @param array|string $args before|after|user_id 637 645 */ 638 646 function bp_friends_profile_stats( $args = '' ) { … … 646 654 * @since BuddyPress (2.0.0) 647 655 * 648 * @param array $args before|after|user_id 656 * @param array|string $args before|after|user_id 657 * 649 658 * @return string HTML for stats output. 650 659 */ … … 682 691 * 683 692 * @param string $value Formatted string displaying total friends count. 684 * @param array $r Array of arguments for string formatting and output.693 * @param array $r Array of arguments for string formatting and output. 685 694 */ 686 695 return apply_filters( 'bp_friends_get_profile_stats', $r['output'], $r );
Note: See TracChangeset
for help on using the changeset viewer.