Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/19/2013 09:41:08 PM (12 years ago)
Author:
djpaul
Message:

Quick audit of existing phpDoc @param, @return, and @since parameters. Fixes #5031

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-functions.php

    r6659 r7228  
    195195 *
    196196 * @package BuddyPress Core
    197  * @param $field The ID of the field, or the $name of the field.
    198  * @param $user_id The ID of the user
    199  * @param $value The value for the field you want to set for the user.
     197 * @param int|string $field The ID of the field, or the $name of the field.
     198 * @param int|$user_id The ID of the user
     199 * @param mixed The value for the field you want to set for the user.
    200200 * @global BuddyPress $bp The one true BuddyPress instance
    201201 * @uses xprofile_get_field_id_from_name() Gets the ID for the field based on the name.
    202  * @return true on success, false on failure.
     202 * @return bool True on success, false on failure.
    203203 */
    204204function xprofile_set_field_data( $field, $user_id, $value, $is_required = false ) {
     
    322322 *
    323323 * @package BuddyPress Core
    324  * @param $field_name The name of the field to get the ID for.
     324 * @param string $field_name The name of the field to get the ID for.
    325325 * @return int $field_id on success, false on failure.
    326326 */
     
    333333 *
    334334 * @package BuddyPress Core
    335  * @param $user_id User ID of the user to get random data for
    336  * @param $exclude_fullname whether or not to exclude the full name field as random data.
     335 * @param int $user_id User ID of the user to get random data for
     336 * @param bool $exclude_fullname Optional; whether or not to exclude the full name field as random data. Defaults to true.
    337337 * @global BuddyPress $bp The one true BuddyPress instance
    338338 * @global $wpdb WordPress DB access object.
    339339 * @global $current_user WordPress global variable containing current logged in user information
    340340 * @uses xprofile_format_profile_field() Formats profile field data so it is suitable for display.
    341  * @return $field_data The fetched random data for the user.
     341 * @return string|bool The fetched random data for the user, or false if no data or no match.
    342342 */
    343343function xprofile_get_random_profile_data( $user_id, $exclude_fullname = true ) {
     
    359359 *
    360360 * @package BuddyPress Core
    361  * @param $field_type The type of field: datebox, selectbox, textbox etc
    362  * @param $field_value The actual value
     361 * @param string $field_type The type of field: datebox, selectbox, textbox etc
     362 * @param string $field_value The actual value
    363363 * @uses bp_format_time() Formats a time value based on the WordPress date format setting
    364  * @return $field_value The formatted value
     364 * @return string|bool The formatted value, or false if value is empty
    365365 */
    366366function xprofile_format_profile_field( $field_type, $field_value ) {
     
    388388 *
    389389 * @package BuddyPress Core
    390  * @param $directory The root directory name
    391  * @param $user_id The user ID.
     390 * @param string $directory The root directory name. Optional.
     391 * @param int $user_id The user ID. Optional.
    392392 * @return array() containing the path and URL plus some other settings.
    393393 */
     
    485485 *
    486486 * @package BuddyPress XProfile
    487  * @param $user_id The ID of the deleted user
     487 * @param int $user_id The ID of the deleted user
    488488 */
    489489function xprofile_remove_data( $user_id ) {
     
    630630 * @since BuddyPress (1.5)
    631631 *
    632  * @return str The field name
     632 * @return string The field name
    633633 */
    634634function bp_xprofile_fullname_field_name() {
Note: See TracChangeset for help on using the changeset viewer.