- Timestamp:
- 06/02/2015 05:21:07 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-member-suggestions.php
r9819 r9906 1 1 <?php 2 2 /** 3 * BuddyPress Groups Classes 3 * BuddyPress Groups Classes. 4 4 * 5 5 * @package BuddyPress … … 23 23 * @access protected 24 24 * @var array $args { 25 * @type int $group_idPositive integers will restrict the search to members in that group.26 * Negative integers will restrict the search to members in every other group.27 * @type int $limitMaximum number of results to display. Default: 16.28 * @type bool $only_friends If true, only match the current user's friends. Default: false.29 * @type string $term The suggestion service will try to find results that contain this string.30 * Mandatory.25 * @type int $group_id Positive integers will restrict the search to members in that group. 26 * Negative integers will restrict the search to members in every other group. 27 * @type int $limit Maximum number of results to display. Default: 16. 28 * @type bool $only_friends If true, only match the current user's friends. Default: false. 29 * @type string $term The suggestion service will try to find results that contain this string. 30 * Mandatory. 31 31 * } 32 32 */ … … 43 43 * Validate and sanitise the parameters for the suggestion service query. 44 44 * 45 * @since BuddyPress (2.1.0) 46 * 45 47 * @return true|WP_Error If validation fails, return a WP_Error object. On success, return true (bool). 46 * @since BuddyPress (2.1.0)47 48 */ 48 49 public function validate() { … … 88 89 * Find and return a list of username suggestions that match the query. 89 90 * 91 * @since BuddyPress (2.1.0) 92 * 90 93 * @return array|WP_Error Array of results. If there were problems, returns a WP_Error object. 91 * @since BuddyPress (2.1.0)92 94 */ 93 95 public function get_suggestions() {
Note: See TracChangeset
for help on using the changeset viewer.