Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/13/2016 07:32:53 PM (9 years ago)
Author:
tw2113
Message:

Addes missing @since tags to many functions, methods, and properties in the BP Friends component.

See #6400.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/classes/class-bp-friends-friendship.php

    r10424 r10587  
    1313/**
    1414 * BuddyPress Friendship object.
     15 *
     16 * @since 1.0.0
    1517 */
    1618class BP_Friends_Friendship {
     
    1921     * ID of the friendship.
    2022     *
     23     * @since 1.0.0
    2124     * @var int
    2225     */
     
    2629     * User ID of the friendship initiator.
    2730     *
     31     * @since 1.0.0
    2832     * @var int
    2933     */
     
    3337     * User ID of the 'friend' - the one invited to the friendship.
    3438     *
     39     * @since 1.0.0
    3540     * @var int
    3641     */
     
    4045     * Has the friendship been confirmed/accepted?
    4146     *
     47     * @since 1.0.0
    4248     * @var int
    4349     */
     
    4955     * Not currently used by BuddyPress.
    5056     *
     57     * @since 1.0.0
    5158     * @var int
    5259     */
     
    5663     * Date the friendship was created.
    5764     *
     65     * @since 1.0.0
    5866     * @var string
    5967     */
     
    6573     * Not currently used in BuddyPress.
    6674     *
     75     * @since 1.0.0
    6776     * @var bool
    6877     */
     
    7281     * Should additional friend details be queried?
    7382     *
     83     * @since 1.0.0
    7484     * @var bool
    7585     */
     
    7989     * Details about the friend.
    8090     *
     91     * @since 1.0.0
    8192     * @var BP_Core_User
    8293     */
     
    8596    /**
    8697     * Constructor method.
     98     *
     99     * @since 1.5.0
    87100     *
    88101     * @param int|null $id                      Optional. The ID of an existing friendship.
     
    102115    /**
    103116     * Set up data about the current friendship.
     117     *
     118     * @since 1.0.0
    104119     */
    105120    public function populate() {
     
    127142    /**
    128143     * Save the current friendship to the database.
     144     *
     145     * @since 1.0.0
    129146     *
    130147     * @return bool True on success, false on failure.
     
    175192     * Delete the current friendship from the database.
    176193     *
     194     * @since 1.0.0
     195     *
    177196     * @return bool|int
    178197     */
     
    189208    /**
    190209     * Get the IDs of a given user's friends.
     210     *
     211     * @since 1.0.0
    191212     *
    192213     * @param int  $user_id              ID of the user whose friends are being retrieved.
     
    227248     * Get the ID of the friendship object, if any, between a pair of users.
    228249     *
     250     * @since 1.0.0
     251     *
    229252     * @param int $user_id   The ID of the first user.
    230253     * @param int $friend_id The ID of the second user.
     
    242265     * Get a list of IDs of users who have requested friendship of a given user.
    243266     *
     267     * @since 1.2.0
     268     *
    244269     * @param int $user_id The ID of the user who has received the
    245270     *                     friendship requests.
     
    264289    /**
    265290     * Get a total friend count for a given user.
     291     *
     292     * @since 1.0.0
    266293     *
    267294     * @param int $user_id Optional. ID of the user whose friendships you
     
    296323    /**
    297324     * Search the friends of a user by a search string.
     325     *
     326     * @since 1.0.0
    298327     *
    299328     * @param string   $filter  The search string, matched against xprofile
     
    303332     * @param int|null $page    Optional. The page of results to return. Default:
    304333     *                          null (no pagination - return all results).
    305      *
    306334     * @return array|bool On success, an array: {
    307335     *     @type array $friends IDs of friends returned by the query.
     
    364392     * while 'awaiting_response' is the other way around ($possible_friend_userid
    365393     * sent the initial request).
     394     *
     395     * @since 1.0.0
    366396     *
    367397     * @param int $initiator_userid       The ID of the user who is the initiator
     
    401431     * @todo Why is this in the Friends component?
    402432     *
     433     * @since 1.0.0
     434     *
    403435     * @param array $user_ids IDs of users whose last_active meta is
    404436     *                        being queried.
     
    434466     * Mark a friendship as accepted.
    435467     *
     468     * @since 1.0.0
     469     *
    436470     * @param int $friendship_id ID of the friendship to be accepted.
    437471     * @return int Number of database rows updated.
     
    448482     * Remove a friendship or a friendship request INITIATED BY the logged-in user.
    449483     *
     484     * @since 1.6.0
     485     *
    450486     * @param int $friendship_id ID of the friendship to be withdrawn.
    451487     * @return int Number of database rows deleted.
     
    462498     * Remove a friendship or a friendship request MADE OF the logged-in user.
    463499     *
     500     * @since 1.0.0
     501     *
    464502     * @param int $friendship_id ID of the friendship to be rejected.
    465503     * @return int Number of database rows deleted.
     
    477515     *
    478516     * @todo Why does this exist, and why is it in bp-friends?
     517     *
     518     * @since 1.0.0
    479519     *
    480520     * @param string   $filter  String to search by.
     
    521561     * @todo Why does this exist, and why is it in bp-friends?
    522562     *
     563     * @since 1.0.0
     564     *
    523565     * @param string $filter Search term.
    524566     * @return int Count of users matching the search term.
     
    556598     * @todo Why does this exist, and why is it in bp-friends?
    557599     *
     600     * @since 1.0.0
     601     *
    558602     * @param array $user_ids Array of user IDs.
    559603     * @return array User IDs, sorted by the associated display names.
     
    574618    /**
    575619     * Get a list of random friend IDs.
     620     *
     621     * @since 1.0.0
    576622     *
    577623     * @param int $user_id       ID of the user whose friends are being retrieved.
     
    609655     * - users who have been banned from the group
    610656     *
     657     * @since 1.0.0
     658     *
    611659     * @param int $user_id  ID of the user whose friends are being counted.
    612660     * @param int $group_id ID of the group friends are being invited to.
     
    643691     * Get the friend user IDs for a given friendship.
    644692     *
     693     * @since 1.0.0
     694     *
    645695     * @param int $friendship_id ID of the friendship.
    646696     * @return object friend_user_id and initiator_user_id.
     
    656706    /**
    657707     * Delete all friendships and friend notifications related to a user.
     708     *
     709     * @since 1.0.0
    658710     *
    659711     * @param int $user_id ID of the user being expunged.
Note: See TracChangeset for help on using the changeset viewer.