Skip to:
Content

BuddyPress.org

Changeset 9254


Ignore:
Timestamp:
12/22/2014 08:43:13 PM (12 years ago)
Author:
r-a-y
Message:

Activity: Improve PHPDoc formatting for BP_Activity_Activity::get().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-classes.php

    r9213 r9254  
    260260         * @param array $args {
    261261         *     An array of arguments. All items are optional.
    262          *     @type int $page Which page of results to fetch. Using page=1
    263          *                     without per_page will result in no pagination.
    264          *                     Default: 1.
    265          *     @type int|bool $per_page Number of results per page. Default: 25.
    266          *     @type int|bool $max Maximum number of results to return.
    267          *                         Default: false (unlimited).
    268          *     @type string $sort ASC or DESC. Default: 'DESC'.
    269          *     @type array $exclude Array of activity IDs to exclude.
    270          *                          Default: false.
    271          *     @type array $in Array of ids to limit query by (IN).
    272          *                     Default: false.
    273          *     @type array $meta_query An array of meta_query conditions.
    274          *                             See WP_Meta_Query::queries for description.
    275          *     @type array $date_query An array of date_query conditions.
    276          *                             See first parameter of WP_Date_Query::__construct()
    277          *                             for description.
    278          *     @type array $filter See BP_Activity_Activity::get_filter_sql().
    279          *     @type string $search_terms Limit results by a search term.
    280          *                                Default: false.
    281          *     @type bool $display_comments Whether to include activity comments.
    282          *                                  Default: false.
    283          *     @type bool $show_hidden Whether to show items marked hide_sitewide.
    284          *                             Default: false.
    285          *     @type string $spam Spam status. Default: 'ham_only'.
    286          *     @type bool $update_meta_cache Whether to pre-fetch metadata for
    287          *           queried activity items. Default: true.
    288          *     @type string|bool $count_total If true, an additional DB query
    289          *           is run to count the total activity items for the query.
    290          *           Default: false.
     262         *
     263         *     @type int         $page              Which page of results to fetch. Using page=1 without per_page will result
     264         *                                          in no pagination. Default: 1.
     265         *     @type int|bool    $per_page          Number of results per page. Default: 25.
     266         *     @type int|bool    $max               Maximum number of results to return. Default: false (unlimited).
     267         *     @type string      $sort              ASC or DESC. Default: 'DESC'.
     268         *     @type array       $exclude           Array of activity IDs to exclude. Default: false.
     269         *     @type array       $in                Array of ids to limit query by (IN). Default: false.
     270         *     @type array       $meta_query        Array of meta_query conditions. See WP_Meta_Query::queries.
     271         *     @type array       $date_query        Array of date_query conditions. See first parameter of
     272         *                                          WP_Date_Query::__construct().
     273         *     @type array       $filter            See BP_Activity_Activity::get_filter_sql().
     274         *     @type string      $search_terms      Limit results by a search term. Default: false.
     275         *     @type bool        $display_comments  Whether to include activity comments. Default: false.
     276         *     @type bool        $show_hidden       Whether to show items marked hide_sitewide. Default: false.
     277         *     @type string      $spam              Spam status. Default: 'ham_only'.
     278         *     @type bool        $update_meta_cache Whether to pre-fetch metadata for queried activity items. Default: true.
     279         *     @type string|bool $count_total       If true, an additional DB query is run to count the total activity items
     280         *                                          for the query. Default: false.
    291281         * }
    292282         * @return array The array returned has two keys:
Note: See TracChangeset for help on using the changeset viewer.