class manager
Custom Profile Fields
Methods
__construct(auth $auth, driver_interface $db, dispatcher_interface $dispatcher, request $request, template $template, service_collection $type_collection, user $user, $fields_table, $fields_language_table, $fields_data_table)
Construct |
||
generate_profile_fields($mode, $lang_id)
Assign editable fields to template, mode can be profile (for profile change) or register (for registration) Called by ucpprofile and ucpregister |
||
submit_cp_field($mode, $lang_id, $cp_data, $cp_error)
Submit profile field for validation |
||
update_profile_field_data($user_id, $cp_data)
Update profile field data directly |
||
array |
generate_profile_fields_template_headlines(string $restrict_option = '')
Generate the template arrays in order to display the column names |
|
array |
grab_profile_fields_data($user_ids)
Grab the user specific profile fields data |
|
array |
generate_profile_fields_template_data(array $profile_row, bool $use_contact_fields = true)
Assign the user's profile fields data to the template |
|
build_insert_sql_array($cp_data)
Build Array for user insertion into custom profile fields table |
Details
at line 85
public
__construct(auth $auth, driver_interface $db, dispatcher_interface $dispatcher, request $request, template $template, service_collection $type_collection, user $user, $fields_table, $fields_language_table, $fields_data_table)
Construct
at line 104
public
generate_profile_fields($mode, $lang_id)
Assign editable fields to template, mode can be profile (for profile change) or register (for registration) Called by ucpprofile and ucpregister
at line 181
public
submit_cp_field($mode, $lang_id, $cp_data, $cp_error)
Submit profile field for validation
at line 231
public
update_profile_field_data($user_id, $cp_data)
Update profile field data directly
at line 259
public array
generate_profile_fields_template_headlines(string $restrict_option = '')
Generate the template arrays in order to display the column names
at line 314
public array
grab_profile_fields_data($user_ids)
Grab the user specific profile fields data
at line 386
public array
generate_profile_fields_template_data(array $profile_row, bool $use_contact_fields = true)
Assign the user's profile fields data to the template
at line 478
public
build_insert_sql_array($cp_data)
Build Array for user insertion into custom profile fields table