Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2015 05:21:07 AM (9 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-groups-member-suggestions.php

    r9819 r9906  
    11<?php
    22/**
    3  * BuddyPress Groups Classes
     3 * BuddyPress Groups Classes.
    44 *
    55 * @package BuddyPress
     
    2323     * @access protected
    2424     * @var array $args {
    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.
     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.
    3131     * }
    3232     */
     
    4343     * Validate and sanitise the parameters for the suggestion service query.
    4444     *
     45     * @since BuddyPress (2.1.0)
     46     *
    4547     * @return true|WP_Error If validation fails, return a WP_Error object. On success, return true (bool).
    46      * @since BuddyPress (2.1.0)
    4748     */
    4849    public function validate() {
     
    8889     * Find and return a list of username suggestions that match the query.
    8990     *
     91     * @since BuddyPress (2.1.0)
     92     *
    9093     * @return array|WP_Error Array of results. If there were problems, returns a WP_Error object.
    91      * @since BuddyPress (2.1.0)
    9294     */
    9395    public function get_suggestions() {
Note: See TracChangeset for help on using the changeset viewer.