[ Index ]

PHP Cross Reference of phpBB-3.3.2-deutsch

title

Body

[close]

/phpbb/profilefields/ -> manager.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 721 lines (23 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

manager:: (13 methods):
  __construct()
  generate_profile_fields()
  build_cache()
  submit_cp_field()
  update_profile_field_data()
  generate_profile_fields_template_headlines()
  grab_profile_fields_data()
  generate_profile_fields_template_data()
  build_insert_sql_array()
  disable_profilefields()
  purge_profilefields()
  enable_profilefields()
  list_profilefields()


Class: manager  - X-Ref

Custom Profile Fields (CPF) manager.

__construct(\phpbb\auth\auth $auth,\phpbb\config\db_text $config_text,\phpbb\db\driver\driver_interface $db,\phpbb\db\tools\tools $db_tools,\phpbb\event\dispatcher_interface $dispatcher,\phpbb\language\language $language,\phpbb\log\log $log,\phpbb\request\request $request,\phpbb\template\template $template,\phpbb\di\service_collection $type_collection,\phpbb\user $user,$fields_table,$fields_data_table,$fields_data_lang_table,$fields_lang_table)   X-Ref
Construct

param: \phpbb\auth\auth                    $auth                    Auth object
param: \phpbb\config\db_text                $config_text            Config_text object
param: \phpbb\db\driver\driver_interface    $db                        Database object
param: \phpbb\db\tools\tools                $db_tools                Database tools object
param: \phpbb\event\dispatcher_interface    $dispatcher                Event dispatcher object
param: \phpbb\language\language            $language                Language object
param: \phpbb\log\log                    $log                    Log object
param: \phpbb\request\request            $request                Request object
param: \phpbb\template\template            $template                Template object
param: \phpbb\di\service_collection        $type_collection        CPF Type collection
param: \phpbb\user                        $user                    User object
param: string                            $fields_table            CPF Table
param: string                            $fields_data_table        CPF Data table
param: string                            $fields_data_lang_table    CPF Data language table
param: string                            $fields_lang_table        CPF Language table

generate_profile_fields($mode, $lang_id)   X-Ref
Assign editable fields to template.

Called by ucp_profile and ucp_register.

param: string    $mode        The mode (profile|register)
param: int        $lang_id    The language identifier
return: void

build_cache()   X-Ref
Build profile cache, used for display.

return: void

submit_cp_field($mode, $lang_id, &$cp_data, &$cp_error)   X-Ref
Submit profile field for validation.

param: string    $mode        The mode (profile|register)
param: int        $lang_id    The language identifier
param: array        $cp_data    Custom profile field data
param: array        $cp_error    Custom profile field errors

update_profile_field_data($user_id, $cp_data)   X-Ref
Update profile field data directly.

param: int        $user_id        The user identifier
param: array        $cp_data        Custom profile field data

generate_profile_fields_template_headlines($restrict_option = '')   X-Ref
Generate the template arrays in order to display the column names.

param: string    $restrict_option    Restrict the published fields to a certain profile field option
return: array                        Returns an array with the template variables type,

grab_profile_fields_data($user_ids = 0)   X-Ref
Grab the user specific profile fields data.

param: int|array    $user_ids    Single user id or an array of ids
return: array                Users profile fields data

generate_profile_fields_template_data($profile_row, $use_contact_fields = true)   X-Ref
Generate the user's profile fields data for the template.

param: array        $profile_row        Array with users profile field data
param: bool        $use_contact_fields    Should we display contact fields as such?
return: array                        The user's profile fields data

build_insert_sql_array($cp_data)   X-Ref
Build array for the custom profile fields table.

param: array        $cp_data        Custom profile field data
return: array                    Custom profile field data for SQL usage

disable_profilefields($type_name)   X-Ref
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.

param: string    $type_name        Type identifier of the profile fields

purge_profilefields($type_name)   X-Ref
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.

param: string    $type_name        Type identifier of the profile fields

enable_profilefields($type_name)   X-Ref
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.

param: string    $type_name        Type identifier of the profile fields

list_profilefields($type_name, $active = false)   X-Ref
Get list of profile fields of a certain type, if any

param: string    $type_name        Type identifier of the profile fields
param: bool        $active            True to limit output to active profile fields, false for all
return: array                    Array with profile field ids as keys and idents as values



Generated: Wed Nov 11 20:28:18 2020 Cross-referenced by PHPXref 0.7.1