[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-xprofile/classes/ -> class-bp-xprofile-field-type-checkbox.php (summary)

BuddyPress XProfile Classes.

File Size: 213 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BP_XProfile_Field_Type_Checkbox:: (5 methods):
  __construct()
  edit_field_html()
  edit_field_options_html()
  admin_field_html()
  admin_new_field_html()


Class: BP_XProfile_Field_Type_Checkbox  - X-Ref

Checkbox xprofile field type.

__construct()   X-Ref
Constructor for the checkbox field type.

since: 2.0.0

edit_field_html( array $raw_properties = array()   X-Ref
Output the edit field HTML for this field type.

Must be used inside the {@link bp_profile_fields()} template loop.

since: 2.0.0
param: array $raw_properties Optional key/value array of

edit_field_options_html( array $args = array()   X-Ref
Output the edit field options HTML for this field type.

BuddyPress considers a field's "options" to be, for example, the items in a selectbox.
These are stored separately in the database, and their templating is handled separately.

This templating is separate from {@link BP_XProfile_Field_Type::edit_field_html()} because
it's also used in the wp-admin screens when creating new fields, and for backwards compatibility.

Must be used inside the {@link bp_profile_fields()} template loop.

since: 2.0.0
param: array $args Optional. The arguments passed to {@link bp_the_profile_field_options()}.

admin_field_html( array $raw_properties = array()   X-Ref
Output HTML for this field type on the wp-admin Profile Fields screen.

Must be used inside the {@link bp_profile_fields()} template loop.

since: 2.0.0
param: array $raw_properties Optional key/value array of permitted attributes that you want to add.

admin_new_field_html( BP_XProfile_Field $current_field, $control_type = '' )   X-Ref
Output HTML for this field type's children options on the wp-admin Profile Fields "Add Field" and "Edit Field" screens.

Must be used inside the {@link bp_profile_fields()} template loop.

since: 2.0.0
param: BP_XProfile_Field $current_field The current profile field on the add/edit screen.
param: string            $control_type  Optional. HTML input type used to render the current



Generated: Mon Sep 23 01:01:44 2019 Cross-referenced by PHPXref 0.7.1