|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| calculate_checksum () | |
| is_checksum_correct ($checksum) | |
Interface to apply to all the classes we want to calculate their checksum
Each class being part of will implement this interface in order to be able to calculate one objective and unique checksum for the whole controller class.
TODO: Finish phpdocs
Definition at line 34 of file checksumable.class.php.
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 mock_backup_controller4dbops, backup_controller, restore_controller, base_task, base_plan, backup_setting, and base_logger.
| is_checksum_correct | ( | $ | checksum | ) |
Given one checksum, returns if matches object's checksum (true) or no (false)
Implemented in backup_controller, restore_controller, base_task, base_plan, backup_setting, and base_logger.