Changeset 7403
- Timestamp:
- 10/08/2013 08:58:25 PM (11 years ago)
- Location:
- trunk/bp-activity
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r7398 r7403 224 224 * @param array $args { 225 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). 231 * @string $sort ASC or DESC. Default: 'DESC'. 232 * @array $exclude Array of activity IDs to exclude. Default: false. 233 * @array $in Array of ids to limit query by (IN). Default: false. 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. 226 * @type int $page Which page of results to fetch. Using page=1 227 * without per_page will result in no pagination. 228 * Default: 1. 229 * @type int|bool $per_page Number of results per page. Default: 25. 230 * @type int|bool $max Maximum number of results to return. 231 * Default: false (unlimited). 232 * @type string $sort ASC or DESC. Default: 'DESC'. 233 * @type array $exclude Array of activity IDs to exclude. 234 * Default: false. 235 * @type array $in Array of ids to limit query by (IN). 236 * Default: false. 237 * @type array $meta_query An array of meta_query conditions. 238 * See WP_Meta_Query::queries for description. 239 * @type array $filter See BP_Activity_Activity::get_filter_sql(). 240 * @type string $search_terms Limit results by a search term. 241 * Default: false. 242 * @type bool $display_comments Whether to include activity comments. 243 * Default: false. 244 * @type bool $show_hidden Whether to show items marked hide_sitewide. 240 245 * Default: false. 241 * @bool $show_hidden Whether to show items marked hide_sitewide. 242 * Default: false. 243 * @string $spam Spam status. Default: 'ham_only'. 246 * @type string $spam Spam status. Default: 'ham_only'. 244 247 * } 245 248 * @return array The array returned has two keys: -
trunk/bp-activity/bp-activity-functions.php
r7398 r7403 988 988 * All arguments and defaults are shared with BP_Activity_Activity::get(), 989 989 * except for the following: 990 * @ string|int|array Single activity ID, comma-separated list of IDs, or991 * array of IDs.990 * @type string|int|array Single activity ID, comma-separated list of IDs, 991 * or array of IDs. 992 992 * } 993 993 * @return array $activity See BP_Activity_Activity::get() for description. … … 1033 1033 * @param array $args { 1034 1034 * An array of arguments. 1035 * @int|bool $id Pass an activity ID to update an existing item, or false 1036 * to create a new item. Default: false. 1037 * @string $action Optional. The activity action/description, typically 1038 * something like "Joe posted an update". 1039 * @string $content Optional. The content of the activity item. 1040 * @string $component The unique name of the component associated with the 1041 * activity item - 'groups', 'profile', etc. 1042 * @string $type The specific activity type, used for directory filtering. 1043 * 'new_blog_post', 'activity_update', etc. 1044 * @string $primary_link Optional. The URL for this item, as used in RSS 1045 * feeds. Defaults to the URL for this activity 1046 * item's permalink page. 1047 * @int|bool $user_id Optional. The ID of the user associated with the 1048 * activity item. May be set to false or 0 if the item 1049 * is not related to any user. Default: the ID of the 1050 * currently logged-in user. 1051 * @int $item_id Optional. The ID of the associated item. 1052 * @int $secondary_item_id Optional. The ID of a secondary associated item. 1053 * @string $date_recorded Optional. The GMT time, in Y-m-d h:i:s format, 1054 * when the item was recorded. Defaults to the 1055 * current time. 1056 * @bool $hide_sitewide Should the item be hidden on sitewide streams? 1057 * Default: false. 1058 * @bool $is_spam Should the item be marked as spam? Default: false. 1035 * @type int|bool $id Pass an activity ID to update an existing item, or 1036 * false to create a new item. Default: false. 1037 * @type string $action Optional. The activity action/description, typically 1038 * something like "Joe posted an update". 1039 * @type string $content Optional. The content of the activity item. 1040 * @type string $component The unique name of the component associated with 1041 * the activity item - 'groups', 'profile', etc. 1042 * @type string $type The specific activity type, used for directory 1043 * filtering. 'new_blog_post', 'activity_update', etc. 1044 * @type string $primary_link Optional. The URL for this item, as used in 1045 * RSS feeds. Defaults to the URL for this 1046 * activity item's permalink page. 1047 * @type int|bool $user_id Optional. The ID of the user associated with the 1048 * activity item. May be set to false or 0 if the 1049 * item is not related to any user. Default: the ID 1050 * of the currently logged-in user. 1051 * @type int $item_id Optional. The ID of the associated item. 1052 * @type int $secondary_item_id Optional. The ID of a secondary associated 1053 * item. 1054 * @type string $date_recorded Optional. The GMT time, in Y-m-d h:i:s format, 1055 * when the item was recorded. Defaults to the 1056 * current time. 1057 * @type bool $hide_sitewide Should the item be hidden on sitewide streams? 1058 * Default: false. 1059 * @type bool $is_spam Should the item be marked as spam? Default: false. 1059 1060 * } 1060 1061 * @return int|bool The ID of the activity on success. False on error. … … 1134 1135 * 1135 1136 * @param array $args { 1136 * @ string $content The content of the activity update.1137 * @ int $user_id Optional. Defaults to the logged-in user.1137 * @type string $content The content of the activity update. 1138 * @type int $user_id Optional. Defaults to the logged-in user. 1138 1139 * } 1139 1140 * @return int $activity_id The activity id … … 1196 1197 * 1197 1198 * @param array $args { 1198 * @ int $id Optional. Pass an ID to update an existing comment.1199 * @ string $content The content of the comment.1200 * @ int $user_id Optional. The ID of the user making the comment. Defaults1201 * to the ID of the logged-in user.1202 * @ int $activity_id The ID of the "root" activity item, ie the oldest1203 * ancestor of the comment.1204 * @ int $parent_id Optional. The ID of the parent activity item, ie the1205 * item to which the comment is an immediate reply. If1206 * not provided, this value defaults to the $activity_id.1199 * @type int $id Optional. Pass an ID to update an existing comment. 1200 * @type string $content The content of the comment. 1201 * @type int $user_id Optional. The ID of the user making the comment. 1202 * Defaults to the ID of the logged-in user. 1203 * @type int $activity_id The ID of the "root" activity item, ie the oldest 1204 * ancestor of the comment. 1205 * @type int $parent_id Optional. The ID of the parent activity item, ie the 1206 * item to which the comment is an immediate reply. If 1207 * not provided, this value defaults to the $activity_id. 1207 1208 * } 1208 1209 * @return int|bool The ID of the comment on success, otherwise false.
Note: See TracChangeset
for help on using the changeset viewer.