Changeset 10418
- Timestamp:
- 12/22/2015 05:33:22 AM (9 years ago)
- Location:
- trunk/src/bp-xprofile
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-admin.php
r10417 r10418 758 758 * @since 2.0.0 759 759 * 760 * @param int $user_id ID of the user being edited.761 * @param string $screen_id Screen ID to load the metabox in.762 * @param object $stats_metabox Context and priority for the stats metabox.760 * @param int $user_id ID of the user being edited. 761 * @param string $screen_id Screen ID to load the metabox in. 762 * @param object|null $stats_metabox Context and priority for the stats metabox. 763 763 */ 764 764 public function register_metaboxes( $user_id = 0, $screen_id = '', $stats_metabox = null ) { … … 960 960 * @since 2.0.0 961 961 * 962 * @param WP_User $user The WP_User object for the user being edited.963 * @param array $args Aray of arguments for metaboxes.962 * @param WP_User|null $user The WP_User object for the user being edited. 963 * @param array $args Aray of arguments for metaboxes. 964 964 */ 965 965 public function user_admin_profile_metaboxes( $user = null, $args = array() ) { … … 1071 1071 * @since 2.0.0 1072 1072 * 1073 * @param WP_User $user The WP_User object for the user being edited.1073 * @param WP_User|null $user The WP_User object for the user being edited. 1074 1074 */ 1075 1075 public function user_admin_spammer_metabox( $user = null ) { … … 1084 1084 * @since 2.0.0 1085 1085 * 1086 * @param WP_User $user The WP_User object for the user being edited.1086 * @param WP_User|null $user The WP_User object for the user being edited. 1087 1087 */ 1088 1088 public function user_admin_avatar_metabox( $user = null ) { -
trunk/src/bp-xprofile/bp-xprofile-filters.php
r10417 r10418 115 115 * Run profile field values through kses with filterable allowed tags. 116 116 * 117 * @param string $content Content to filter.118 * @param object $data_obj The BP_XProfile_ProfileData object.117 * @param string $content Content to filter. 118 * @param object|null $data_obj The BP_XProfile_ProfileData object. 119 119 * 120 120 * @return string $content … … 155 155 * Safely runs profile field data through kses and force_balance_tags. 156 156 * 157 * @param string $field_value Field value being santized.158 * @param int $field_id Field ID being sanitized.159 * @param bool $reserialize Whether to reserialize arrays before returning. Defaults to true.160 * @param object $data_obj The BP_XProfile_ProfileData object.157 * @param string $field_value Field value being santized. 158 * @param int $field_id Field ID being sanitized. 159 * @param bool $reserialize Whether to reserialize arrays before returning. Defaults to true. 160 * @param object|null $data_obj The BP_XProfile_ProfileData object. 161 161 * 162 162 * @return string … … 240 240 * @since 2.4.0 Added `$field_id` parameter. 241 241 * 242 * @param mixed $field_value Field value.243 * @param string $field_type Field type.244 * @param int$field_id Optional. ID of the field.242 * @param mixed $field_value Field value. 243 * @param string $field_type Field type. 244 * @param string|int $field_id Optional. ID of the field. 245 245 * 246 246 * @return mixed -
trunk/src/bp-xprofile/bp-xprofile-functions.php
r10417 r10418 667 667 * @param int $user_id The user ID. Optional. 668 668 * 669 * @return array ()Array containing the path, URL, and other helpful settings.669 * @return array Array containing the path, URL, and other helpful settings. 670 670 */ 671 671 function xprofile_avatar_upload_dir( $directory = 'avatars', $user_id = 0 ) { … … 1028 1028 * @since 2.4.0 1029 1029 * 1030 * @param int $field_id Optional. Default current field ID.1030 * @param int|null $field_id Optional. Default current field ID. 1031 1031 * @return bool 1032 1032 */ -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php
r10417 r10418 308 308 * @since 2.4.0 Added the `$field_id` parameter. 309 309 * 310 * @param string $field_value The date value, as saved in the database. Typically, this is a MySQL-formatted311 * date string (Y-m-d H:i:s).312 * @param int$field_id Optional. ID of the field.310 * @param string $field_value The date value, as saved in the database. Typically, this is a MySQL-formatted 311 * date string (Y-m-d H:i:s). 312 * @param string|int $field_id Optional. ID of the field. 313 313 * 314 314 * @return string Date formatted by bp_format_time(). -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php
r10417 r10418 129 129 * @since 2.4.0 Added the `$field_id` parameter. 130 130 * 131 * @param string $submitted_value Raw value submitted by the user.132 * @param int$field_id Optional. ID of the field.131 * @param string $submitted_value Raw value submitted by the user. 132 * @param string|int $field_id Optional. ID of the field. 133 133 * 134 134 * @return string … … 159 159 * @since 2.4.0 Added the `$field_id` parameter. 160 160 * 161 * @param string $field_value The URL value, as saved in the database.162 * @param int$field_id Optional. ID of the field.161 * @param string $field_value The URL value, as saved in the database. 162 * @param string|int $field_id Optional. ID of the field. 163 163 * 164 164 * @return string URL converted to a link. -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type.php
r10417 r10418 119 119 * @param string $replace_format Optional; if 'replace', replaces the format instead of adding to it. 120 120 * Defaults to 'add'. 121 *122 121 * @return BP_XProfile_Field_Type 123 122 */ … … 154 153 * 155 154 * @param string|array $values Whitelisted values. 156 *157 155 * @return BP_XProfile_Field_Type 158 156 */ … … 183 181 * 184 182 * @param string|array $values Value to check against the registered formats. 185 *186 183 * @return bool True if the value validates 187 184 */ … … 236 233 * 237 234 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 235 * @return void 238 236 */ 239 237 abstract public function edit_field_html( array $raw_properties = array() ); … … 244 242 * Must be used inside the {@link bp_profile_fields()} template loop. 245 243 * 244 * @since 2.0.0 245 * 246 246 * @param array $raw_properties Optional key/value array of permitted attributes that you want to add. 247 * @ since 2.0.0247 * @return void 248 248 */ 249 249 abstract public function admin_field_html( array $raw_properties = array() ); … … 419 419 * @since 2.4.0 Added the `$field_id` parameter. 420 420 * 421 * @param mixed $field_value Submitted field value. 422 * @param int $field_id Optional. ID of the field. 423 * 421 * @param mixed $field_value Submitted field value. 422 * @param string|int $field_id Optional. ID of the field. 424 423 * @return mixed 425 424 */ … … 438 437 * @since 2.4.0 Added `$field_id` parameter. 439 438 * 440 * @param mixed $field_value Field value. 441 * @param int $field_id ID of the field. 442 * 439 * @param mixed $field_value Field value. 440 * @param string|int $field_id ID of the field. 443 441 * @return mixed 444 442 */ … … 458 456 * 459 457 * @param array $properties Optional key/value array of attributes for this edit field. 460 *461 458 * @return string 462 459 */ -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php
r10417 r10418 196 196 * @global object $userdata 197 197 * 198 * @param int $id Field ID.199 * @param int 200 * @param bool $get_data Get data.198 * @param int $id Field ID. 199 * @param int|null $user_id User ID. 200 * @param bool $get_data Get data. 201 201 */ 202 202 public function populate( $id, $user_id = null, $get_data = true ) { -
trunk/src/bp-xprofile/classes/class-bp-xprofile-meta-query.php
r10417 r10418 97 97 * @since 2.3.0 98 98 * 99 * @param string $type Type of meta, eg 'user', 'post'.100 * @param string $primary_table Database table where the object being filtered is stored (eg wp_users).101 * @param string $primary_id_column ID column for the filtered object in $primary_table.102 * @param object $context Optional. The main query object.99 * @param string $type Type of meta, eg 'user', 'post'. 100 * @param string $primary_table Database table where the object being filtered is stored (eg wp_users). 101 * @param string $primary_id_column ID column for the filtered object in $primary_table. 102 * @param object|null $context Optional. The main query object. 103 103 * 104 104 * @return array {
Note: See TracChangeset
for help on using the changeset viewer.