In MDL-83906 a PoC was created to reorganise the Backpack API classes within the core_badges component of Moodle, enhancing modularity and maintainability for future Open Badges (OB) specifications.
MDL-85622 will prepare this PoC for integrating it into the main codebase, and this issue should integrate the changes made in commit 3 (core_badges: Merge backpack-add and backpack-export) of MDL-83906 into the main codebase. Things to consider include:
- This issue is blocked by MDL-85622.
- Implementing automated tests for the new classes/functions to ensure their reliability and correctness.
- Deprecating any old classes or functions that are no longer needed.
- Checking coding styles to ensure that the new classes adhere to Moodle's coding standards.