Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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