Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Interface to apply to all the classes we want to calculate their checksum. More...
Public Member Functions | |
calculate_checksum () | |
This function will return one unique and stable checksum for one instance of the class implementing it. More... | |
is_checksum_correct ($checksum) | |
Given one checksum, returns if matches object's checksum (true) or no (false) More... | |
Interface to apply to all the classes we want to calculate their checksum.
Each class being part of @backup_controller will implement this interface in order to be able to calculate one objective and unique checksum for the whole controller class.
TODO: Finish phpdocs
checksumable::calculate_checksum | ( | ) |
This function will return one unique and stable checksum for one instance of the class implementing it.
It's each implementation responsibility to do it recursively if needed and use optional store (caching) of the checksum if necessary/possible
Implemented in backup_controller, restore_controller, base_logger, base_plan, base_task, and backup_setting.
checksumable::is_checksum_correct | ( | $checksum | ) |
Given one checksum, returns if matches object's checksum (true) or no (false)
Implemented in backup_controller, restore_controller, base_logger, base_plan, base_task, and backup_setting.