| | 945 | /** |
| | 946 | * Retrieve sitewide activity |
| | 947 | * |
| | 948 | * You should use bp_activity_get() instead |
| | 949 | * |
| | 950 | * @since BuddyPress (1.0) |
| | 951 | * @deprecated BuddyPress (1.2) |
| | 952 | * |
| | 953 | * @param array $args |
| | 954 | * |
| | 955 | * @uses BP_Activity_Activity::get() {@link BP_Activity_Activity} |
| | 956 | * |
| | 957 | * @return object $activity The activity/activities object |
| | 958 | */ |
| | 959 | function bp_activity_get_sitewide( $args = '' ) { |
| | 960 | $defaults = array( |
| | 961 | 'max' => false, // Maximum number of results to return |
| | 962 | 'page' => 1, // page 1 without a per_page will result in no pagination. |
| | 963 | 'per_page' => false, // results per page |
| | 964 | 'sort' => 'DESC', // sort ASC or DESC |
| | 965 | 'display_comments' => false, // false for no comments. 'stream' for within stream display, 'threaded' for below each activity item |
| | 966 | |
| | 967 | 'search_terms' => false, // Pass search terms as a string |
| | 968 | 'show_hidden' => false, // Show activity items that are hidden site-wide? |
| | 969 | |
| | 970 | /** |
| | 971 | * Pass filters as an array: |
| | 972 | * array( |
| | 973 | * 'user_id' => false, // user_id to filter on |
| | 974 | * 'object' => false, // object to filter on e.g. groups, profile, status, friends |
| | 975 | * 'action' => false, // action to filter on e.g. new_wire_post, new_forum_post, profile_updated |
| | 976 | * 'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. |
| | 977 | * 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id |
| | 978 | * ); |
| | 979 | */ |
| | 980 | 'filter' => array() |
| | 981 | ); |
| | 982 | |
| | 983 | $args = wp_parse_args( $args, $defaults ); |
| | 984 | |
| | 985 | return apply_filters( 'bp_activity_get_sitewide', BP_Activity_Activity::get( $args ), &$r ); |
| | 986 | } |
| | 987 | |