Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [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: 116 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