[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-xprofile/classes/ -> class-bp-xprofile-group.php (summary)

BuddyPress XProfile Classes.

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

Defines 1 class

BP_XProfile_Group:: (13 methods):
  __construct()
  populate()
  save()
  delete()
  get()
  get_group_ids()
  get_group_field_ids()
  get_group_data()
  admin_validate()
  update_position()
  fetch_visibility_level()
  fetch_default_visibility_levels()
  render_admin_form()


Class: BP_XProfile_Group  - X-Ref

Class to help set up XProfile Groups.

__construct( $id = null )   X-Ref
Initialize and/or populate profile field group.

since: 1.1.0
param: int|null $id Field group ID.

populate( $id )   X-Ref
Populate a profile field group.

since: 1.0.0
return: boolean
param: int $id Field group ID.

save()   X-Ref
Save a profile field group.

since: 1.1.0
return: boolean

delete()   X-Ref
Delete a profile field group

since: 1.1.0
return: boolean

get( $args = array()   X-Ref
Populates the BP_XProfile_Group object with profile field groups, fields,
and field data.

since: 1.2.0
return: array $groups
param: array $args {

get_group_ids( $args = array()   X-Ref
Gets group IDs, based on passed parameters.

since: 5.0.0
return: array
param: array $args {

get_group_field_ids( $group_ids, $args = array()   X-Ref
Gets group field IDs, based on passed parameters.

since: 5.0.0
return: array
param: array $group_ids Array of group IDs.
param: array $args {

get_group_data( $group_ids )   X-Ref
Get data about a set of groups, based on IDs.

since: 2.0.0
return: array
param: array $group_ids Array of IDs.

admin_validate()   X-Ref
Validate field group when form submitted.

since: 1.0.0
return: boolean

update_position( $field_group_id, $position )   X-Ref
Update field group position.

since: 1.5.0
return: boolean
param: int $field_group_id ID of the group the field belongs to.
param: int $position       Field group position.

fetch_visibility_level( $user_id = 0, $fields = array()   X-Ref
Fetch the field visibility level for the fields returned by the query.

since: 1.6.0
return: array $fields The database results, with field_visibility added
param: int   $user_id The profile owner's user_id.
param: array $fields  The database results returned by the get() query.

fetch_default_visibility_levels()   X-Ref
Fetch the admin-set preferences for all fields.

since: 1.6.0
return: array $default_visibility_levels An array, keyed by field_id, of default

render_admin_form()   X-Ref
Output the admin area field group form.

since: 1.0.0



Generated: Tue Aug 4 01:01:34 2020 Cross-referenced by PHPXref 0.7.1