manager
class manager
Custom Profile Fields (CPF) manager.
Properties
protected auth | $auth | ||
protected db_text | $config_text | ||
protected driver_interface | $db | ||
protected tools | $db_tools | ||
protected dispatcher_interface | $dispatcher | ||
protected language | $language | ||
protected log | $log | ||
protected request | $request | ||
protected template | $template | ||
protected service_collection | $type_collection | ||
protected user | $user | ||
protected string | $fields_table | ||
protected string | $fields_data_table | ||
protected string | $fields_data_lang_table | ||
protected string | $fields_lang_table | ||
protected array | $profile_cache |
Methods
Construct
Assign editable fields to template.
Build profile cache, used for display.
Submit profile field for validation.
Update profile field data directly.
Generate the template arrays in order to display the column names.
Grab the user specific profile fields data.
Generate the user's profile fields data for the template.
Build array for the custom profile fields table.
Disable all profile fields of a certain type.
Purge all profile fields of a certain type.
Enable the profile fields of a certain type.
Details
at line 88
__construct(auth $auth, db_text $config_text, driver_interface $db, tools $db_tools, dispatcher_interface $dispatcher, language $language, log $log, request $request, template $template, service_collection $type_collection, user $user, string $fields_table, string $fields_data_table, string $fields_data_lang_table, string $fields_lang_table)
Construct
at line 133
void
generate_profile_fields(string $mode, int $lang_id)
Assign editable fields to template.
Called by ucp_profile and ucp_register.
at line 193
protected void
build_cache()
Build profile cache, used for display.
at line 225
submit_cp_field(string $mode, int $lang_id, array $cp_data, array $cp_error)
Submit profile field for validation.
at line 290
update_profile_field_data(int $user_id, array $cp_data)
Update profile field data directly.
at line 319
array
generate_profile_fields_template_headlines(string $restrict_option = '')
Generate the template arrays in order to display the column names.
at line 371
array
grab_profile_fields_data(int|array $user_ids = 0)
Grab the user specific profile fields data.
at line 438
array
generate_profile_fields_template_data(array $profile_row, bool $use_contact_fields = true)
Generate the user's profile fields data for the template.
at line 541
array
build_insert_sql_array(array $cp_data)
Build array for the custom profile fields table.
at line 578
disable_profilefields(string $type_name)
Disable all profile fields of a certain type.
This should be called when an extension which has profile field types is disabled so that all those profile fields are hidden and do not cause errors.
at line 614
purge_profilefields(string $type_name)
Purge all profile fields of a certain type.
This should be called when an extension which has profile field types is purged so that all those profile fields are removed.
at line 680
enable_profilefields(string $type_name)
Enable the profile fields of a certain type.
This should be called when an extension which has profile field types that was disabled is re-enabled so that all those profile fields that were disabled are enabled again.