Changeset 10142
- Timestamp:
- 09/25/2015 02:19:11 AM (9 years ago)
- Location:
- trunk/src/bp-xprofile/classes
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-number.php
r10140 r10142 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/classes/class-bp-xprofile-field-type-placeholder.php
r9819 r10142 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 15 15 * Used if an existing field has an unknown type (e.g. one provided by a missing third-party plugin). 16 16 * 17 * @since BuddyPress (2.0.1)17 * @since 2.0.1 18 18 */ 19 19 class BP_XProfile_Field_Type_Placeholder extends BP_XProfile_Field_Type { … … 22 22 * Constructor for the placeholder field type. 23 23 * 24 * @since BuddyPress (2.0.1)24 * @since 2.0.1 25 25 */ 26 26 public function __construct() { … … 32 32 * 33 33 * @param array $raw_properties Optional key/value array of {@link http://dev.w3.org/html5/markup/input.text.html permitted attributes} that you want to add. 34 * @since BuddyPress (2.0.1)34 * @since 2.0.1 35 35 */ 36 36 public function edit_field_html( array $raw_properties = array() ) { … … 41 41 * 42 42 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 43 * @since BuddyPress (2.0.1)43 * @since 2.0.1 44 44 */ 45 45 public function admin_field_html( array $raw_properties = array() ) { … … 51 51 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 52 52 * @param string $control_type Optional. HTML input type used to render the current field's child options. 53 * @since BuddyPress (2.0.1)53 * @since 2.0.1 54 54 */ 55 55 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {} -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php
r9819 r10142 13 13 * Radio button 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_Radiobutton extends BP_XProfile_Field_Type { … … 20 20 * Constructor for the radio button field type 21 21 * 22 * @since BuddyPress (2.0.0)22 * @since 2.0.0 23 23 */ 24 24 public function __construct() { … … 35 35 * Fires inside __construct() method for BP_XProfile_Field_Type_Radiobutton class. 36 36 * 37 * @since BuddyPress (2.0.0)37 * @since 2.0.0 38 38 * 39 39 * @param BP_XProfile_Field_Type_Radiobutton $this Current instance of … … 49 49 * 50 50 * @param array $raw_properties Optional key/value array of {@link http://dev.w3.org/html5/markup/input.radio.html permitted attributes} that you want to add. 51 * @since BuddyPress (2.0.0)51 * @since 2.0.0 52 52 */ 53 53 public function edit_field_html( array $raw_properties = array() ) { … … 103 103 * 104 104 * @param array $args Optional. The arguments passed to {@link bp_the_profile_field_options()}. 105 * @since BuddyPress (2.0.0)105 * @since 2.0.0 106 106 */ 107 107 public function edit_field_options_html( array $args = array() ) { … … 141 141 * Filters the HTML output for an individual field options radio button. 142 142 * 143 * @since BuddyPress (1.1.0)143 * @since 1.1.0 144 144 * 145 145 * @param string $new_html Label and radio input field. … … 161 161 * 162 162 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 163 * @since BuddyPress (2.0.0)163 * @since 2.0.0 164 164 */ 165 165 public function admin_field_html( array $raw_properties = array() ) { … … 184 184 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 185 185 * @param string $control_type Optional. HTML input type used to render the current field's child options. 186 * @since BuddyPress (2.0.0)186 * @since 2.0.0 187 187 */ 188 188 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) { -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-selectbox.php
r9819 r10142 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 13 13 * 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_Selectbox extends BP_XProfile_Field_Type { … … 20 20 * Constructor for the selectbox field type 21 21 * 22 * @since BuddyPress (2.0.0)22 * @since 2.0.0 23 23 */ 24 24 public function __construct() { … … 35 35 * Fires inside __construct() method for BP_XProfile_Field_Type_Selectbox class. 36 36 * 37 * @since BuddyPress (2.0.0)37 * @since 2.0.0 38 38 * 39 39 * @param BP_XProfile_Field_Type_Selectbox $this Current instance of … … 49 49 * 50 50 * @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. 51 * @since BuddyPress (2.0.0)51 * @since 2.0.0 52 52 */ 53 53 public function edit_field_html( array $raw_properties = array() ) { … … 93 93 * 94 94 * @param array $args Optional. The arguments passed to {@link bp_the_profile_field_options()}. 95 * @since BuddyPress (2.0.0)95 * @since 2.0.0 96 96 */ 97 97 public function edit_field_options_html( array $args = array() ) { … … 136 136 * Filters the HTML output for options in a select input. 137 137 * 138 * @since BuddyPress (1.1.0)138 * @since 1.1.0 139 139 * 140 140 * @param string $value Option tag for current value being rendered. … … 156 156 * 157 157 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 158 * @since BuddyPress (2.0.0)158 * @since 2.0.0 159 159 */ 160 160 public function admin_field_html( array $raw_properties = array() ) { … … 175 175 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 176 176 * @param string $control_type Optional. HTML input type used to render the current field's child options. 177 * @since BuddyPress (2.0.0)177 * @since 2.0.0 178 178 */ 179 179 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) { -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php
r9819 r10142 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 13 13 * Textarea 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_Textarea extends BP_XProfile_Field_Type { … … 20 20 * Constructor for the textarea 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_Textarea class. 34 34 * 35 * @since BuddyPress (2.0.0)35 * @since 2.0.0 36 36 * 37 37 * @param BP_XProfile_Field_Type_Textarea $this Current instance of … … 47 47 * 48 48 * @param array $raw_properties Optional key/value array of {@link http://dev.w3.org/html5/markup/textarea.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() ) { … … 104 104 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 105 105 * @param string $control_type Optional. HTML input type used to render the current field's child options. 106 * @since BuddyPress (2.0.0)106 * @since 2.0.0 107 107 */ 108 108 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {} -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php
r9819 r10142 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 13 13 * Textbox 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_Textbox extends BP_XProfile_Field_Type { … … 20 20 * Constructor for the textbox 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_Textbox class. 34 34 * 35 * @since BuddyPress (2.0.0)35 * @since 2.0.0 36 36 * 37 37 * @param BP_XProfile_Field_Type_Textbox $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.text.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() ) { … … 104 104 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 105 105 * @param string $control_type Optional. HTML input type used to render the current field's child options. 106 * @since BuddyPress (2.0.0)106 * @since 2.0.0 107 107 */ 108 108 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {} -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php
r9819 r10142 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 13 13 * URL xprofile field type. 14 14 * 15 * @since BuddyPress (2.1.0)15 * @since 2.1.0 16 16 */ 17 17 class BP_XProfile_Field_Type_URL extends BP_XProfile_Field_Type { … … 20 20 * Constructor for the URL field type 21 21 * 22 * @since BuddyPress (2.1.0)22 * @since 2.1.0 23 23 */ 24 24 public function __construct() { … … 33 33 * Fires inside __construct() method for BP_XProfile_Field_Type_URL class. 34 34 * 35 * @since BuddyPress (2.0.0)35 * @since 2.0.0 36 36 * 37 37 * @param BP_XProfile_Field_Type_URL $this Current instance of … … 49 49 * {@link http://dev.w3.org/html5/markup/input.number.html permitted attributes} 50 50 * that you want to add. 51 * @since BuddyPress (2.1.0)51 * @since 2.1.0 52 52 */ 53 53 public function edit_field_html( array $raw_properties = array() ) { … … 89 89 * @param array $raw_properties Optional key/value array of permitted 90 90 * attributes that you want to add. 91 * @since BuddyPress (2.1.0)91 * @since 2.1.0 92 92 */ 93 93 public function admin_field_html( array $raw_properties = array() ) { … … 109 109 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 110 110 * @param string $control_type Optional. HTML input type used to render the current field's child options. 111 * @since BuddyPress (2.1.0)111 * @since 2.1.0 112 112 */ 113 113 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) {} … … 123 123 * is_valid(). 124 124 * 125 * @since BuddyPress (2.1.0)125 * @since 2.1.0 126 126 * 127 127 * @param string $submitted_value Raw value submitted by the user. … … 150 150 * Format URL values for display. 151 151 * 152 * @since BuddyPress (2.1.0)152 * @since 2.1.0 153 153 * 154 154 * @param string $field_value The URL value, as saved in the database. -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type.php
r9819 r10142 13 13 * Represents a type of XProfile field and holds meta information about the type of value that it accepts. 14 14 * 15 * @since BuddyPress (2.0.0)15 * @since 2.0.0 16 16 */ 17 17 abstract class BP_XProfile_Field_Type { 18 18 19 19 /** 20 * @since BuddyPress (2.0.0)20 * @since 2.0.0 21 21 * @var array Field type validation regexes 22 22 */ … … 24 24 25 25 /** 26 * @since BuddyPress (2.0.0)26 * @since 2.0.0 27 27 * @var array Field type whitelisted values 28 28 */ … … 30 30 31 31 /** 32 * @since BuddyPress (2.0.0)32 * @since 2.0.0 33 33 * @var string The name of this field type 34 34 */ … … 38 38 * The name of the category that this field type should be grouped with. Used on the [Users > Profile Fields] screen in wp-admin. 39 39 * 40 * @since BuddyPress (2.0.0)40 * @since 2.0.0 41 41 * @var string 42 42 */ … … 44 44 45 45 /** 46 * @since BuddyPress (2.0.0)46 * @since 2.0.0 47 47 * @var bool If this is set, allow BP to store null/empty values for this field type. 48 48 */ … … 52 52 * If this is set, BP will set this field type's validation whitelist from the field's options (e.g checkbox, selectbox). 53 53 * 54 * @since BuddyPress (2.0.0)54 * @since 2.0.0 55 55 * @var bool Does this field support options? e.g. selectbox, radio buttons, etc. 56 56 */ … … 58 58 59 59 /** 60 * @since BuddyPress (2.0.0)60 * @since 2.0.0 61 61 * @var bool Does this field type support multiple options being set as default values? e.g. multiselectbox, checkbox. 62 62 */ … … 64 64 65 65 /** 66 * @since BuddyPress (2.0.0)66 * @since 2.0.0 67 67 * @var BP_XProfile_Field If this object is created by instantiating a {@link BP_XProfile_Field}, this is a reference back to that object. 68 68 */ … … 72 72 * Constructor 73 73 * 74 * @since BuddyPress (2.0.0)74 * @since 2.0.0 75 75 */ 76 76 public function __construct() { … … 79 79 * Fires inside __construct() method for BP_XProfile_Field_Type class. 80 80 * 81 * @since BuddyPress (2.0.0)81 * @since 2.0.0 82 82 * 83 83 * @param BP_XProfile_Field_Type $this Current instance of … … 96 96 * @param string $replace_format Optional; if 'replace', replaces the format instead of adding to it. Defaults to 'add'. 97 97 * @return BP_XProfile_Field_Type 98 * @since BuddyPress (2.0.0)98 * @since 2.0.0 99 99 */ 100 100 public function set_format( $format, $replace_format = 'add' ) { … … 103 103 * Filters the regex format for the field type. 104 104 * 105 * @since BuddyPress (2.0.0)105 * @since 2.0.0 106 106 * 107 107 * @param string $format Regex string. … … 129 129 * @param string|array $values 130 130 * @return BP_XProfile_Field_Type 131 * @since BuddyPress (2.0.0)131 * @since 2.0.0 132 132 */ 133 133 public function set_whitelist_values( $values ) { … … 137 137 * Filters values for field type's whitelist that profile data will be asserted against. 138 138 * 139 * @since BuddyPress (2.0.0)139 * @since 2.0.0 140 140 * 141 141 * @param string $value Field value. … … 156 156 * @param string|array $values Value to check against the registered formats 157 157 * @return bool True if the value validates 158 * @since BuddyPress (2.0.0)158 * @since 2.0.0 159 159 */ 160 160 public function is_valid( $values ) { … … 191 191 * Filters whether or not field type is a valid format. 192 192 * 193 * @since BuddyPress (2.0.0)193 * @since 2.0.0 194 194 * 195 195 * @param bool $validated Whether or not the field type is valid. … … 206 206 * 207 207 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 208 * @since BuddyPress (2.0.0)208 * @since 2.0.0 209 209 */ 210 210 abstract public function edit_field_html( array $raw_properties = array() ); … … 223 223 * 224 224 * @param array $args Optional. The arguments passed to {@link bp_the_profile_field_options()}. 225 * @since BuddyPress (2.0.0)225 * @since 2.0.0 226 226 */ 227 227 public function edit_field_options_html( array $args = array() ) {} … … 233 233 * 234 234 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 235 * @since BuddyPress (2.0.0)235 * @since 2.0.0 236 236 */ 237 237 abstract public function admin_field_html( array $raw_properties = array() ); … … 248 248 * @param BP_XProfile_Field $current_field The current profile field on the add/edit screen. 249 249 * @param string $control_type Optional. HTML input type used to render the current field's child options. 250 * @since BuddyPress (2.0.0)250 * @since 2.0.0 251 251 */ 252 252 public function admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' ) { … … 357 357 * Fires at the end of the new field additional settings area. 358 358 * 359 * @since BuddyPress (2.3.0)359 * @since 2.3.0 360 360 * 361 361 * @param BP_XProfile_Field $current_field Current field being rendered. … … 383 383 * validation filtering. 384 384 * 385 * @since BuddyPress (2.1.0)385 * @since 2.1.0 386 386 * 387 387 * @param mixed $submitted_value Submitted value. … … 399 399 * filtering for output values. 400 400 * 401 * @since BuddyPress (2.1.0)401 * @since 2.1.0 402 402 * 403 403 * @param mixed $field_value Field value. … … 418 418 * @param array $properties Optional key/value array of attributes for this edit field. 419 419 * @return string 420 * @since BuddyPress (2.0.0)420 * @since 2.0.0 421 421 */ 422 422 protected function get_edit_field_html_elements( array $properties = array() ) { … … 436 436 * Filters the edit html elements and attributes. 437 437 * 438 * @since BuddyPress (2.0.0)438 * @since 2.0.0 439 439 * 440 440 * @param array $r Array of parsed arguments. -
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 -
trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php
r10023 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.1.0)15 * @since 1.1.0 16 16 * 17 17 * @var int ID of field group … … 20 20 21 21 /** 22 * @since BuddyPress (1.1.0)22 * @since 1.1.0 23 23 * 24 24 * @var string Name of field group … … 27 27 28 28 /** 29 * @since BuddyPress (1.1.0)29 * @since 1.1.0 30 30 * 31 31 * @var string Description of field group … … 34 34 35 35 /** 36 * @since BuddyPress (1.1.0)36 * @since 1.1.0 37 37 * 38 38 * @var bool Can this group be deleted? … … 41 41 42 42 /** 43 * @since BuddyPress (1.1.0)43 * @since 1.1.0 44 44 * 45 45 * @var int Group order relative to other groups … … 48 48 49 49 /** 50 * @since BuddyPress (1.1.0)50 * @since 1.1.0 51 51 * 52 52 * @var array Fields of group … … 57 57 * Initialize and/or populate profile field group 58 58 * 59 * @since BuddyPress (1.1.0)59 * @since 1.1.0 60 60 * 61 61 * @param int $id … … 72 72 * Populate a profile field group 73 73 * 74 * @since BuddyPress (1.0.0)74 * @since 1.0.0 75 75 * 76 76 * @global $wpdb $wpdb … … 105 105 * Save a profile field group 106 106 * 107 * @since BuddyPress (1.1.0)107 * @since 1.1.0 108 108 * 109 109 * @global object $wpdb … … 123 123 * Please use this hook to filter the properties above. Each part will be passed in. 124 124 * 125 * @since BuddyPress (1.0.0)125 * @since 1.0.0 126 126 * 127 127 * @param BP_XProfile_Group Current instance of the group being saved. Passed by reference. … … 154 154 * Fires after the current group instance gets saved. 155 155 * 156 * @since BuddyPress (1.0.0)156 * @since 1.0.0 157 157 * 158 158 * @param BP_XProfile_Group Current instance of the group being saved. Passed by reference. … … 166 166 * Delete a profile field group 167 167 * 168 * @since BuddyPress (1.1.0)168 * @since 1.1.0 169 169 * 170 170 * @global object $wpdb … … 182 182 * Fires before the current group instance gets deleted. 183 183 * 184 * @since BuddyPress (2.0.0)184 * @since 2.0.0 185 185 * 186 186 * @param BP_XProfile_Group Current instance of the group being deleted. Passed by reference. … … 209 209 * Fires after the current group instance gets deleted. 210 210 * 211 * @since BuddyPress (2.0.0)211 * @since 2.0.0 212 212 * 213 213 * @param BP_XProfile_Group Current instance of the group being deleted. Passed by reference. … … 469 469 * Get data about a set of groups, based on IDs. 470 470 * 471 * @since BuddyPress (2.0.0)471 * @since 2.0.0 472 472 * 473 473 * @param array $group_ids Array of IDs. … … 538 538 * Validate field group when form submitted 539 539 * 540 * @since BuddyPress (1.0.0)540 * @since 1.0.0 541 541 * 542 542 * @global string $message … … 559 559 * Update field group position 560 560 * 561 * @since BuddyPress (1.5.0)561 * @since 1.5.0 562 562 * 563 563 * @global $wpdb $wpdb … … 585 585 * Fetch the field visibility level for the fields returned by the query 586 586 * 587 * @since BuddyPress (1.6.0)587 * @since 1.6.0 588 588 * 589 589 * @param int $user_id The profile owner's user_id … … 613 613 * Filters the XProfile default visibility level for a field. 614 614 * 615 * @since BuddyPress (1.6.0)615 * @since 1.6.0 616 616 * 617 617 * @param string $value Default visibility value. … … 631 631 * Fetch the admin-set preferences for all fields. 632 632 * 633 * @since BuddyPress (1.6.0)633 * @since 1.6.0 634 634 * 635 635 * @return array $default_visibility_levels An array, keyed by … … 671 671 * Output the admin area field group form 672 672 * 673 * @since BuddyPress (1.0.0)673 * @since 1.0.0 674 674 * 675 675 * @global string $message … … 730 730 * Fires before XProfile Group submit metabox. 731 731 * 732 * @since BuddyPress (2.1.0)732 * @since 2.1.0 733 733 * 734 734 * @param BP_XProfile_Group $this Current XProfile group. … … 747 747 * Fires at the beginning of the XProfile Group publishing actions section. 748 748 * 749 * @since BuddyPress (2.1.0)749 * @since 2.1.0 750 750 * 751 751 * @param BP_XProfile_Group $this Current XProfile group. … … 771 771 * Fires after XProfile Group submit metabox. 772 772 * 773 * @since BuddyPress (2.1.0)773 * @since 2.1.0 774 774 * 775 775 * @param BP_XProfile_Group $this Current XProfile group. -
trunk/src/bp-xprofile/classes/class-bp-xprofile-meta-query.php
r9819 r10142 1 1 <?php 2 3 2 /** 4 3 * BuddyPress XProfile Classes … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 20 19 * to the primary SQL query string. 21 20 * 22 * @since BuddyPress (2.3.0)21 * @since 2.3.0 23 22 */ 24 23 class BP_XProfile_Meta_Query extends WP_Meta_Query { … … 30 29 * or 'object' array key. 31 30 * 32 * @since BuddyPress (2.3.0)31 * @since 2.3.0 33 32 * @access protected 34 33 * … … 43 42 * Constructs a meta query based on 'meta_*' query vars 44 43 * 45 * @since BuddyPress (2.3.0)44 * @since 2.3.0 46 45 * @access public 47 46 * … … 96 95 * Generates SQL clauses to be appended to a main query. 97 96 * 98 * @since BuddyPress (2.3.0)97 * @since 2.3.0 99 98 * @access public 100 99 * … … 134 133 * Filter the meta query's generated SQL. 135 134 * 136 * @since BuddyPress (2.3.0)135 * @since 2.3.0 137 136 * 138 137 * @param array $args { … … 155 154 * "First-order" means that it's an array with a 'key' or 'value'. 156 155 * 157 * @since BuddyPress (2.3.0)156 * @since 2.3.0 158 157 * @access public 159 158 * -
trunk/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php
r9819 r10142 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 … … 78 78 * Filters whether or not data already exists for the user. 79 79 * 80 * @since BuddyPress (1.2.7)80 * @since 1.2.7 81 81 * 82 82 * @param bool $retval Whether or not data already exists. … … 102 102 * Filters whether or not data is for a valid field 103 103 * 104 * @since BuddyPress (1.2.7)104 * @since 1.2.7 105 105 * 106 106 * @param bool $retval Whether or not data is valid. … … 125 125 * Please use this hook to filter the properties above. Each part will be passed in. 126 126 * 127 * @since BuddyPress (1.0.0)127 * @since 1.0.0 128 128 * 129 129 * @param BP_XProfile_ProfileData $this Current instance of the profile data being saved. … … 151 151 * Fires after the current profile data instance gets saved. 152 152 * 153 * @since BuddyPress (1.0.0)153 * @since 1.0.0 154 154 * 155 155 * @param BP_XProfile_ProfileData $this Current instance of the profile data being saved. … … 177 177 * Fires before the current profile data instance gets deleted. 178 178 * 179 * @since BuddyPress (1.9.0)179 * @since 1.9.0 180 180 * 181 181 * @param BP_XProfile_ProfileData $this Current instance of the profile data being deleted. … … 191 191 * Fires after the current profile data instance gets deleted. 192 192 * 193 * @since BuddyPress (1.9.0)193 * @since 1.9.0 194 194 * 195 195 * @param BP_XProfile_ProfileData $this Current instance of the profile data being deleted. -
trunk/src/bp-xprofile/classes/class-bp-xprofile-query.php
r9819 r10142 13 13 * Class for generating SQL clauses to filter a user query by xprofile data. 14 14 * 15 * @since BuddyPress (2.2.0)15 * @since 2.2.0 16 16 */ 17 17 class BP_XProfile_Query { … … 21 21 * See {@see WP_XProfile_Query::__construct()} for information on parameters. 22 22 * 23 * @since BuddyPress (2.2.0)23 * @since 2.2.0 24 24 * @access public 25 25 * @var array … … 30 30 * Database table that where the metadata's objects are stored (eg $wpdb->users). 31 31 * 32 * @since BuddyPress (2.2.0)32 * @since 2.2.0 33 33 * @access public 34 34 * @var string … … 39 39 * Column in primary_table that represents the ID of the object. 40 40 * 41 * @since BuddyPress (2.2.0)41 * @since 2.2.0 42 42 * @access public 43 43 * @var string … … 48 48 * A flat list of table aliases used in JOIN clauses. 49 49 * 50 * @since BuddyPress (2.2.0)50 * @since 2.2.0 51 51 * @access protected 52 52 * @var array … … 57 57 * Constructor. 58 58 * 59 * @since BuddyPress (2.2.0)59 * @since 2.2.0 60 60 * @access public 61 61 * … … 93 93 * Eliminates empty items and ensures that a 'relation' is set. 94 94 * 95 * @since BuddyPress (2.2.0)95 * @since 2.2.0 96 96 * @access public 97 97 * … … 160 160 * A first-order query clause is one that has either a 'key' or a 'value' array key. 161 161 * 162 * @since BuddyPress (2.2.0)162 * @since 2.2.0 163 163 * @access protected 164 164 * … … 173 173 * Return the appropriate alias for the given field type if applicable. 174 174 * 175 * @since BuddyPress (2.2.0)175 * @since 2.2.0 176 176 * @access public 177 177 * … … 203 203 * with WP's Query classes. 204 204 * 205 * @since BuddyPress (2.2.0)205 * @since 2.2.0 206 206 * @access protected 207 207 * … … 233 233 * If nested subqueries are found, this method recurses the tree to produce the properly nested SQL. 234 234 * 235 * @since BuddyPress (2.2.0)235 * @since 2.2.0 236 236 * @access protected 237 237 * … … 314 314 * Generates SQL clauses to be appended to a main query. 315 315 * 316 * @since BuddyPress (2.2.0)316 * @since 2.2.0 317 317 * @access public 318 318 * … … 349 349 * "First-order" means that it's an array with a 'field' or 'value'. 350 350 * 351 * @since BuddyPress (2.2.0)351 * @since 2.2.0 352 352 * @access public 353 353 * … … 499 499 * this * only applies to IN clauses that are connected by the relation OR. 500 500 * 501 * @since BuddyPress (2.2.0)501 * @since 2.2.0 502 502 * @access protected 503 503 *
Note: See TracChangeset
for help on using the changeset viewer.