- Timestamp:
- 06/02/2015 05:21:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-group-member-query.php
r9819 r9906 1 1 <?php 2 2 /** 3 * BuddyPress Groups Classes 3 * BuddyPress Groups Classes. 4 4 * 5 5 * @package BuddyPress … … 14 14 * 15 15 * 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. 18 18 * - *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. 20 20 * - *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. 22 22 * - *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). 24 24 * 25 25 * @since BuddyPress (1.8.0) 26 26 * 27 * @param array $args {27 * @param array $args { 28 28 * Array of arguments. Accepts all arguments from 29 29 * {@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'. 38 40 * } 39 41 */ … … 78 80 * 79 81 * @param array $include Existing group IDs in the $include parameter, 80 * as calculated in BP_User_Query.82 * as calculated in BP_User_Query. 81 83 * @return array 82 84 */ … … 298 300 * @since BuddyPress (1.8.0) 299 301 * 300 * @param BP_User_Query $query BP_User_Query object. Because we're301 * filtering the current object, we use $this inside of the302 * method instead.303 * @param string $user_ids_sql Sanitized, comma-separated string of304 * 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. 305 307 */ 306 308 public function populate_group_member_extras( $query, $user_ids_sql ) { … … 336 338 * @since BuddyPress (2.1.0) 337 339 * 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 * 340 343 * @return array 341 344 */
Note: See TracChangeset
for help on using the changeset viewer.