Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2015 05:21:07 AM (10 years ago)
Author:
tw2113
Message:

Initial documentation cleanup for the BP Groups component.

See #6401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-group-member-query.php

    r9819 r9906  
    11<?php
    22/**
    3  * BuddyPress Groups Classes
     3 * BuddyPress Groups Classes.
    44 *
    55 * @package BuddyPress
     
    1414 *
    1515 * Special notes about the group members data schema:
    16  * - *Members* are entries with is_confirmed = 1
    17  * - *Pending requests* are entries with is_confirmed = 0 and inviter_id = 0
     16 * - *Members* are entries with is_confirmed = 1.
     17 * - *Pending requests* are entries with is_confirmed = 0 and inviter_id = 0.
    1818 * - *Pending and sent invitations* are entries with is_confirmed = 0 and
    19  *   inviter_id != 0 and invite_sent = 1
     19 *   inviter_id != 0 and invite_sent = 1.
    2020 * - *Pending and unsent invitations* are entries with is_confirmed = 0 and
    21  *   inviter_id != 0 and invite_sent = 0
     21 *   inviter_id != 0 and invite_sent = 0.
    2222 * - *Membership requests* are entries with is_confirmed = 0 and
    23  *   inviter_id = 0 (and invite_sent = 0)
     23 *   inviter_id = 0 (and invite_sent = 0).
    2424 *
    2525 * @since BuddyPress (1.8.0)
    2626 *
    27  * @param array $args {
     27 * @param array $args  {
    2828 *     Array of arguments. Accepts all arguments from
    2929 *     {@link BP_User_Query}, with the following additions:
    30  *     @type int $group_id ID of the group to limit results to.
    31  *     @type array $group_role Array of group roles to match ('member',
    32  *           'mod', 'admin', 'banned'). Default: array( 'member' ).
    33  *     @type bool $is_confirmed Whether to limit to confirmed members.
    34  *           Default: true.
    35  *     @type string $type Sort order. Accepts any value supported by
    36  *           {@link BP_User_Query}, in addition to 'last_joined' and
    37  *           'first_joined'. Default: 'last_joined'.
     30 *
     31 *     @type int    $group_id     ID of the group to limit results to.
     32 *     @type array  $group_role   Array of group roles to match ('member',
     33 *                                'mod', 'admin', 'banned').
     34 *                                Default: array( 'member' ).
     35 *     @type bool   $is_confirmed Whether to limit to confirmed members.
     36 *                                Default: true.
     37 *     @type string $type         Sort order. Accepts any value supported by
     38 *                                {@link BP_User_Query}, in addition to 'last_joined'
     39 *                                and 'first_joined'. Default: 'last_joined'.
    3840 * }
    3941 */
     
    7880     *
    7981     * @param array $include Existing group IDs in the $include parameter,
    80      *        as calculated in BP_User_Query.
     82     *                       as calculated in BP_User_Query.
    8183     * @return array
    8284     */
     
    298300     * @since BuddyPress (1.8.0)
    299301     *
    300      * @param BP_User_Query $query BP_User_Query object. Because we're
    301      *        filtering the current object, we use $this inside of the
    302      *        method instead.
    303      * @param string $user_ids_sql Sanitized, comma-separated string of
    304      *        the user ids returned by the main query.
     302     * @param BP_User_Query $query        BP_User_Query object. Because we're
     303     *                                    filtering the current object, we use
     304     *                                    $this inside of the method instead.
     305     * @param string        $user_ids_sql Sanitized, comma-separated string of
     306     *                                    the user ids returned by the main query.
    305307     */
    306308    public function populate_group_member_extras( $query, $user_ids_sql ) {
     
    336338     * @since BuddyPress (2.1.0)
    337339     *
    338      * @param BP_User_Query $query BP_User_Query object.
    339      * @param array $gm_ids array of group member ids.
     340     * @param BP_User_Query $query  BP_User_Query object.
     341     * @param array         $gm_ids array of group member ids.
     342     *
    340343     * @return array
    341344     */
Note: See TracChangeset for help on using the changeset viewer.