Changeset 7228 for trunk/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 06/19/2013 09:41:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-functions.php
r6659 r7228 195 195 * 196 196 * @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 user199 * @param $valueThe 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. 200 200 * @global BuddyPress $bp The one true BuddyPress instance 201 201 * @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. 203 203 */ 204 204 function xprofile_set_field_data( $field, $user_id, $value, $is_required = false ) { … … 322 322 * 323 323 * @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. 325 325 * @return int $field_id on success, false on failure. 326 326 */ … … 333 333 * 334 334 * @package BuddyPress Core 335 * @param $user_id User ID of the user to get random data for336 * @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. 337 337 * @global BuddyPress $bp The one true BuddyPress instance 338 338 * @global $wpdb WordPress DB access object. 339 339 * @global $current_user WordPress global variable containing current logged in user information 340 340 * @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. 342 342 */ 343 343 function xprofile_get_random_profile_data( $user_id, $exclude_fullname = true ) { … … 359 359 * 360 360 * @package BuddyPress Core 361 * @param $field_type The type of field: datebox, selectbox, textbox etc362 * @param $field_value The actual value361 * @param string $field_type The type of field: datebox, selectbox, textbox etc 362 * @param string $field_value The actual value 363 363 * @uses bp_format_time() Formats a time value based on the WordPress date format setting 364 * @return $field_value The formatted value364 * @return string|bool The formatted value, or false if value is empty 365 365 */ 366 366 function xprofile_format_profile_field( $field_type, $field_value ) { … … 388 388 * 389 389 * @package BuddyPress Core 390 * @param $directory The root directory name391 * @param $user_id The user ID.390 * @param string $directory The root directory name. Optional. 391 * @param int $user_id The user ID. Optional. 392 392 * @return array() containing the path and URL plus some other settings. 393 393 */ … … 485 485 * 486 486 * @package BuddyPress XProfile 487 * @param $user_id The ID of the deleted user487 * @param int $user_id The ID of the deleted user 488 488 */ 489 489 function xprofile_remove_data( $user_id ) { … … 630 630 * @since BuddyPress (1.5) 631 631 * 632 * @return str The field name632 * @return string The field name 633 633 */ 634 634 function bp_xprofile_fullname_field_name() {
Note: See TracChangeset
for help on using the changeset viewer.