Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/03/2015 10:51:31 PM (11 years ago)
Author:
tw2113
Message:

Punctuation is a key element to complete sentences.

See #6396.

File:
1 edited

Legend:

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

    r9833 r9834  
    7272
    7373        /**
    74          * Description of the activity, eg 'Alex updated his profile.'
     74         * Description of the activity, eg 'Alex updated his profile.'.
    7575         *
    7676         * @var string
     
    259259
    260260        /**
    261          * Get activity items, as specified by parameters
     261         * Get activity items, as specified by parameters.
    262262         *
    263263         * @see BP_Activity_Activity::get_filter_sql() for a description of the
     
    859859         * @since BuddyPress (2.2.0)
    860860         *
    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.
    862862         * @param  array $r      Current activity arguments. Same as those of BP_Activity_Activity::get(),
    863863         *                       but merged with defaults.
    864864         *
    865          * @return array 'sql' WHERE SQL string and 'override' activity args
     865         * @return array 'sql' WHERE SQL string and 'override' activity args.
    866866         */
    867867        public static function get_scope_query_sql( $scope = false, $r = array() ) {
     
    917917                         *     @type array $override Optional. Override existing activity arguments passed by $r.
    918918                         * }
    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().
    920920                         */
    921921                        $scope_args = apply_filters( "bp_activity_set_{$scope}_scope_args", array(), $r );
     
    964964         * @deprecated Use BP_Activity_Activity::get() with an 'in' parameter instead.
    965965         *
    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         *
    972973         * @return array
    973974         */
     
    980981         * Get the first activity ID that matches a set of criteria.
    981982         *
    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.
    990991         *
    991992         * @todo Should parameters be optional?
     
    11521153
    11531154                /**
    1154                  * Action to allow intercepting activity items to be deleted
     1155                 * Action to allow intercepting activity items to be deleted.
    11551156                 *
    11561157                 * @since BuddyPress (2.3.0)
    11571158                 *
    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.
    11601161                 */
    11611162                do_action_ref_array( 'bp_activity_before_delete', array( $activities, $r ) );
     
    11701171
    11711172                /**
    1172                  * Action to allow intercepting activity items just deleted
     1173                 * Action to allow intercepting activity items just deleted.
    11731174                 *
    11741175                 * @since BuddyPress (2.3.0)
    11751176                 *
    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.
    11781179                 */
    11791180                do_action_ref_array( 'bp_activity_after_delete', array( $activities, $r ) );
     
    12731274         * @since BuddyPress (1.2.0)
    12741275         *
    1275          * @global wpdb $wpdb WordPress database object
     1276         * @global wpdb $wpdb WordPress database object.
    12761277         *
    12771278         * @param array  $activities Activities to fetch comments for.
     
    14591460         * @since BuddyPress (1.2.0)
    14601461         *
    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.
    14661467         */
    14671468        public static function rebuild_activity_comment_tree( $parent_id, $left = 1 ) {
     
    17601761         * @see http://php.net/manual/en/function.array-replace-recursive.php#109390
    17611762         *
    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.
    17641765         *
    17651766         * @return array
Note: See TracChangeset for help on using the changeset viewer.