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.

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