Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/08/2013 08:58:00 PM (13 years ago)
Author:
boonebgorges
Message:

Inline docs improvements in bp-activity-functions.php and -classes.php

See #5022

File:
1 edited

Legend:

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

    r7393 r7398  
    217217         * Get activity items, as specified by parameters
    218218         *
     219         * @see BP_Activity_Activity::get_filter_sql() for a description of the
     220         *      'filter' parameter.
     221         * @see WP_Meta_Query::queries for a description of the 'meta_query'
     222         *      parameter format.
     223         *
    219224         * @param array $args {
    220          *     An array of arguments. Optional.
    221          *     @int $page The current page number. Default: 1.
    222          *     @int $per_page The number of items to display per page. Default: 25.
    223          *     @int $max Maximum number of items to show. Default: false.
     225         *     An array of arguments. All items are optional.
     226         *     @int $page Which page of results to fetch. Using page=1 without
     227         *                per_page will result in no pagination. Default: 1.
     228         *     @int|bool $per_page Number of results per page. Default: 25.
     229         *     @int|bool $max Maximum number of results to return.
     230         *                    Default: false (unlimited).
    224231         *     @string $sort ASC or DESC. Default: 'DESC'.
    225232         *     @array $exclude Array of activity IDs to exclude. Default: false.
    226233         *     @array $in Array of ids to limit query by (IN). Default: false.
    227          *     @array $meta_query
    228          *     @array $filter
    229          *     @string $search_terms Limit results by a search term. Default: false.
    230          *     @bool $display_comments Whether to include activity comments. Default: false.
    231          *     @bool $show_hidden Whether to show items marked hide_sitewide. Default: false.
    232          *     @string $spam Spam status. Default: 'ham_only'
     234         *     @array $meta_query An array of meta_query conditions.
     235         *                        See WP_Meta_Query::queries for a description.
     236         *     @array $filter See BP_Activity_Activity::get_filter_sql().
     237         *     @string $search_terms Limit results by a search term.
     238         *                           Default: false.
     239         *     @bool $display_comments Whether to include activity comments.
     240         *                             Default: false.
     241         *     @bool $show_hidden Whether to show items marked hide_sitewide.
     242         *                        Default: false.
     243         *     @string $spam Spam status. Default: 'ham_only'.
    233244         * }
    234          * @return array
     245         * @return array The array returned has two keys:
     246         *     - 'total' is the count of located activities
     247         *     - 'activities' is an array of the located activities
    235248         */
    236249        public static function get( $args = array() ) {
     
    880893         * @since BuddyPress (1.3)
    881894         *
    882          * @param array $filter_array Multidimensional array of fields to filter and values.
     895         * @param array $filter_array Fields and values to filter by. Should be
     896         *     in the format:
     897         *         $filter_array = array(
     898         *             'filter1' => $value,
     899         *             'filter2' => $value,
     900         *         )
     901         *     Possible filters are as follows. Each can be either a single
     902         *     string, a comma-separated list, or an array of values.
     903         *       - 'user_id' User ID(s)
     904         *       - 'object' Corresponds to the 'component' column in the database.
     905         *       - 'action' Corresponds to the 'type' column in the database.
     906         *       - 'primary_id' Corresponds to the 'item_id' column in the database.
     907         *       - 'secondary_id' Corresponds to the 'secondary_item_id' column in the database.
    883908         * @return string The filter clause, for use in a SQL query.
    884909         */
Note: See TracChangeset for help on using the changeset viewer.