How h5p/moodle-mod_hvp works
Data Flow Architecture
• Content Creation Flow:
• User → Editor Interface → Content Storage
• Editor → H5P Content Hub (for content sharing)
• Content Delivery Flow:
• User Request → Content Retrieval → Content Rendering
• xAPI Tracking → Learning Records
Database Layer
Tables defined in db/install.xml with key relationships
Key Technical Elements
• AMD Modules (amd/src/*)
• Backend PHP Classes (classes/*)
• Template System (templates/*)
• Task Scheduler Components
• Backup/Restore System (backup/moodle2/*)
Integration Points
Interfaces with:
• Moodle Core (lib.php, locallib.php)
• External H5P Libraries
• Content Hub
• xAPI Systems
Use a layered approach
• Presentation Layer (templates/, view.php)
• Business Logic Layer (classes/)
• Data Access Layer (db/)
• Integration Layer (external services)
Specialized sections for
• Authentication flow
• Content management workflow
• Scheduled tasks architecture
• Event handling system
Important Elements to Highlight
• Security boundaries
• Privacy implementation
• Backup/restore functionality
• Mobile compatibility components