Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/15/2016 02:30:51 AM (10 years ago)
Author:
boonebgorges
Message:

Normalize documentation and array definition whitespace after [10766].

See #6784.

File:
1 edited

Legend:

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

    r10766 r10767  
    688688     * @param array $args {
    689689     *     Array of parameters. All items are optional.
    690      *     @type string       $type              Optional. Shorthand for certain orderby/
    691      *                                           order combinations. 'newest', 'active', 'popular',
    692      *                                           'alphabetical', 'random'. When present, will override
    693      *                                           orderby and order params. Default: null.
    694      *     @type string       $orderby           Optional. Property to sort by.
    695      *                                           'date_created', 'last_activity', 'total_member_count',
    696      *                                           'name', 'random'. Default: 'date_created'.
    697      *     @type string       $order             Optional. Sort order. 'ASC' or 'DESC'.
    698      *                                           Default: 'DESC'.
    699      *     @type int          $per_page          Optional. Number of items to return per page
    700      *                                           of results. Default: null (no limit).
    701      *     @type int          $page              Optional. Page offset of results to return.
    702      *                                           Default: null (no limit).
    703      *     @type int          $user_id           Optional. If provided, results will be limited to groups
    704      *                                           of which the specified user is a member. Default: null.
    705      *     @type string       $search_terms      Optional. If provided, only groups whose names
    706      *                                           or descriptions match the search terms will be
    707      *                                           returned. Default: false.
     690     *     @type string       $type               Optional. Shorthand for certain orderby/order combinations.
     691     *                                            'newest', 'active', 'popular', 'alphabetical', 'random'.
     692     *                                            When present, will override orderby and order params.
     693     *                                            Default: null.
     694     *     @type string       $orderby            Optional. Property to sort by. 'date_created', 'last_activity',
     695     *                                            'total_member_count', 'name', 'random'. Default: 'date_created'.
     696     *     @type string       $order              Optional. Sort order. 'ASC' or 'DESC'. Default: 'DESC'.
     697     *     @type int          $per_page           Optional. Number of items to return per page of results.
     698     *                                            Default: null (no limit).
     699     *     @type int          $page               Optional. Page offset of results to return.
     700     *                                            Default: null (no limit).
     701     *     @type int          $user_id            Optional. If provided, results will be limited to groups
     702     *                                            of which the specified user is a member. Default: null.
     703     *     @type string       $search_terms       Optional. If provided, only groups whose names or descriptions
     704     *                                            match the search terms will be returned. Default: false.
    708705     *     @type array|string $group_type         Array or comma-separated list of group types to limit results to.
    709706     *     @type array|string $group_type__in     Array or comma-separated list of group types to limit results to.
    710707     *     @type array|string $group_type__not_in Array or comma-separated list of group types that will be
    711708     *                                            excluded from results.
    712      *     @type array        $meta_query        Optional. An array of meta_query conditions.
    713      *                                           See {@link WP_Meta_Query::queries} for description.
    714      *     @type array|string $value             Optional. Array or comma-separated list of group IDs.
    715      *                                           Results will be limited to groups within the
    716      *                                           list. Default: false.
    717      *     @type bool         $populate_extras   Whether to fetch additional information
    718      *                                           (such as member count) about groups. Default: true.
    719      *     @type array|string $exclude           Optional. Array or comma-separated list of group IDs.
    720      *                                           Results will exclude the listed groups. Default: false.
    721      *     @type bool         $update_meta_cache Whether to pre-fetch groupmeta for
    722      *                                           the returned groups. Default: true.
    723      *     @type bool         $show_hidden       Whether to include hidden groups in results. Default: false.
     709     *     @type array        $meta_query         Optional. An array of meta_query conditions.
     710     *                                            See {@link WP_Meta_Query::queries} for description.
     711     *     @type array|string $value              Optional. Array or comma-separated list of group IDs. Results
     712     *                                            will be limited to groups within the list. Default: false.
     713     *     @type bool         $populate_extras    Whether to fetch additional information
     714     *                                            (such as member count) about groups. Default: true.
     715     *     @type array|string $exclude            Optional. Array or comma-separated list of group IDs.
     716     *                                            Results will exclude the listed groups. Default: false.
     717     *     @type bool         $update_meta_cache  Whether to pre-fetch groupmeta for the returned groups.
     718     *                                            Default: true.
     719     *     @type bool         $show_hidden        Whether to include hidden groups in results. Default: false.
    724720     * }
    725721     * @return array {
     
    754750
    755751        $defaults = array(
    756             'type'              => null,
    757             'orderby'           => 'date_created',
    758             'order'             => 'DESC',
    759             'per_page'          => null,
    760             'page'              => null,
    761             'user_id'           => 0,
    762             'search_terms'      => false,
     752            'type'               => null,
     753            'orderby'            => 'date_created',
     754            'order'              => 'DESC',
     755            'per_page'           => null,
     756            'page'               => null,
     757            'user_id'            => 0,
     758            'search_terms'       => false,
    763759            'group_type'         => '',
    764760            'group_type__in'     => '',
    765761            'group_type__not_in' => '',
    766             'meta_query'        => false,
    767             'include'           => false,
    768             'populate_extras'   => true,
    769             'update_meta_cache' => true,
    770             'exclude'           => false,
    771             'show_hidden'       => false,
     762            'meta_query'         => false,
     763            'include'            => false,
     764            'populate_extras'    => true,
     765            'update_meta_cache'  => true,
     766            'exclude'            => false,
     767            'show_hidden'        => false,
    772768        );
    773769
Note: See TracChangeset for help on using the changeset viewer.