- Timestamp:
- 09/25/2015 02:19:11 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php
r10022 r10142 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 13 13 14 14 /** 15 * @since BuddyPress (1.0.0)15 * @since 1.0.0 16 16 * 17 17 * @var int ID of field … … 20 20 21 21 /** 22 * @since BuddyPress (1.0.0)22 * @since 1.0.0 23 23 * 24 24 * @var int Field group ID for field … … 27 27 28 28 /** 29 * @since BuddyPress (1.0.0)29 * @since 1.0.0 30 30 * 31 31 * @var int Parent ID of field … … 34 34 35 35 /** 36 * @since BuddyPress (1.0.0)36 * @since 1.0.0 37 37 * 38 38 * @var string Field type … … 41 41 42 42 /** 43 * @since BuddyPress (1.0.0)43 * @since 1.0.0 44 44 * 45 45 * @var string Field name … … 48 48 49 49 /** 50 * @since BuddyPress (1.0.0)50 * @since 1.0.0 51 51 * 52 52 * @var string Field description … … 55 55 56 56 /** 57 * @since BuddyPress (1.0.0)57 * @since 1.0.0 58 58 * 59 59 * @var bool Is field required to be filled out? … … 62 62 63 63 /** 64 * @since BuddyPress (1.0.0)64 * @since 1.0.0 65 65 * 66 66 * @var int Can field be deleted? … … 69 69 70 70 /** 71 * @since BuddyPress (1.0.0)71 * @since 1.0.0 72 72 * 73 73 * @var int Field position … … 76 76 77 77 /** 78 * @since BuddyPress (1.0.0)78 * @since 1.0.0 79 79 * 80 80 * @var int Option order … … 83 83 84 84 /** 85 * @since BuddyPress (1.0.0)85 * @since 1.0.0 86 86 * 87 87 * @var string Order child fields by … … 90 90 91 91 /** 92 * @since BuddyPress (1.0.0)92 * @since 1.0.0 93 93 * 94 94 * @var bool Is this the default option for this field? … … 97 97 98 98 /** 99 * @since BuddyPress (1.9.0)99 * @since 1.9.0 100 100 * 101 101 * @var string Default field data visibility … … 104 104 105 105 /** 106 * @since BuddyPress (2.3.0)106 * @since 2.3.0 107 107 * 108 108 * @var string Members are allowed/disallowed to modify data visibility … … 111 111 112 112 /** 113 * @since BuddyPress (2.0.0)113 * @since 2.0.0 114 114 * 115 115 * @var BP_XProfile_Field_Type Field type object used for validation … … 118 118 119 119 /** 120 * @since BuddyPress (2.0.0)120 * @since 2.0.0 121 121 * 122 122 * @var BP_XProfile_ProfileData Field data for user ID … … 127 127 * Member types to which the profile field should be applied. 128 128 * 129 * @since BuddyPress (2.4.0)129 * @since 2.4.0 130 130 * @access protected 131 131 * @var array Array of member types. … … 136 136 * Initialize and/or populate profile field 137 137 * 138 * @since BuddyPress (1.1.0)138 * @since 1.1.0 139 139 * 140 140 * @param int $id … … 157 157 * Populate a profile field object 158 158 * 159 * @since BuddyPress (1.1.0)159 * @since 1.1.0 160 160 * 161 161 * @global object $wpdb … … 217 217 * Delete a profile field 218 218 * 219 * @since BuddyPress (1.1.0)219 * @since 1.1.0 220 220 * 221 221 * @global object $wpdb … … 251 251 * Save a profile field 252 252 * 253 * @since BuddyPress (1.1.0)253 * @since 1.1.0 254 254 * 255 255 * @global object $wpdb … … 279 279 * Please use this hook to filter the properties above. Each part will be passed in. 280 280 * 281 * @since BuddyPress (1.0.0)281 * @since 1.0.0 282 282 * 283 283 * @param BP_XProfile_Field Current instance of the field being saved. … … 330 330 * Filters the submitted field option value before saved. 331 331 * 332 * @since BuddyPress (1.5.0)332 * @since 1.5.0 333 333 * 334 334 * @param string $post_option Submitted option value. … … 340 340 * Filters the default field option value before saved. 341 341 * 342 * @since BuddyPress (1.5.0)342 * @since 1.5.0 343 343 * 344 344 * @param string $post_default Default option value. … … 377 377 * Fires after the current field instance gets saved. 378 378 * 379 * @since BuddyPress (1.0.0)379 * @since 1.0.0 380 380 * 381 381 * @param BP_XProfile_Field Current instance of the field being saved. … … 396 396 * Get field data for a user ID 397 397 * 398 * @since BuddyPress (1.2.0)398 * @since 1.2.0 399 399 * 400 400 * @param int $user_id … … 408 408 * Get all child fields for this field ID 409 409 * 410 * @since BuddyPress (1.2.0)410 * @since 1.2.0 411 411 * 412 412 * @global object $wpdb … … 443 443 * Filters the found children for a field. 444 444 * 445 * @since BuddyPress (1.2.5)445 * @since 1.2.5 446 446 * 447 447 * @param object $children Found children for a field. … … 454 454 * Delete all field children for this field 455 455 * 456 * @since BuddyPress (1.2.0)456 * @since 1.2.0 457 457 * 458 458 * @global object $wpdb … … 474 474 * 'null' is a special pseudo-type, which represents users that do not have a member type. 475 475 * 476 * @since BuddyPress (2.4.0)476 * @since 2.4.0 477 477 * 478 478 * @return array Array of member type names. … … 515 515 * Filters the member types to which an XProfile object should be applied. 516 516 * 517 * @since BuddyPress (2.4.0)517 * @since 2.4.0 518 518 * 519 519 * @param array $types Member types. … … 528 528 * Sets the member types for this field. 529 529 * 530 * @since BuddyPress (2.4.0)530 * @since 2.4.0 531 531 * 532 532 * @param array $member_types Array of member types. Can include 'null' (users with no type) in addition to any … … 586 586 * Fires after a field's member types have been updated. 587 587 * 588 * @since BuddyPress (2.4.0)588 * @since 2.4.0 589 589 * 590 590 * @param BP_XProfile_Field $field Field object. … … 601 601 * This label is displayed alongside the field's name on the Profile Fields Dashboard panel. 602 602 * 603 * @since BuddyPress (2.4.0)603 * @since 2.4.0 604 604 * 605 605 * @return string … … 681 681 * Delete all fields in a field group 682 682 * 683 * @since BuddyPress (1.2.0)683 * @since 1.2.0 684 684 * 685 685 * @global object $wpdb … … 712 712 * Get field ID from field name 713 713 * 714 * @since BuddyPress (1.5.0)714 * @since 1.5.0 715 715 * 716 716 * @global object $wpdb … … 736 736 * Update field position and/or field group when relocating 737 737 * 738 * @since BuddyPress (1.5.0)738 * @since 1.5.0 739 739 * 740 740 * @global object $wpdb … … 775 775 * Gets the IDs of fields applicable for a given member type or array of member types. 776 776 * 777 * @since BuddyPress (2.4.0)777 * @since 2.4.0 778 778 * 779 779 * @param string|array $member_types Member type or array of member types. Use 'any' to return unrestricted … … 849 849 * Validate form field data on sumbission 850 850 * 851 * @since BuddyPress (2.2.0)851 * @since 2.2.0 852 852 * 853 853 * @global type $message … … 931 931 * Oupput the admin form for this field 932 932 * 933 * @since BuddyPress (1.9.0)933 * @since 1.9.0 934 934 * 935 935 * @param type $message … … 1000 1000 * Fires after XProfile Field sidebar metabox. 1001 1001 * 1002 * @since BuddyPress (2.2.0)1002 * @since 2.2.0 1003 1003 * 1004 1004 * @param BP_XProfile_Field $this Current XProfile field. … … 1015 1015 * Fires before XProfile Field content metabox. 1016 1016 * 1017 * @since BuddyPress (2.3.0)1017 * @since 2.3.0 1018 1018 * 1019 1019 * @param BP_XProfile_Field $this Current XProfile field. … … 1030 1030 * Fires after XProfile Field content metabox. 1031 1031 * 1032 * @since BuddyPress (2.2.0)1032 * @since 2.2.0 1033 1033 * 1034 1034 * @param BP_XProfile_Field $this Current XProfile field. … … 1048 1048 * Private method used to display the submit metabox 1049 1049 * 1050 * @since BuddyPress (2.3.0)1050 * @since 2.3.0 1051 1051 * 1052 1052 * @param string $button_text … … 1057 1057 * Fires before XProfile Field submit metabox. 1058 1058 * 1059 * @since BuddyPress (2.1.0)1059 * @since 2.1.0 1060 1060 * 1061 1061 * @param BP_XProfile_Field $this Current XProfile field. … … 1074 1074 * Fires at the beginning of the XProfile Field publishing actions section. 1075 1075 * 1076 * @since BuddyPress (2.1.0)1076 * @since 2.1.0 1077 1077 * 1078 1078 * @param BP_XProfile_Field $this Current XProfile field. … … 1107 1107 * Fires after XProfile Field submit metabox. 1108 1108 * 1109 * @since BuddyPress (2.1.0)1109 * @since 2.1.0 1110 1110 * 1111 1111 * @param BP_XProfile_Field $this Current XProfile field. … … 1117 1117 * Private method used to output field name and description fields 1118 1118 * 1119 * @since BuddyPress (2.3.0)1119 * @since 2.3.0 1120 1120 */ 1121 1121 private function name_and_description() { … … 1142 1142 * Private method used to output field Member Type metabox. 1143 1143 * 1144 * @since BuddyPress (2.4.0)1144 * @since 2.4.0 1145 1145 */ 1146 1146 private function member_type_metabox() { … … 1195 1195 * Private method used to output field visibility metaboxes 1196 1196 * 1197 * @since BuddyPress (2.3.0)1197 * @since 2.3.0 1198 1198 * 1199 1199 * @return if default field id 1 … … 1244 1244 * Output the metabox for setting if field is required or not 1245 1245 * 1246 * @since BuddyPress (2.3.0)1246 * @since 2.3.0 1247 1247 * 1248 1248 * @return if default field … … 1271 1271 * Output the metabox for setting what type of field this is 1272 1272 * 1273 * @since BuddyPress (2.3.0)1273 * @since 2.3.0 1274 1274 * 1275 1275 * @return if default field … … 1307 1307 * Output hidden fields used by default field 1308 1308 * 1309 * @since BuddyPress (2.3.0)1309 * @since 2.3.0 1310 1310 * 1311 1311 * @return if not default field … … 1327 1327 * Return if a field ID is the default field 1328 1328 * 1329 * @since BuddyPress (2.3.0)1329 * @since 2.3.0 1330 1330 * 1331 1331 * @param int $field_id ID of field to check
Note: See TracChangeset
for help on using the changeset viewer.