- Timestamp:
- 05/03/2015 10:51:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/classes/class-bp-activity-activity.php
r9833 r9834 72 72 73 73 /** 74 * Description of the activity, eg 'Alex updated his profile.' 74 * Description of the activity, eg 'Alex updated his profile.'. 75 75 * 76 76 * @var string … … 259 259 260 260 /** 261 * Get activity items, as specified by parameters 261 * Get activity items, as specified by parameters. 262 262 * 263 263 * @see BP_Activity_Activity::get_filter_sql() for a description of the … … 859 859 * @since BuddyPress (2.2.0) 860 860 * 861 * @param mixed $scope The activity scope. Accepts string or array of scopes 861 * @param mixed $scope The activity scope. Accepts string or array of scopes. 862 862 * @param array $r Current activity arguments. Same as those of BP_Activity_Activity::get(), 863 863 * but merged with defaults. 864 864 * 865 * @return array 'sql' WHERE SQL string and 'override' activity args 865 * @return array 'sql' WHERE SQL string and 'override' activity args. 866 866 */ 867 867 public static function get_scope_query_sql( $scope = false, $r = array() ) { … … 917 917 * @type array $override Optional. Override existing activity arguments passed by $r. 918 918 * } 919 * @param array $r Current activity arguments passed in BP_Activity_Activity::get() 919 * @param array $r Current activity arguments passed in BP_Activity_Activity::get(). 920 920 */ 921 921 $scope_args = apply_filters( "bp_activity_set_{$scope}_scope_args", array(), $r ); … … 964 964 * @deprecated Use BP_Activity_Activity::get() with an 'in' parameter instead. 965 965 * 966 * @param mixed $activity_ids Array or comma-separated string of activity IDs to retrieve 967 * @param int|bool $max Maximum number of results to return. (Optional; default is no maximum) 968 * @param int $page The set of results that the user is viewing. Used in pagination. (Optional; default is 1) 969 * @param int $per_page Specifies how many results per page. Used in pagination. (Optional; default is 25) 970 * @param string $sort MySQL column sort; ASC or DESC. (Optional; default is DESC) 971 * @param bool $display_comments Retrieve an activity item's associated comments or not. (Optional; default is false) 966 * @param mixed $activity_ids Array or comma-separated string of activity IDs to retrieve. 967 * @param int|bool $max Maximum number of results to return. (Optional; default is no maximum). 968 * @param int $page The set of results that the user is viewing. Used in pagination. (Optional; default is 1). 969 * @param int $per_page Specifies how many results per page. Used in pagination. (Optional; default is 25). 970 * @param string $sort MySQL column sort; ASC or DESC. (Optional; default is DESC). 971 * @param bool $display_comments Retrieve an activity item's associated comments or not. (Optional; default is false). 972 * 972 973 * @return array 973 974 */ … … 980 981 * Get the first activity ID that matches a set of criteria. 981 982 * 982 * @param int $user_id User ID to filter by 983 * @param string $component Component to filter by 984 * @param string $type Activity type to filter by 985 * @param int $item_id Associated item to filter by 986 * @param int $secondary_item_id Secondary associated item to filter by 987 * @param string $action Action to filter by 988 * @param string $content Content to filter by 989 * @param string $date_recorded Date to filter by 983 * @param int $user_id User ID to filter by. 984 * @param string $component Component to filter by. 985 * @param string $type Activity type to filter by. 986 * @param int $item_id Associated item to filter by. 987 * @param int $secondary_item_id Secondary associated item to filter by. 988 * @param string $action Action to filter by. 989 * @param string $content Content to filter by. 990 * @param string $date_recorded Date to filter by. 990 991 * 991 992 * @todo Should parameters be optional? … … 1152 1153 1153 1154 /** 1154 * Action to allow intercepting activity items to be deleted 1155 * Action to allow intercepting activity items to be deleted. 1155 1156 * 1156 1157 * @since BuddyPress (2.3.0) 1157 1158 * 1158 * @param array $activities Array of activities 1159 * @param array $r Array of parsed arguments 1159 * @param array $activities Array of activities. 1160 * @param array $r Array of parsed arguments. 1160 1161 */ 1161 1162 do_action_ref_array( 'bp_activity_before_delete', array( $activities, $r ) ); … … 1170 1171 1171 1172 /** 1172 * Action to allow intercepting activity items just deleted 1173 * Action to allow intercepting activity items just deleted. 1173 1174 * 1174 1175 * @since BuddyPress (2.3.0) 1175 1176 * 1176 * @param array $activities Array of activities 1177 * @param array $r Array of parsed arguments 1177 * @param array $activities Array of activities. 1178 * @param array $r Array of parsed arguments. 1178 1179 */ 1179 1180 do_action_ref_array( 'bp_activity_after_delete', array( $activities, $r ) ); … … 1273 1274 * @since BuddyPress (1.2.0) 1274 1275 * 1275 * @global wpdb $wpdb WordPress database object 1276 * @global wpdb $wpdb WordPress database object. 1276 1277 * 1277 1278 * @param array $activities Activities to fetch comments for. … … 1459 1460 * @since BuddyPress (1.2.0) 1460 1461 * 1461 * @global wpdb $wpdb WordPress database object 1462 * 1463 * @param int $parent_id ID of an activity or activity comment 1464 * @param int $left Node boundary start for activity or activity comment 1465 * @return int Right Node boundary of activity or activity comment 1462 * @global wpdb $wpdb WordPress database object. 1463 * 1464 * @param int $parent_id ID of an activity or activity comment. 1465 * @param int $left Node boundary start for activity or activity comment. 1466 * @return int Right Node boundary of activity or activity comment. 1466 1467 */ 1467 1468 public static function rebuild_activity_comment_tree( $parent_id, $left = 1 ) { … … 1760 1761 * @see http://php.net/manual/en/function.array-replace-recursive.php#109390 1761 1762 * 1762 * @param array $base Array with keys needing to be replaced 1763 * @param array $replacements Array with the replaced keys 1763 * @param array $base Array with keys needing to be replaced. 1764 * @param array $replacements Array with the replaced keys. 1764 1765 * 1765 1766 * @return array
Note: See TracChangeset
for help on using the changeset viewer.