Changeset 7398 for trunk/bp-activity/bp-activity-classes.php
- Timestamp:
- 10/08/2013 08:58:00 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-classes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r7393 r7398 217 217 * Get activity items, as specified by parameters 218 218 * 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 * 219 224 * @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). 224 231 * @string $sort ASC or DESC. Default: 'DESC'. 225 232 * @array $exclude Array of activity IDs to exclude. Default: false. 226 233 * @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'. 233 244 * } 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 235 248 */ 236 249 public static function get( $args = array() ) { … … 880 893 * @since BuddyPress (1.3) 881 894 * 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. 883 908 * @return string The filter clause, for use in a SQL query. 884 909 */
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)