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.

Framework mapper.

Copyright: 2016 Frédéric Massart - FMCorz.net
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 189 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: framework_mapper  - X-Ref

Framework mapper class.

__construct($from, $to)   X-Ref
Constructor.

param: int $from Framework ID from.
param: int $to Framework ID to.

add_mapping($idfrom, $idto)   X-Ref
Add a mapping.

param: int $idfrom From ID.
param: int $idto To ID.

automap()   X-Ref
Auto map the frameworks.

return: void

get_all_from()   X-Ref
Get all IDs at origin.

return: array

get_all_to()   X-Ref
Get all IDs at destination.

return: array

get_collection_from()   X-Ref
Get the collection at origin.

return: array

get_collection_to()   X-Ref
Get the collection at destination.

return: array

get_mappings()   X-Ref
Get the defined mappings.

return: array

get_unmapped_from()   X-Ref
Get the IDs of the objects at origin which do not have a mapping at destination.

return: array

get_unmapped_objects_from()   X-Ref
Get the origin objects with missing mappings.

return: array

get_unmapped_to()   X-Ref
Get the IDs of the objects at destination which do not have a mapping at origin.

return: array

get_unmapped_objects_to()   X-Ref
Get the destination objects with missing mappings.

return: array

has_mappings()   X-Ref
Whether some mappings were set.

return: bool

reset_mappings()   X-Ref
Reset the mappings.

return: void