Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 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: 90 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

user_field_mapping:: (4 methods):
  get_user_fields()
  define_properties()
  get_internalfield_list()
  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

validate_externalfield($value)   X-Ref
Ensures that no HTML is saved to externalfield field
but preserves all special characters that can be a part of the claim

return: boolean true if validation is successful, string error if externalfield is not validated