[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/ -> functions_profile_fields.php (summary)

(no description)

Copyright: (c) 2005 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 1185 lines (36 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

custom_profile:: (18 methods):
  generate_profile_fields()
  validate_profile_field()
  build_cache()
  get_option_lang()
  submit_cp_field()
  update_profile_field_data()
  generate_profile_fields_template()
  get_profile_value()
  get_var()
  generate_int()
  generate_date()
  generate_bool()
  generate_string()
  generate_text()
  generate_dropdown()
  process_field_row()
  build_insert_sql_array()
  get_profile_field()

custom_profile_admin:: (7 methods):
  validate_options()
  get_string_options()
  get_text_options()
  get_int_options()
  get_bool_options()
  get_dropdown_options()
  get_date_options()


Class: custom_profile  - X-Ref

Custom Profile Fields

generate_profile_fields($mode, $lang_id)   X-Ref
Assign editable fields to template, mode can be profile (for profile change) or register (for registration)
Called by ucp_profile and ucp_register


validate_profile_field($field_type, &$field_value, $field_data)   X-Ref
Validate entered profile field data


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


get_option_lang($field_id, $lang_id, $field_type, $preview)   X-Ref
Get language entries for options and store them here for later use


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


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


generate_profile_fields_template($mode, $user_id = 0, $profile_row = false)   X-Ref
Assign fields to template, used for viewprofile, viewtopic and memberlist (if load setting is enabled)
This is directly connected to the user -> mode == grab is to grab the user specific fields, mode == show is for assigning the row to the template


get_profile_value($ident_ary)   X-Ref
Get Profile Value for display


get_var($field_validation, &$profile_row, $default_value, $preview)   X-Ref
Get field value for registration/profile


generate_int($profile_row, $preview = false)   X-Ref
Process int-type


generate_date($profile_row, $preview = false)   X-Ref
Process date-type


generate_bool($profile_row, $preview = false)   X-Ref
Process bool-type


generate_string($profile_row, $preview = false)   X-Ref
Process string-type


generate_text($profile_row, $preview = false)   X-Ref
Process text-type


generate_dropdown($profile_row, $preview = false)   X-Ref
Process dropdown-type


process_field_row($mode, $profile_row)   X-Ref
Return Templated value/field. Possible values for $mode are:
change == user is able to set/enter profile values; preview == just show the value


build_insert_sql_array($cp_data)   X-Ref
Build Array for user insertion into custom profile fields table


get_profile_field($profile_row)   X-Ref
Get profile field value on submit


Class: custom_profile_admin  - X-Ref

Custom Profile Fields ACP

validate_options()   X-Ref
Return possible validation options


get_string_options()   X-Ref
Get string options for second step in ACP


get_text_options()   X-Ref
Get text options for second step in ACP


get_int_options()   X-Ref
Get int options for second step in ACP


get_bool_options()   X-Ref
Get bool options for second step in ACP


get_dropdown_options()   X-Ref
Get dropdown options for second step in ACP


get_date_options()   X-Ref
Get date options for second step in ACP




Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1