Skip to:
Content

BuddyPress.org

Changeset 11240


Ignore:
Timestamp:
11/05/2016 08:49:49 PM (10 years ago)
Author:
tw2113
Message:

Adds better documentation to arguments that are arrays and involved keys. See #7059.

Location:
trunk/src/bp-members
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-template.php

    r11154 r11240  
    10021002 * @since 1.2.0
    10031003 *
    1004  * @param array|string $args Array of arguments for latest update.
     1004 * @param array|string $args {@see bp_get_member_latest_update()}.
    10051005 */
    10061006function bp_member_latest_update( $args = '' ) {
     
    15251525 * @see bp_get_loggedin_user_avatar() for a description of params.
    15261526 *
    1527  * @param array|string $args Array of arguments for logged in user avatar.
     1527 * @param array|string $args {@see bp_get_loggedin_user_avatar()}.
    15281528 */
    15291529function bp_loggedin_user_avatar( $args = '' ) {
     
    15801580 * @see bp_get_displayed_user_avatar() for a description of params.
    15811581 *
    1582  * @param array|string $args Array of arguments for displayed user avatar.
     1582 * @param array|string $args {@see bp_get_displayed_user_avatar()}.
    15831583 */
    15841584function bp_displayed_user_avatar( $args = '' ) {
  • trunk/src/bp-members/classes/class-bp-signup.php

    r10800 r11240  
    123123         * @since 2.0.0
    124124         *
    125          * @param array $args the argument to retrieve desired signups.
     125         * @param array $args {
     126         *     The argument to retrieve desired signups.
     127         *     @type int         $offset         Offset amount. Default 0.
     128         *     @type int         $number         How many to fetch. Default 1.
     129         *     @type bool|string $usersearch     Whether or not to search for a username. Default false.
     130         *     @type string      $orderby        Order By parameter. Default 'signup_id'.
     131         *     @type string      $order          Order direction. Default 'DESC'.
     132         *     @type bool        $include        Whether or not to include more specific query params.
     133         *     @type string      $activation_key Activation key to search for.
     134         *     @type string      $user_login     Specific user login to return.
     135         * }
    126136         * @return array {
    127137         *     @type array $signups Located signups.
     
    262272
    263273                return array( 'signups' => $paged_signups, 'total' => $total_signups );
     274
    264275        }
    265276
     
    269280         * @since 2.0.0
    270281         *
    271          * @param array $args Array of arguments for signup addition.
    272          * @return int|bool ID of newly created signup on success, false on
    273          *                  failure.
     282         * @param array $args {
     283         *     Array of arguments for signup addition.
     284         *     @type string     $domain         New user's domain.
     285         *     @type string     $path           New user's path.
     286         *     @type string     $title          New user's title.
     287         *     @type string     $user_login     New user's user_login.
     288         *     @type string     $user_email     New user's email address.
     289         *     @type int|string $registered     Time the user registered.
     290         *     @type string     $activation_key New user's activation key.
     291         *     @type string     $meta           New user's user meta.
     292         * }
     293         * @return int|bool ID of newly created signup on success, false on failure.
    274294         */
    275295        public static function add( $args = array() ) {
     
    490510         * @since 2.0.0
    491511         *
    492          * @param array $args Array of arguments for the signup update.
     512         * @param array $args {
     513         *     Array of arguments for the signup update.
     514         *     @type int $signup_id User signup ID.
     515         *     @type array $meta Meta to update.
     516         * }
    493517         * @return int The signup id.
    494518         */
Note: See TracChangeset for help on using the changeset viewer.