Changeset 10740 for trunk/src/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 05/07/2016 07:38:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-functions.php
r10434 r10740 25 25 * @since 2.1.0 26 26 * 27 * @param array $args See {@link BP_XProfile_Group::get()} for description of 28 * arguments. 27 * @param array $args See {@link BP_XProfile_Group::get()} for description of arguments. 29 28 * @return array $groups 30 29 */ … … 49 48 * @since 1.0.0 50 49 * 51 * @param array|string $args Array of arguments for field group insertion. 50 * @param array|string $args { 51 * Array of arguments for field group insertion. 52 * 53 * @type int|bool $field_group_id ID of the field group to insert into. 54 * @type string|bool $name Name of the group. 55 * @type string $description Field group description. 56 * @type bool $can_delete Whether or not the field group can be deleted. 57 * } 52 58 * @return boolean 53 59 */ … … 193 199 /** 194 200 * Insert or update an xprofile field. 201 * 202 * @since 1.1.0 195 203 * 196 204 * @param array|string $args { … … 274 282 * Get a profile field object. 275 283 * 284 * @since 1.1.0 285 * 276 286 * @param int|object $field ID of the field or object representing field data. 277 287 * @return BP_XProfile_Field|null Field object if found, otherwise null. … … 297 307 * Delete a profile field object. 298 308 * 309 * @since 1.1.0 310 * 299 311 * @param int|object $field_id ID of the field or object representing field data. 300 312 * @return bool Whether or not the field was deleted. … … 313 325 * When the field value is serialized, this function unserializes and filters 314 326 * each item in the array. 327 * 328 * @since 1.0.0 315 329 * 316 330 * @uses BP_XProfile_ProfileData::get_value_byid() Fetches the value based on the params passed. … … 374 388 * A simple function to set profile data for a specific field for a specific user. 375 389 * 390 * @since 1.0.0 391 * 376 392 * @uses xprofile_get_field_id_from_name() Gets the ID from the field based on the name. 377 393 * … … 455 471 * Set the visibility level for this field. 456 472 * 473 * @since 1.6.0 474 * 457 475 * @param int $field_id The ID of the xprofile field. 458 476 * @param int $user_id The ID of the user to whom the data belongs. … … 519 537 /** 520 538 * Delete XProfile field data. 539 * 540 * @since 1.1.0 521 541 * 522 542 * @param string $field Field to delete. … … 548 568 * Check if field is a required field. 549 569 * 570 * @since 1.1.0 571 * 550 572 * @param int $field_id ID of the field to check for. 551 573 * @return bool Whether or not field is required. … … 565 587 * Returns the ID for the field based on the field name. 566 588 * 567 * @package BuddyPress Core 589 * @since 1.0.0 590 * 568 591 * @param string $field_name The name of the field to get the ID for. 569 592 * @return int $field_id on success, false on failure. … … 575 598 /** 576 599 * Fetches a random piece of profile data for the user. 600 * 601 * @since 1.0.0 577 602 * 578 603 * @global BuddyPress $bp The one true BuddyPress instance. … … 612 637 * Formats a profile field according to its type. [ TODO: Should really be moved to filters ] 613 638 * 639 * @since 1.0.0 640 * 614 641 * @param string $field_type The type of field: datebox, selectbox, textbox etc. 615 642 * @param string $field_value The actual value. … … 634 661 /** 635 662 * Update the field position for a provided field. 663 * 664 * @since 1.1.0 636 665 * 637 666 * @param int $field_id ID of the field to update. … … 769 798 * Syncs Xprofile data to the standard built in WordPress profile data. 770 799 * 800 * @since 1.0.0 801 * 771 802 * @param int $user_id ID of the user to sync. 772 803 * @return bool … … 836 867 * usermeta table that this component uses. 837 868 * 869 * @since 1.0.0 870 * 838 871 * @param int $user_id The ID of the deleted user. 839 872 */ … … 849 882 /** 850 883 * Delete a piece of xprofile metadata. 884 * 885 * @since 1.5.0 851 886 * 852 887 * @param int $object_id ID of the object the metadata belongs to. … … 902 937 * underlying get_metadata() function. This is for backward compatibility. 903 938 * 939 * @since 1.5.0 940 * 904 941 * @param int $object_id ID of the object the metadata belongs to. 905 942 * @param string $object_type Type of object. 'group', 'field', or 'data'. … … 928 965 /** 929 966 * Update a piece of xprofile metadata. 967 * 968 * @since 1.5.0 930 969 * 931 970 * @param int $object_id ID of the object the metadata belongs to. … … 978 1017 * Updates the fieldgroup metadata. 979 1018 * 1019 * @since 1.5.0 1020 * 980 1021 * @param int $field_group_id Group ID for the group field belongs to. 981 1022 * @param string $meta_key Meta key to update. … … 990 1031 * Updates the field metadata. 991 1032 * 1033 * @since 1.5.0 1034 * 992 1035 * @param int $field_id Field ID to update. 993 1036 * @param string $meta_key Meta key to update. … … 1002 1045 * Updates the fielddata metadata. 1003 1046 * 1047 * @since 1.5.0 1048 * 1004 1049 * @param int $field_data_id Field ID to update. 1005 1050 * @param string $meta_key Meta key to update. … … 1088 1133 * Get visibility levels out of the $bp global. 1089 1134 * 1135 * @since 1.6.0 1136 * 1090 1137 * @return array 1091 1138 */ … … 1111 1158 * 1112 1159 * @since 1.6.0 1160 * 1113 1161 * @see BP_XProfile_Group::get() 1114 1162 * @uses apply_filters() Filter bp_xprofile_get_hidden_fields_for_user to modify visibility levels, … … 1158 1206 * 1159 1207 * @since 1.8.2 1208 * 1160 1209 * @see bp_xprofile_get_hidden_fields_for_user() 1161 1210 * … … 1204 1253 * 1205 1254 * @since 1.6.0 1255 * 1206 1256 * @see bp_xprofile_get_hidden_fields_for_user() 1207 1257 *
Note: See TracChangeset
for help on using the changeset viewer.