Changeset 10140
- Timestamp:
- 09/25/2015 12:18:18 AM (9 years ago)
- Location:
- trunk/src/bp-xprofile
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-actions.php
r9944 r10140 1 1 <?php 2 3 2 /** 4 * BuddyPress XProfile Actions 3 * BuddyPress XProfile Actions. 5 4 * 6 5 * Action functions are exactly the same as screen functions, however they do not … … 12 11 */ 13 12 14 // Exit if accessed directly 13 // Exit if accessed directly. 15 14 defined( 'ABSPATH' ) || exit; 16 15 … … 51 50 * Handles the saving of xprofile field visibilities 52 51 * 53 * @since BuddyPress (1.9.0)52 * @since 1.9.0 54 53 */ 55 54 function bp_xprofile_action_settings() { … … 82 81 * Fires before saving xprofile field visibilities. 83 82 * 84 * @since BuddyPress (2.0.0)83 * @since 2.0.0 85 84 */ 86 85 do_action( 'bp_xprofile_settings_before_save' ); … … 123 122 * Fires after saving xprofile field visibilities. 124 123 * 125 * @since BuddyPress (2.0.0)124 * @since 2.0.0 126 125 */ 127 126 do_action( 'bp_xprofile_settings_after_save' ); -
trunk/src/bp-xprofile/bp-xprofile-activity.php
r10135 r10140 1 1 <?php 2 3 /** 4 * BuddyPress XProfile Activity & Notification Functions 2 /** 3 * BuddyPress XProfile Activity & Notification Functions. 5 4 * 6 5 * These functions handle the recording, deleting and formatting of activity … … 11 10 */ 12 11 13 // Exit if accessed directly 12 // Exit if accessed directly. 14 13 defined( 'ABSPATH' ) || exit; 15 14 … … 17 16 * Register the activity actions for the Extended Profile component 18 17 * 19 * @since BuddyPress (1.0.0)18 * @since 1.0.0 20 19 * 21 20 * @uses bp_activity_set_action() To setup the individual actions … … 46 45 * Fires after the registration of default activity actions for Extended Profile component. 47 46 * 48 * @since BuddyPress (1.1.0)47 * @since 1.1.0 49 48 */ 50 49 do_action( 'xprofile_register_activity_actions' ); … … 55 54 * Format 'new_avatar' activity actions. 56 55 * 57 * @since BuddyPress (2.0.0)56 * @since 2.0.0 58 57 * 59 58 * @param string $action Static activity action. … … 73 72 * Filters the formatted 'new_avatar' activity stream action. 74 73 * 75 * @since BuddyPress (2.0.0)74 * @since 2.0.0 76 75 * 77 76 * @param string $action Formatted action for activity stream. … … 84 83 * Format 'updated_profile' activity actions. 85 84 * 86 * @since BuddyPress (2.0.0)85 * @since 2.0.0 87 86 * 88 87 * @param string $action Static activity action. … … 102 101 * Filters the formatted 'updated_profile' activity stream action. 103 102 * 104 * @since BuddyPress (2.0.0)103 * @since 2.0.0 105 104 * 106 105 * @param string $action Formatted action for activity stream. … … 114 113 * it will show in the users activity stream (if installed) 115 114 * 116 * @since BuddyPress (1.0.0)115 * @since 1.0.0 117 116 * 118 117 * @package BuddyPress … … 149 148 * removed from the users activity stream and sitewide stream (if installed) 150 149 * 151 * @since BuddyPress (1.0.0)150 * @since 1.0.0 152 151 * 153 152 * @package BuddyPress XProfile … … 175 174 * Register an activity action for the Extended Profiles component 176 175 * 177 * @since BuddyPress (1.0.0)176 * @since 1.0.0 178 177 * 179 178 * @param string $key … … 191 190 * Filters the return value of bp_activity_set_action. 192 191 * 193 * @since BuddyPress (1.1.0)192 * @since 1.1.0 194 193 * 195 194 * @param bool $value Whether or not an action was successfully registered. … … 244 243 * Add an activity item when a user has updated his profile. 245 244 * 246 * @since BuddyPress (2.0.0)245 * @since 2.0.0 247 246 * 248 247 * @param int $user_id ID of the user who has updated his profile. … … 310 309 * Filters the throttle time, in seconds, used to prevent excessive activity posting. 311 310 * 312 * @since BuddyPress (2.0.0)311 * @since 2.0.0 313 312 * 314 313 * @param int $value Throttle time, in seconds. … … 339 338 * Add filters for xprofile activity types to Show dropdowns. 340 339 * 341 * @since BuddyPress (2.0.0)340 * @since 2.0.0 342 341 * @todo Mark as deprecated 343 342 */ -
trunk/src/bp-xprofile/bp-xprofile-admin.php
r10071 r10140 1 1 <?php 2 3 /** 4 * BuddyPress XProfile Admin 2 /** 3 * BuddyPress XProfile Admin. 5 4 * 6 5 * @package BuddyPress … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 66 65 * Output the main XProfile management screen 67 66 * 68 * @since BuddyPress (2.3.0)67 * @since 2.3.0 69 68 * 70 69 * @param string $message Feedback message … … 153 152 * Fires at end of action buttons in xprofile management admin. 154 153 * 155 * @since BuddyPress (2.2.0)154 * @since 2.2.0 156 155 * 157 156 * @param BP_XProfile_Group $group BP_XProfile_Group object … … 266 265 * Fires at the end of the group adding/saving process, if successful. 267 266 * 268 * @since BuddyPress (1.0.0)267 * @since 1.0.0 269 268 * 270 269 * @param BP_XProfile_Group $group Current BP_XProfile_Group object. … … 302 301 * Fires at the end of group deletion process, if successful. 303 302 * 304 * @since BuddyPress (1.0.0)303 * @since 1.0.0 305 304 * 306 305 * @param BP_XProfile_Group $group Current BP_XProfile_Group object. … … 392 391 * Fires at the end of the process to save a field for a user, if successful. 393 392 * 394 * @since BuddyPress (1.0.0)393 * @since 1.0.0 395 394 * 396 395 * @param BP_XProfile_Field $field Current BP_XProfile_Field object. … … 416 415 * Handles the deletion of a profile field (or field option) 417 416 * 418 * @since BuddyPress (1.0.0)417 * @since 1.0.0 419 418 * @global string $message The feedback message to show 420 419 * @global $type The type of feedback message to show … … 441 440 * Fires at the end of the field deletion process, if successful. 442 441 * 443 * @since BuddyPress (1.0.0)442 * @since 1.0.0 444 443 * 445 444 * @param BP_XProfile_Field $field Current BP_XProfile_Field object. … … 517 516 * Fires at end of legend above the name field in base xprofile group. 518 517 * 519 * @since BuddyPress (2.2.0)518 * @since 2.2.0 520 519 * 521 520 * @param BP_XProfile_Field $field Current BP_XProfile_Field … … 536 535 * Fires after the input if the current field is not in default field types. 537 536 * 538 * @since BuddyPress (1.5.0)537 * @since 1.5.0 539 538 * 540 539 * @param BP_XProfile_Field $field Current BP_XProfile_Field … … 568 567 * Fires at end of field management links in xprofile management admin. 569 568 * 570 * @since BuddyPress (2.2.0)569 * @since 2.2.0 571 570 * 572 571 * @param BP_XProfile_Group $group BP_XProfile_Group object … … 586 585 * 587 586 * @param string $select_field_type The name of the field type that should be selected. Will defaults to "textbox" if NULL is passed. 588 * @since BuddyPress (2.0.0)587 * @since 2.0.0 589 588 */ 590 589 function bp_xprofile_admin_form_field_types( $select_field_type ) { … … 640 639 * @subpackage xProfileAdministration 641 640 * 642 * @since BuddyPress (2.0.0)641 * @since 2.0.0 643 642 */ 644 643 class BP_XProfile_User_Admin { … … 648 647 * 649 648 * @access public 650 * @since BuddyPress (2.0.0)649 * @since 2.0.0 651 650 * 652 651 * @uses buddypress() to get BuddyPress main instance … … 672 671 * 673 672 * @access public 674 * @since BuddyPress (2.0.0)673 * @since 2.0.0 675 674 */ 676 675 public function __construct() { … … 682 681 * 683 682 * @access private 684 * @since BuddyPress (2.0.0)683 * @since 2.0.0 685 684 */ 686 685 private function setup_actions() { … … 699 698 * 700 699 * @access public 701 * @since BuddyPress (2.3.0)700 * @since 2.3.0 702 701 */ 703 702 public function enqueue_scripts( $screen_id ) { … … 729 728 * 730 729 * @access public 731 * @since BuddyPress (2.0.0)730 * @since 2.0.0 732 731 * 733 732 * @param int $user_id ID of the user being edited. … … 804 803 * 805 804 * @access public 806 * @since BuddyPress (2.0.0)805 * @since 2.0.0 807 806 */ 808 807 public function user_admin_load( $doaction = '', $user_id = 0, $request = array(), $redirect_to = '' ) { … … 889 888 * Fires after the saving of each profile field, if successful. 890 889 * 891 * @since BuddyPress (1.1.0)890 * @since 1.1.0 892 891 * 893 892 * @param int $field_id ID of the field being updated. … … 905 904 * Fires after all of the profile fields have been saved. 906 905 * 907 * @since BuddyPress (1.0.0)906 * @since 1.0.0 908 907 * 909 908 * @param int $user_id ID of the user whose data is being saved. … … 928 927 * 929 928 * @access public 930 * @since BuddyPress (2.0.0)929 * @since 2.0.0 931 930 * 932 931 * @param WP_User $user The WP_User object for the user being edited. … … 983 982 * Fires before display of visibility form elements for profile metaboxes. 984 983 * 985 * @since BuddyPress (1.7.0)984 * @since 1.7.0 986 985 */ 987 986 do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); … … 1019 1018 * Fires at end of custom profile field items on your xprofile screen tab. 1020 1019 * 1021 * @since BuddyPress (1.1.0)1020 * @since 1.1.0 1022 1021 */ 1023 1022 do_action( 'bp_custom_profile_edit_fields' ); ?> … … 1034 1033 * 1035 1034 * @access public 1036 * @since BuddyPress (2.0.0)1035 * @since 2.0.0 1037 1036 * 1038 1037 * @param WP_User $user The WP_User object for the user being edited. … … 1048 1047 * 1049 1048 * @access public 1050 * @since BuddyPress (2.0.0)1049 * @since 2.0.0 1051 1050 * 1052 1051 * @param WP_User $user The WP_User object for the user being edited. -
trunk/src/bp-xprofile/bp-xprofile-cache.php
r10022 r10140 1 1 <?php 2 3 /** 4 * BuddyPress XProfile Caching Functions 2 /** 3 * BuddyPress XProfile Caching Functions. 5 4 * 6 5 * Caching functions handle the clearing of cached objects and pages on specific … … 8 7 * 9 8 * @package BuddyPress 10 */ 11 12 // Exit if accessed directly 9 * @subpackage XProfileCache 10 */ 11 12 // Exit if accessed directly. 13 13 defined( 'ABSPATH' ) || exit; 14 14 … … 16 16 * Determine which xprofile fields do not have cached values for a user. 17 17 * 18 * @since BuddyPress (2.2.0)18 * @since 2.2.0 19 19 * 20 20 * @param int $user_id User ID to check … … 48 48 * This function is called within a bp_has_profile() loop. 49 49 * 50 * @since BuddyPress (2.0.0)50 * @since 2.0.0 51 51 * 52 52 * @param array $object_ids Multi-dimensional array of object_ids, keyed by … … 177 177 * Clear cached XProfile field group data 178 178 * 179 * @since BuddyPress (2.1.0)179 * @since 2.1.0 180 180 * 181 181 * @param object $group_obj … … 191 191 * Clear cached XProfile fullname data for user 192 192 * 193 * @since BuddyPress (2.1.0)193 * @since 2.1.0 194 194 * 195 195 * @param int $user_id ID of user whose fullname cache to delete … … 206 206 * cases, except where the field is updated directly with xprofile_set_field_data() 207 207 * 208 * @since BuddyPress (2.0.0)208 * @since 2.0.0 209 209 */ 210 210 function xprofile_clear_fullname_cache_on_profile_field_edit( $data ) { … … 218 218 * Clear caches when a field object is modified. 219 219 * 220 * @since BuddyPress (2.0.0)220 * @since 2.0.0 221 221 * 222 222 * @param BP_XProfile_Field … … 239 239 * Clears member_type cache when a field's member types are updated. 240 240 * 241 * @since BuddyPress (2.4.0)241 * @since 2.4.0 242 242 */ 243 243 function bp_xprofile_clear_member_type_cache() { … … 249 249 * Clear caches when a user's updates a field data object. 250 250 * 251 * @since BuddyPress (2.0.0)251 * @since 2.0.0 252 252 * 253 253 * @param BP_XProfile_ProfileData $data_obj … … 272 272 * invalidation) is thus for backward compatibility only. 273 273 * 274 * @since BuddyPress (2.0.0)274 * @since 2.0.0 275 275 */ 276 276 function xprofile_clear_fullname_field_id_cache() { -
trunk/src/bp-xprofile/bp-xprofile-caps.php
r9819 r10140 1 1 <?php 2 3 2 /** 4 * Roles and capabilities logic for the XProfile component 3 * Roles and capabilities logic for the XProfile component. 5 4 * 6 5 * @package BuddyPress 7 * @since BuddyPress (1.6.0) 6 * @subpackage XPRofileCaps 7 * @since 1.6.0 8 8 */ 9 9 10 // Exit if accessed directly 10 // Exit if accessed directly. 11 11 defined( 'ABSPATH' ) || exit; 12 12 … … 14 14 * Maps XProfile caps to built in WordPress caps 15 15 * 16 * @since BuddyPress (1.6.0)16 * @since 1.6.0 17 17 * 18 18 * @param array $caps Capabilities for meta capability … … 59 59 * Filters the XProfile caps to built in WordPress caps. 60 60 * 61 * @since BuddyPress (1.6.0)61 * @since 1.6.0 62 62 * 63 63 * @param array $caps Capabilities for meta capability. -
trunk/src/bp-xprofile/bp-xprofile-classes.php
r9819 r10140 1 1 <?php 2 2 /** 3 * BuddyPress XProfile Classes 3 * BuddyPress XProfile Classes. 4 4 * 5 5 * @package BuddyPress … … 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 -
trunk/src/bp-xprofile/bp-xprofile-cssjs.php
r9819 r10140 1 1 <?php 2 3 2 /** 4 * BuddyPress XProfile CSS and JS 3 * BuddyPress XProfile CSS and JS. 5 4 * 6 5 * @package BuddyPress … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 14 13 * Enqueue the CSS for XProfile admin styling 15 14 * 16 * @since BuddyPress (1.1.0)15 * @since 1.1.0 17 16 */ 18 17 function xprofile_add_admin_css() { … … 33 32 * Enqueue the jQuery libraries for handling drag/drop/sort 34 33 * 35 * @since BuddyPress (1.5.0)34 * @since 1.5.0 36 35 */ 37 36 function xprofile_add_admin_js() { -
trunk/src/bp-xprofile/bp-xprofile-filters.php
r9819 r10140 1 1 <?php 2 3 /** 4 * BuddyPress XProfile Filters 5 * 6 * Apply WordPress defined filters 2 /** 3 * BuddyPress XProfile Filters. 4 * 5 * Apply WordPress defined filters. 7 6 * 8 7 * @package BuddyPress … … 10 9 */ 11 10 12 // Exit if accessed directly 11 // Exit if accessed directly. 13 12 defined( 'ABSPATH' ) || exit; 14 13 … … 77 76 * Sanitize each field option name for saving to the database 78 77 * 79 * @since BuddyPress (2.3.0)78 * @since 2.3.0 80 79 * 81 80 * @param mixed $field_options … … 93 92 * Sanitize each field option default for saving to the database 94 93 * 95 * @since BuddyPress (2.3.0)94 * @since 2.3.0 96 95 * 97 96 * @param mixed $field_default … … 124 123 * Filters the allowed tags for use within xprofile_filter_kses(). 125 124 * 126 * @since BuddyPress (1.5.0)125 * @since 1.5.0 127 126 * 128 127 * @param array $xprofile_allowedtags Array of allowed tags for profile field values. … … 160 159 * Filters the kses-filtered data before saving to database. 161 160 * 162 * @since BuddyPress (1.5.0)161 * @since 1.5.0 163 162 * 164 163 * @param string $filtered_field_value The filtered value. … … 193 192 * Runs stripslashes on XProfile fields. 194 193 * 195 * @since BuddyPress (1.0.0)194 * @since 1.0.0 196 195 * 197 196 * @param string $field_value XProfile field_value to be filtered. … … 216 215 * Apply display_filter() filters as defined by the BP_XProfile_Field_Type classes, when fetched inside a bp_has_profile() loop. 217 216 * 218 * @since BuddyPress (2.1.0)217 * @since 2.1.0 219 218 * 220 219 * @param mixed $field_value Field value. … … 239 238 * Apply display_filter() filters as defined by the BP_XProfile_Field_Type classes, when fetched by xprofile_get_field_data(). 240 239 * 241 * @since BuddyPress (2.1.0)240 * @since 2.1.0 242 241 * 243 242 * @param mixed $field_value Field value. … … 252 251 * Apply pre_validate_filter() filters as defined by the BP_XProfile_Field_Type classes before validating. 253 252 * 254 * @since BuddyPress (2.1.0)253 * @since 2.1.0 255 254 * 256 255 * @param mixed $value Value passed to the bp_xprofile_set_field_data_pre_validate … … 277 276 * - To disable: remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); 278 277 * 279 * @since BuddyPress (1.1.0)278 * @since 1.1.0 280 279 * 281 280 * @param string $field_value … … 371 370 * Filter BP_User_Query::populate_extras to override each queries users fullname 372 371 * 373 * @since BuddyPress (1.7.0)372 * @since 1.7.0 374 373 * 375 374 * @param BP_User_Query $user_query … … 396 395 * Parse 'xprofile_query' argument passed to BP_User_Query. 397 396 * 398 * @since BuddyPress (2.2.0)397 * @since 2.2.0 399 398 * 400 399 * @param BP_User_Query User query object. … … 420 419 * Filter meta queries to modify for the xprofile data schema. 421 420 * 422 * @since BuddyPress (2.0.0)421 * @since 2.0.0 423 422 * 424 423 * @access private Do not use. -
trunk/src/bp-xprofile/bp-xprofile-functions.php
r9819 r10140 1 1 <?php 2 3 /** 4 * BuddyPress XProfile Filters 2 /** 3 * BuddyPress XProfile Filters. 5 4 * 6 5 * Business functions are where all the magic happens in BuddyPress. They will … … 10 9 * 11 10 * @package BuddyPress 12 * @subpackage XProfileF ilters13 */ 14 15 // Exit if accessed directly 11 * @subpackage XProfileFunctions 12 */ 13 14 // Exit if accessed directly. 16 15 defined( 'ABSPATH' ) || exit; 17 16 … … 23 22 * Procedural wrapper for BP_XProfile_Group::get() method. 24 23 * 25 * @since BuddyPress (2.1.0)24 * @since 2.1.0 26 25 * 27 26 * @param array $args See {@link BP_XProfile_Group::get()} for description of … … 36 35 * Filters a set of field groups, populated with fields and field data. 37 36 * 38 * @since BuddyPress (2.1.0)37 * @since 2.1.0 39 38 * 40 39 * @param array $groups Array of field groups and field data. … … 47 46 * Insert a new profile field group 48 47 * 49 * @since BuddyPress (1.0.0)48 * @since 1.0.0 50 49 * 51 50 * @param type $args … … 79 78 * Get a specific profile field group 80 79 * 81 * @since BuddyPress (1.0.0)80 * @since 1.0.0 82 81 * 83 82 * @param int $field_group_id … … 101 100 * Delete a specific profile field group 102 101 * 103 * @since BuddyPress (1.0.0)102 * @since 1.0.0 104 103 * 105 104 * @param int $field_group_id … … 123 122 * Update the position of a specific profile field group 124 123 * 125 * @since BuddyPress (1.0.0)124 * @since 1.0.0 126 125 * 127 126 * @param int $field_group_id … … 140 139 * 141 140 * @return array Key/value pairs (field type => class name). 142 * @since BuddyPress (2.0.0)141 * @since 2.0.0 143 142 */ 144 143 function bp_xprofile_get_field_types() { … … 160 159 * If you've added a custom field type in a plugin, register it with this filter. 161 160 * 162 * @since BuddyPress (2.0.0)161 * @since 2.0.0 163 162 * 164 163 * @param array $fields Array of field type/class name pairings. … … 172 171 * @param string $type Type of profile field to create. See {@link bp_xprofile_get_field_types()} for default core values. 173 172 * @return object If field type unknown, returns BP_XProfile_Field_Type_Textarea. Otherwise returns an instance of the relevant child class of BP_XProfile_Field_Type. 174 * @since BuddyPress (2.0.0)173 * @since 2.0.0 175 174 */ 176 175 function bp_xprofile_create_field_type( $type ) { … … 324 323 * Filters the field data value for a specific field for the user. 325 324 * 326 * @since BuddyPress (1.0.0)325 * @since 1.0.0 327 326 * 328 327 * @param string $value Value saved for the field. … … 377 376 * doing field-type-specific validation. 378 377 * 379 * @since BuddyPress (2.1.0)378 * @since 2.1.0 380 379 * 381 380 * @param mixed $value Value passed to xprofile_set_field_data() … … 458 457 * Get the visibility level for a field. 459 458 * 460 * @since BuddyPress (2.0.0)459 * @since 2.0.0 461 460 * 462 461 * @param int $field_id The ID of the xprofile field. … … 567 566 * Filters a random piece of profile data for the user. 568 567 * 569 * @since BuddyPress (1.0.0)568 * @since 1.0.0 570 569 * 571 570 * @param array $field_data Array holding random profile data. … … 613 612 * globals before attempting any overrides. 614 613 * 615 * @since BuddyPress (2.0.0)614 * @since 2.0.0 616 615 */ 617 616 function xprofile_override_user_fullnames() { … … 634 633 * Setup the avatar upload directory for a user. 635 634 * 636 * @since BuddyPress (1.0.0)635 * @since 1.0.0 637 636 * 638 637 * @package BuddyPress Core … … 664 663 * Filters the avatar upload directory for a user. 665 664 * 666 * @since BuddyPress (1.1.0)665 * @since 1.1.0 667 666 * 668 667 * @param array $value Array containing the path, URL, and other helpful settings. … … 681 680 * When search_terms are passed to BP_User_Query, search against xprofile fields. 682 681 * 683 * @since BuddyPress (2.0.0)682 * @since 2.0.0 684 683 * 685 684 * @param array $sql Clauses in the user_id SQL query. … … 771 770 * Syncs the standard built in WordPress profile data to XProfile. 772 771 * 773 * @since BuddyPress (1.2.4)772 * @since 1.2.4 774 773 * @package BuddyPress Core 775 774 */ … … 909 908 * Add a piece of xprofile metadata. 910 909 * 911 * @since BuddyPress (2.0.0)910 * @since 2.0.0 912 911 * 913 912 * @param int $object_id ID of the object the metadata belongs to. … … 945 944 * Return the field ID for the Full Name xprofile field. 946 945 * 947 * @since BuddyPress (2.0.0)946 * @since 2.0.0 948 947 * 949 948 * @return int Field ID. … … 968 967 * 969 968 * @package BuddyPress 970 * @since BuddyPress (1.5.0)969 * @since 1.5.0 971 970 * 972 971 * @return string The field name … … 977 976 * Filters the field name for the Full Name xprofile field. 978 977 * 979 * @since BuddyPress (1.5.0)978 * @since 1.5.0 980 979 * 981 980 * @param string BP_XPROFILE_FULLNAME_FIELD_NAME Full name field constant. … … 994 993 * Filters the visibility levels out of the $bp global. 995 994 * 996 * @since BuddyPress (1.6.0)995 * @since 1.6.0 997 996 * 998 997 * @param array $visibility_levels Array of visibility levels. … … 1009 1008 * be excluded from the profile loop. 1010 1009 * 1011 * @since BuddyPress (1.6.0)1010 * @since 1.6.0 1012 1011 * @see BP_XProfile_Group::get() 1013 1012 * @uses apply_filters() Filter bp_xprofile_get_hidden_fields_for_user to modify visibility levels, … … 1038 1037 * Filters the ids of fields that are hidden for this displayed/loggedin user pair. 1039 1038 * 1040 * @since BuddyPress (1.6.0)1039 * @since 1.6.0 1041 1040 * 1042 1041 * @param array $hidden_fields Array of hidden fields for the displayed/logged in user. … … 1056 1055 * that should be hidden for the current user pair. 1057 1056 * 1058 * @since BuddyPress (1.8.2)1057 * @since 1.8.2 1059 1058 * @see bp_xprofile_get_hidden_fields_for_user() 1060 1059 * … … 1090 1089 * Filters the visibility levels that should be hidden for this user pair. 1091 1090 * 1092 * @since BuddyPress (2.0.0)1091 * @since 2.0.0 1093 1092 * 1094 1093 * @param array $hidden_fields Array of hidden fields for the displayed/logged in user. … … 1102 1101 * Fetch an array of the xprofile fields that a given user has marked with certain visibility levels 1103 1102 * 1104 * @since BuddyPress (1.6.0)1103 * @since 1.6.0 1105 1104 * @see bp_xprofile_get_hidden_fields_for_user() 1106 1105 * -
trunk/src/bp-xprofile/bp-xprofile-loader.php
r9937 r10140 1 1 <?php 2 3 2 /** 4 * BuddyPress XProfile Loader 3 * BuddyPress XProfile Loader. 5 4 * 6 5 * An extended profile component for users. This allows site admins to create … … 11 10 */ 12 11 13 // Exit if accessed directly 12 // Exit if accessed directly. 14 13 defined( 'ABSPATH' ) || exit; 15 14 … … 19 18 * Profile field types 20 19 * 21 * @since BuddyPress (1.5.0)20 * @since 1.5.0 22 21 * @var array 23 22 */ … … 28 27 * 29 28 * @see bp_xprofile_get_visibility_levels() 30 * @since BuddyPress (1.6.0)29 * @since 1.6.0 31 30 * @var array 32 31 */ … … 36 35 * Start the xprofile component creation process 37 36 * 38 * @since BuddyPress (1.5.0)37 * @since 1.5.0 39 38 */ 40 39 public function __construct() { … … 82 81 * backwards compatibility. 83 82 * 84 * @since BuddyPress (1.5.0)83 * @since 1.5.0 85 84 */ 86 85 public function setup_globals( $args = array() ) { … … 106 105 * Filters the supported field type IDs. 107 106 * 108 * @since BuddyPress (1.1.0)107 * @since 1.1.0 109 108 * 110 109 * @param array $value Array of IDs for the supported field types. … … 242 241 * be loaded in time for BP_XProfile_Component::setup_nav(). 243 242 * 244 * @since BuddyPress (2.1.0)243 * @since 2.1.0 245 244 */ 246 245 public function setup_settings_nav() { … … 325 324 * Add custom hooks. 326 325 * 327 * @since BuddyPress (2.0.0)326 * @since 2.0.0 328 327 */ 329 328 public function setup_hooks() { … … 357 356 * Setup cache groups 358 357 * 359 * @since BuddyPress (2.2.0)358 * @since 2.2.0 360 359 */ 361 360 public function setup_cache_groups() { … … 375 374 * Adds "Settings > Profile" subnav item under the "Settings" adminbar menu. 376 375 * 377 * @since BuddyPress (2.0.0)376 * @since 2.0.0 378 377 * 379 378 * @param array $wp_admin_nav The settings adminbar nav array. -
trunk/src/bp-xprofile/bp-xprofile-screens.php
r10135 r10140 1 1 <?php 2 3 /** 4 * BuddyPress XProfile Screens 2 /** 3 * BuddyPress XProfile Screens. 5 4 * 6 5 * Screen functions are the controllers of BuddyPress. They will execute when … … 12 11 */ 13 12 14 // Exit if accessed directly 13 // Exit if accessed directly. 15 14 defined( 'ABSPATH' ) || exit; 16 15 … … 27 26 * Fires right before the loading of the XProfile screen template file. 28 27 * 29 * @since BuddyPress (1.0.0)28 * @since 1.0.0 30 29 * 31 30 * @param string $new $_GET parameter holding the "new" parameter. … … 36 35 * Filters the template to load for the XProfile screen. 37 36 * 38 * @since BuddyPress (1.0.0)37 * @since 1.0.0 39 38 * 40 39 * @param string $template Path to the XProfile template to load. … … 152 151 * Fires on each iteration of an XProfile field being saved with no error. 153 152 * 154 * @since BuddyPress (1.1.0)153 * @since 1.1.0 155 154 * 156 155 * @param int $field_id ID of the field that was saved. … … 164 163 * Fires after all XProfile fields have been saved for the current profile. 165 164 * 166 * @since BuddyPress (1.0.0)165 * @since 1.0.0 167 166 * 168 167 * @param int $value Displayed user ID. … … 189 188 * Fires right before the loading of the XProfile edit screen template file. 190 189 * 191 * @since BuddyPress (1.0.0)190 * @since 1.0.0 192 191 */ 193 192 do_action( 'xprofile_screen_edit_profile' ); … … 196 195 * Filters the template to load for the XProfile edit screen. 197 196 * 198 * @since BuddyPress (1.0.0)197 * @since 1.0.0 199 198 * 200 199 * @param string $template Path to the XProfile edit template to load. … … 283 282 * Fires right before the loading of the XProfile change avatar screen template file. 284 283 * 285 * @since BuddyPress (1.0.0)284 * @since 1.0.0 286 285 */ 287 286 do_action( 'xprofile_screen_change_avatar' ); … … 290 289 * Filters the template to load for the XProfile change avatar screen. 291 290 * 292 * @since BuddyPress (1.0.0)291 * @since 1.0.0 293 292 * 294 293 * @param string $template Path to the XProfile change avatar template to load. … … 300 299 * Show the xprofile settings template 301 300 * 302 * @since BuddyPress (2.0.0)301 * @since 2.0.0 303 302 */ 304 303 function bp_xprofile_screen_settings() { … … 313 312 * Filters the template to load for the XProfile settings screen. 314 313 * 315 * @since BuddyPress (2.0.0)314 * @since 2.0.0 316 315 * 317 316 * @param string $template Path to the XProfile change avatar template to load. -
trunk/src/bp-xprofile/bp-xprofile-settings.php
r9819 r10140 1 1 <?php 2 /** 3 * BuddyPress XProfile Settings. 4 * 5 * @package BuddyPress 6 * @subpackage XProfileSettings 7 */ 8 9 // Exit if accessed directly. 10 defined( 'ABSPATH' ) || exit; 2 11 3 12 /** 4 13 * Query all profile fields and their visibility data for display in settings 5 14 * 6 * @since BuddyPress (2.0.0)15 * @since 2.0.0 7 16 * 8 17 * @param array $args 9 *10 18 * 11 19 * @return array … … 32 40 * Adds feedback messages when successfully saving profile field settings 33 41 * 34 * @since BuddyPress (2.0.0)42 * @since 2.0.0 35 43 * 36 44 * @uses bp_core_add_message() -
trunk/src/bp-xprofile/bp-xprofile-template.php
r10082 r10140 1 1 <?php 2 3 2 /** 4 * BuddyPress XProfile Template Tags 3 * BuddyPress XProfile Template Tags. 5 4 * 6 5 * @package BuddyPress … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 16 15 * This is responsible for loading profile field, group, and data and displaying it. 17 16 * 18 * @since BuddyPress (1.0.0)17 * @since 1.0.0 19 18 */ 20 19 class BP_XProfile_Data_Template { … … 23 22 * The loop iterator. 24 23 * 25 * @since BuddyPress (1.5.0)24 * @since 1.5.0 26 25 * @access public 27 26 * @var int … … 32 31 * The number of groups returned by the paged query. 33 32 * 34 * @since BuddyPress (1.5.0)33 * @since 1.5.0 35 34 * @access public 36 35 * @var int … … 41 40 * Array of groups located by the query. 42 41 * 43 * @since BuddyPress (1.5.0)42 * @since 1.5.0 44 43 * @access public 45 44 * @var array … … 50 49 * The group object currently being iterated on. 51 50 * 52 * @since BuddyPress (1.5.0)51 * @since 1.5.0 53 52 * @access public 54 53 * @var object … … 59 58 * The current field. 60 59 * 61 * @since BuddyPress (1.5.0)60 * @since 1.5.0 62 61 * @access public 63 62 * @var int … … 68 67 * The field count. 69 68 * 70 * @since BuddyPress (1.5.0)69 * @since 1.5.0 71 70 * @access public 72 71 * @var int … … 77 76 * Field has data. 78 77 * 79 * @since BuddyPress (1.5.0)78 * @since 1.5.0 80 79 * @access public 81 80 * @var bool … … 86 85 * The field. 87 86 * 88 * @since BuddyPress (1.5.0)87 * @since 1.5.0 89 88 * @access public 90 89 * @var int … … 95 94 * A flag for whether the loop is currently being iterated. 96 95 * 97 * @since BuddyPress (1.5.0)96 * @since 1.5.0 98 97 * @access public 99 98 * @var bool … … 104 103 * The user ID. 105 104 * 106 * @since BuddyPress (1.5.0)105 * @since 1.5.0 107 106 * @access public 108 107 * @var int … … 115 114 * @see BP_XProfile_Group::get() for more details about parameters. 116 115 * 117 * @since BuddyPress (2.4.0)Introduced `$member_type` argument.116 * @since 2.4.0 Introduced `$member_type` argument. 118 117 * 119 118 * @param array $args { … … 194 193 * Filters the group fields for the next_group method. 195 194 * 196 * @since BuddyPress (1.1.0)195 * @since 1.1.0 197 196 * 198 197 * @param array $fields Array of fields for the group. … … 221 220 * Fires right before the rewinding of profile groups. 222 221 * 223 * @since BuddyPress (1.1.0)222 * @since 1.1.0 224 223 */ 225 224 do_action( 'xprofile_template_loop_end' ); … … 245 244 * Fires if the current group is the first in the loop. 246 245 * 247 * @since BuddyPress (1.1.0)246 * @since 1.1.0 248 247 */ 249 248 do_action( 'xprofile_template_loop_start' ); … … 316 315 * Query for XProfile groups and fields 317 316 * 318 * @since BuddyPress (1.0.0)317 * @since 1.0.0 319 318 * 320 319 * @global object $profile_template … … 371 370 * Filters whether or not a group has a profile to display. 372 371 * 373 * @since BuddyPress (1.1.0)372 * @since 1.1.0 374 373 * 375 374 * @param bool $has_groups Whether or not there are group profiles to display. … … 431 430 * Filters the field classes to be applied to a field. 432 431 * 433 * @since BuddyPress (1.1.0)432 * @since 1.1.0 434 433 * 435 434 * @param array $css_classes Array of classes to be applied to field. Passed by reference. … … 440 439 * Filters the class HTML attribute to be used on a field. 441 440 * 442 * @since BuddyPress (1.1.0)441 * @since 1.1.0 443 442 * 444 443 * @param string $value class HTML attribute with imploded classes. … … 471 470 * Filters the profile group ID. 472 471 * 473 * @since BuddyPress (1.1.0)472 * @since 1.1.0 474 473 * 475 474 * @param int $id ID for the profile group. … … 487 486 * Filters the profile group name. 488 487 * 489 * @since BuddyPress (1.0.0)488 * @since 1.0.0 490 489 * 491 490 * @param string $name Name for the profile group. … … 503 502 * Filters the profile group slug. 504 503 * 505 * @since BuddyPress (1.1.0)504 * @since 1.1.0 506 505 * 507 506 * @param string $value Slug for the profile group. … … 519 518 * Filters the profile group description. 520 519 * 521 * @since BuddyPress (1.0.0)520 * @since 1.0.0 522 521 * 523 522 * @param string $description Description for the profile group. … … 538 537 * Filters the action for the profile group edit form. 539 538 * 540 * @since BuddyPress (1.1.0)539 * @since 1.1.0 541 540 * 542 541 * @param string $value URL for the action attribute on the … … 566 565 * Output a comma-separated list of field IDs that are to be submitted on profile edit. 567 566 * 568 * @since BuddyPress (2.1.0)567 * @since 2.1.0 569 568 */ 570 569 function bp_the_profile_field_ids() { … … 574 573 * Generate a comma-separated list of field IDs that are to be submitted on profile edit. 575 574 * 576 * @since BuddyPress (2.1.0)575 * @since 2.1.0 577 576 * 578 577 * @return string … … 593 592 * Filters the comma-separated list of field IDs. 594 593 * 595 * @since BuddyPress (2.1.0)594 * @since 2.1.0 596 595 * 597 596 * @param string $field_ids Comma-separated field IDs. … … 619 618 * Filters the profile field ID. 620 619 * 621 * @since BuddyPress (1.1.0)620 * @since 1.1.0 622 621 * 623 622 * @param int $id ID for the profile field. … … 635 634 * Filters the profile field name. 636 635 * 637 * @since BuddyPress (1.0.0)636 * @since 1.0.0 638 637 * 639 638 * @param string $name Name for the profile field. … … 653 652 * Filters the profile field value. 654 653 * 655 * @since BuddyPress (1.0.0)654 * @since 1.0.0 656 655 * 657 656 * @param string $value Value for the profile field. … … 693 692 * Filters the profile field edit value. 694 693 * 695 * @since BuddyPress (1.1.0)694 * @since 1.1.0 696 695 * 697 696 * @param string $field_value Current field edit value. … … 711 710 * Filters the profile field type. 712 711 * 713 * @since BuddyPress (1.1.0)712 * @since 1.1.0 714 713 * 715 714 * @param string $type Type for the profile field. … … 727 726 * Filters the profile field description. 728 727 * 729 * @since BuddyPress (1.1.0)728 * @since 1.1.0 730 729 * 731 730 * @param string $description Description for the profile field. … … 743 742 * Filters the profile field input name. 744 743 * 745 * @since BuddyPress (1.1.0)744 * @since 1.1.0 746 745 * 747 746 * @param string $value Value used for the name attribute on an input. … … 759 758 * do_action( bp_get_the_profile_field_errors_action() ); 760 759 * 761 * @since BuddyPress (1.8.0)760 * @since 1.8.0 762 761 * @return string The _errors action name corresponding to this profile field 763 762 */ … … 774 773 * 775 774 * @package BuddyPress Xprofile 776 * @since BuddyPress (1.1.0)775 * @since 1.1.0 777 776 * 778 777 * @uses bp_get_the_profile_field_options() … … 789 788 * 790 789 * @package BuddyPress Xprofile 791 * @since BuddyPress (1.1.0)790 * @since 1.1.0 792 791 * 793 792 * @uses BP_XProfile_Field::get_children() … … 855 854 * Filters whether or not a profile field is required. 856 855 * 857 * @since BuddyPress (1.1.0)856 * @since 1.1.0 858 857 * 859 858 * @param bool $retval Whether or not the field is required. … … 886 885 * Filters the profile field visibility level. 887 886 * 888 * @since BuddyPress (1.6.0)887 * @since 1.6.0 889 888 * 890 889 * @param string $retval Field visibility level. … … 919 918 * Filters the profile field visibility level label. 920 919 * 921 * @since BuddyPress (1.6.0)920 * @since 1.6.0 922 921 * 923 922 * @param string $retval Field visibility level label. … … 950 949 * Filters the profile field data. 951 950 * 952 * @since BuddyPress (1.2.0)951 * @since 1.2.0 953 952 * 954 953 * @param mixed $value Profile data for a specific field for the user. … … 960 959 * Get all profile field groups. 961 960 * 962 * @since BuddyPress (2.1.0)961 * @since 2.1.0 963 962 * 964 963 * @return object $groups … … 975 974 * Filters all profile field groups. 976 975 * 977 * @since BuddyPress (2.1.0)976 * @since 2.1.0 978 977 * 979 978 * @param array $groups Array of available profile field groups. … … 985 984 * Check if there is more than one group of fields for the profile being edited. 986 985 * 987 * @since BuddyPress (2.1.0)986 * @since 2.1.0 988 987 * 989 988 * @return bool True if there is more than one profile field group. … … 995 994 * Filters if there is more than one group of fields for the profile being edited. 996 995 * 997 * @since BuddyPress (2.1.0)996 * @since 2.1.0 998 997 * 999 998 * @param bool $has_multiple_groups Whether or not there are multiple groups. … … 1005 1004 * Output the tabs to switch between profile field groups. 1006 1005 * 1007 * @since BuddyPress (1.0.0)1006 * @since 1.0.0 1008 1007 * 1009 1008 * @return string Field group tabs markup. … … 1016 1015 * groups. This action is in a strange place for legacy reasons. 1017 1016 * 1018 * @since BuddyPress (1.0.0)1017 * @since 1.0.0 1019 1018 */ 1020 1019 do_action( 'xprofile_profile_group_tabs' ); … … 1024 1023 * Return the XProfile group tabs 1025 1024 * 1026 * @since BuddyPress (2.3.0)1025 * @since 2.3.0 1027 1026 * 1028 1027 * @return string … … 1064 1063 * Filters the tabs to display for profile field groups. 1065 1064 * 1066 * @since BuddyPress (1.5.0)1065 * @since 1.5.0 1067 1066 * 1068 1067 * @param array $tabs Array of tabs to display. … … 1096 1095 * Filters the profile group name. 1097 1096 * 1098 * @since BuddyPress (1.0.0)1097 * @since 1.0.0 1099 1098 * 1100 1099 * @param string $name Name of the profile group. … … 1122 1121 * Filters the formatted string used to display when a profile was last updated. 1123 1122 * 1124 * @since BuddyPress (1.0.0)1123 * @since 1.0.0 1125 1124 * 1126 1125 * @param string $value Formatted last updated indicator string. … … 1146 1145 * Possible values are admin/profile/edit/[group-id] 1147 1146 * 1148 * @since BuddyPress (1.1.0)1147 * @since 1.1.0 1149 1148 * 1150 1149 * @param string $profile_group_id Current profile group ID. … … 1161 1160 * Filters the link used for deleting an avatar. 1162 1161 * 1163 * @since BuddyPress (1.1.0)1162 * @since 1.1.0 1164 1163 * 1165 1164 * @param string $value Nonced URL used for deleting an avatar. … … 1243 1242 * Filters the radio buttons for setting visibility. 1244 1243 * 1245 * @since BuddyPress (1.6.0)1244 * @since 1.6.0 1246 1245 * 1247 1246 * @param string $retval HTML output for the visibility radio buttons. … … 1255 1254 * Output the XProfile field visibility select list for settings 1256 1255 * 1257 * @since BuddyPress (2.0.0)1256 * @since 2.0.0 1258 1257 */ 1259 1258 function bp_profile_settings_visibility_select( $args = '' ) { … … 1263 1262 * Return the XProfile field visibility select list for settings 1264 1263 * 1265 * @since BuddyPress (2.0.0)1264 * @since 2.0.0 1266 1265 */ 1267 1266 function bp_profile_get_settings_visibility_select( $args = '' ) { … … 1316 1315 * Filters the dropdown list for setting visibility. 1317 1316 * 1318 * @since BuddyPress (2.0.0)1317 * @since 2.0.0 1319 1318 * 1320 1319 * @param string $retval HTML output for the visibility dropdown list. -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php
r9819 r10140 1 1 <?php 2 2 /** 3 * BuddyPress XProfile Classes 3 * BuddyPress XProfile Classes. 4 4 * 5 5 * @package BuddyPress … … 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 13 13 * Checkbox xprofile field type. 14 14 * 15 * @since BuddyPress (2.0.0)15 * @since 2.0.0 16 16 */ 17 17 class BP_XProfile_Field_Type_Checkbox extends BP_XProfile_Field_Type { … … 20 20 * Constructor for the checkbox field type 21 21 * 22 * @since BuddyPress (2.0.0)22 * @since 2.0.0 23 23 */ 24 24 public function __construct() { … … 37 37 * Fires inside __construct() method for BP_XProfile_Field_Type_Checkbox class. 38 38 * 39 * @since BuddyPress (2.0.0)39 * @since 2.0.0 40 40 * 41 41 * @param BP_XProfile_Field_Type_Checkbox $this Current instance of … … 51 51 * 52 52 * @param array $raw_properties Optional key/value array of {@link http://dev.w3.org/html5/markup/input.checkbox.html permitted attributes} that you want to add. 53 * @since BuddyPress (2.0.0)53 * @since 2.0.0 54 54 */ 55 55 public function edit_field_html( array $raw_properties = array() ) { … … 98 98 * 99 99 * @param array $args Optional. The arguments passed to {@link bp_the_profile_field_options()}. 100 * @since BuddyPress (2.0.0)100 * @since 2.0.0 101 101 */ 102 102 public function edit_field_options_html( array $args = array() ) { … … 148 148 * Filters the HTML output for an individual field options checkbox. 149 149 * 150 * @since BuddyPress (1.1.0)150 * @since 1.1.0 151 151 * 152 152 * @param string $new_html Label and checkbox input field. … … 168 168 * 169 169 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 170 * @since BuddyPress (2.0.0)170 * @since 2.0.0 171 171 */ 172 172 public function admin_field_html( array $raw_properties = array() ) { … … 181 181 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 182 182 * @param string $control_type Optional. HTML input type used to render the current field's child options. 183 * @since BuddyPress (2.0.0)183 * @since 2.0.0 184 184 */ 185 185 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) { -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php
r9819 r10140 1 1 <?php 2 2 /** 3 * BuddyPress XProfile Classes 3 * BuddyPress XProfile Classes. 4 4 * 5 5 * @package BuddyPress … … 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 13 13 * Datebox xprofile field type. 14 14 * 15 * @since BuddyPress (2.0.0)15 * @since 2.0.0 16 16 */ 17 17 class BP_XProfile_Field_Type_Datebox extends BP_XProfile_Field_Type { … … 20 20 * Constructor for the datebox field type 21 21 * 22 * @since BuddyPress (2.0.0)22 * @since 2.0.0 23 23 */ 24 24 public function __construct() { … … 33 33 * Fires inside __construct() method for BP_XProfile_Field_Type_Datebox class. 34 34 * 35 * @since BuddyPress (2.0.0)35 * @since 2.0.0 36 36 * 37 37 * @param BP_XProfile_Field_Type_Datebox $this Current instance of … … 47 47 * 48 48 * @param array $raw_properties Optional key/value array of {@link http://dev.w3.org/html5/markup/input.html permitted attributes} that you want to add. 49 * @since BuddyPress (2.0.0)49 * @since 2.0.0 50 50 */ 51 51 public function edit_field_html( array $raw_properties = array() ) { … … 88 88 * your needed target ID. 89 89 * 90 * @since BuddyPress (1.8.0)90 * @since 1.8.0 91 91 */ 92 92 do_action( bp_get_the_profile_field_errors_action() ); ?> … … 129 129 * 130 130 * @param array $args Optional. The arguments passed to {@link bp_the_profile_field_options()}. 131 * @since BuddyPress (2.0.0)131 * @since 2.0.0 132 132 */ 133 133 public function edit_field_options_html( array $args = array() ) { … … 224 224 * Filters the output for the profile field datebox. 225 225 * 226 * @since BuddyPress (1.1.0)226 * @since 1.1.0 227 227 * 228 228 * @param string $html HTML output for the field. … … 243 243 * 244 244 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 245 * @since BuddyPress (2.0.0)245 * @since 2.0.0 246 246 */ 247 247 public function admin_field_html( array $raw_properties = array() ) { … … 283 283 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 284 284 * @param string $control_type Optional. HTML input type used to render the current field's child options. 285 * @since BuddyPress (2.0.0)285 * @since 2.0.0 286 286 */ 287 287 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {} … … 290 290 * Format Date values for display. 291 291 * 292 * @since BuddyPress (2.1.0)292 * @since 2.1.0 293 293 * 294 294 * @param string $field_value The date value, as saved in the database. -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-multiselectbox.php
r9819 r10140 1 1 <?php 2 2 /** 3 * BuddyPress XProfile Classes 3 * BuddyPress XProfile Classes. 4 4 * 5 5 * @package BuddyPress … … 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 13 13 * Multi-selectbox xprofile field type. 14 14 * 15 * @since BuddyPress (2.0.0)15 * @since 2.0.0 16 16 */ 17 17 class BP_XProfile_Field_Type_Multiselectbox extends BP_XProfile_Field_Type { … … 20 20 * Constructor for the multi-selectbox field type 21 21 * 22 * @since BuddyPress (2.0.0)22 * @since 2.0.0 23 23 */ 24 24 public function __construct() { … … 37 37 * Fires inside __construct() method for BP_XProfile_Field_Type_Multiselectbox class. 38 38 * 39 * @since BuddyPress (2.0.0)39 * @since 2.0.0 40 40 * 41 41 * @param BP_XProfile_Field_Type_Multiselectbox $this Current instance of … … 51 51 * 52 52 * @param array $raw_properties Optional key/value array of {@link http://dev.w3.org/html5/markup/select.html permitted attributes} that you want to add. 53 * @since BuddyPress (2.0.0)53 * @since 2.0.0 54 54 */ 55 55 public function edit_field_html( array $raw_properties = array() ) { … … 105 105 * 106 106 * @param array $args Optional. The arguments passed to {@link bp_the_profile_field_options()}. 107 * @since BuddyPress (2.0.0)107 * @since 2.0.0 108 108 */ 109 109 public function edit_field_options_html( array $args = array() ) { … … 148 148 * Filters the HTML output for options in a multiselect input. 149 149 * 150 * @since BuddyPress (1.5.0)150 * @since 1.5.0 151 151 * 152 152 * @param string $value Option tag for current value being rendered. … … 168 168 * 169 169 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 170 * @since BuddyPress (2.0.0)170 * @since 2.0.0 171 171 */ 172 172 public function admin_field_html( array $raw_properties = array() ) { … … 189 189 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 190 190 * @param string $control_type Optional. HTML input type used to render the current field's child options. 191 * @since BuddyPress (2.0.0)191 * @since 2.0.0 192 192 */ 193 193 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) { -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-number.php
r9819 r10140 13 13 * Number xprofile field type. 14 14 * 15 * @since BuddyPress (2.0.0)15 * @since 2.0.0 16 16 */ 17 17 class BP_XProfile_Field_Type_Number extends BP_XProfile_Field_Type { … … 20 20 * Constructor for the number field type 21 21 * 22 * @since BuddyPress (2.0.0)22 * @since 2.0.0 23 23 */ 24 24 public function __construct() { … … 33 33 * Fires inside __construct() method for BP_XProfile_Field_Type_Number class. 34 34 * 35 * @since BuddyPress (2.0.0)35 * @since 2.0.0 36 36 * 37 37 * @param BP_XProfile_Field_Type_Number $this Current instance of … … 47 47 * 48 48 * @param array $raw_properties Optional key/value array of {@link http://dev.w3.org/html5/markup/input.number.html permitted attributes} that you want to add. 49 * @since BuddyPress (2.0.0)49 * @since 2.0.0 50 50 */ 51 51 public function edit_field_html( array $raw_properties = array() ) { … … 85 85 * 86 86 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 87 * @since BuddyPress (2.0.0)87 * @since 2.0.0 88 88 */ 89 89 public function admin_field_html( array $raw_properties = array() ) { … … 102 102 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 103 103 * @param string $control_type Optional. HTML input type used to render the current field's child options. 104 * @since BuddyPress (2.0.0)104 * @since 2.0.0 105 105 */ 106 106 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {}
Note: See TracChangeset
for help on using the changeset viewer.