Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]

Class for loading/storing oauth2 endpoints from the DB.

Copyright: 2017 Damyon Wiese
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 115 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

user_field_mapping:: (5 methods):
  get_user_fields()
  define_properties()
  get_internalfield_list()
  get_internalfields()
  validate_externalfield()


Class: user_field_mapping  - X-Ref

Class for loading/storing oauth2 user field mappings from the DB

get_user_fields()   X-Ref
Return the list of valid internal user fields.

return: array

define_properties()   X-Ref
Return the definition of the properties of this model.

return: array

get_internalfield_list()   X-Ref
Return the list of internal fields
in a format they can be used for choices in a select menu

return: array

get_internalfields()   X-Ref
Return the list of internal fields with flat array

Profile fields element has its array based on profile category.
These elements need to be turned flat to make it easier to read.

return: array

validate_externalfield($value)   X-Ref
No description