- Timestamp:
- 05/07/2016 07:38:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php
r10434 r10740 21 21 * XProfile ID. 22 22 * 23 * @since 1.6.0 23 24 * @var int $id 24 25 */ … … 28 29 * User ID. 29 30 * 31 * @since 1.6.0 30 32 * @var int $user_id 31 33 */ … … 35 37 * XProfile field ID. 36 38 * 39 * @since 1.6.0 37 40 * @var int $field_id 38 41 */ … … 42 45 * XProfile field value. 43 46 * 47 * @since 1.6.0 44 48 * @var string $value 45 49 */ … … 49 53 * XProfile field last updated time. 50 54 * 55 * @since 1.6.0 51 56 * @var string $last_updated 52 57 */ … … 56 61 * BP_XProfile_ProfileData constructor. 57 62 * 58 * @param null $field_id Field ID to instantiate. 59 * @param null $user_id User ID to instantiate for. 63 * @since 1.5.0 64 * 65 * @param int|null $field_id Field ID to instantiate. 66 * @param int|null $user_id User ID to instantiate for. 60 67 */ 61 68 public function __construct( $field_id = null, $user_id = null ) { … … 67 74 /** 68 75 * Populates the XProfile profile data. 76 * 77 * @since 1.0.0 69 78 * 70 79 * @param int $field_id Field ID to populate. … … 105 114 * Check if there is data already for the user. 106 115 * 116 * @since 1.0.0 117 * 107 118 * @global object $wpdb 108 119 * @global array $bp 120 * 109 121 * @return bool 110 122 */ … … 137 149 * Check if this data is for a valid field. 138 150 * 151 * @since 1.0.0 152 * 139 153 * @global object $wpdb 154 * 140 155 * @return bool 141 156 */ … … 160 175 /** 161 176 * Save the data for the XProfile field. 177 * 178 * @since 1.0.0 162 179 * 163 180 * @return bool … … 219 236 * Delete specific XProfile field data. 220 237 * 238 * @since 1.0.0 239 * 221 240 * @global object $wpdb 241 * 222 242 * @return boolean 223 243 */ … … 257 277 /** 258 278 * Get a user's profile data for a set of fields. 279 * 280 * @since 2.0.0 259 281 * 260 282 * @param int $user_id ID of user whose data is being queried. … … 324 346 * Get all of the profile information for a specific user. 325 347 * 348 * @since 1.2.0 349 * 326 350 * @param int $user_id ID of the user. 327 351 * @return array … … 369 393 * Get the user's field data id by the id of the xprofile field. 370 394 * 395 * @since 1.6.0 396 * 371 397 * @param int $field_id Field ID being queried for. 372 398 * @param int $user_id User ID associated with field. … … 398 424 * 399 425 * Supports multiple user IDs. 426 * 427 * @since 1.0.0 400 428 * 401 429 * @param int $field_id ID of the field. … … 479 507 * Get profile field values by field name and user ID. 480 508 * 509 * @since 1.0.0 510 * 481 511 * @param array|string $fields Field(s) to get. 482 512 * @param int|null $user_id User ID to get field data for. … … 541 571 * Delete field. 542 572 * 573 * @since 1.0.0 574 * 543 575 * @param int $field_id ID of the field to delete. 544 576 * @return bool … … 559 591 * Get time for last XProfile field data update by user. 560 592 * 593 * @since 1.0.0 594 * 561 595 * @param int $user_id User ID to get time for. 562 596 * @return null|string … … 575 609 * Delete all data for provided user ID. 576 610 * 611 * @since 1.0.0 612 * 577 613 * @param int $user_id User ID to remove data for. 578 614 * @return false|int … … 588 624 /** 589 625 * Get random field type by user ID. 626 * 627 * @since 1.0.0 590 628 * 591 629 * @param int $user_id User ID to query for. … … 606 644 * Get fullname for provided user ID. 607 645 * 646 * @since 1.0.0 647 * 608 648 * @param int $user_id ID of the user to query. 609 649 * @return mixed
Note: See TracChangeset
for help on using the changeset viewer.