How gabrielkaos/auto-gradesheet-plugin-moodle works
This Moodle plugin turns course grade data and course settings into student/faculty grade views and official report sheets. The principal workflow runs from course navigation to the dashboard, through grade computation, and into preview or PDF/Excel export; faculty can also configure course and section details. The README documents these product capabilities and the service’s use by report pages. Some implementation links are not shown in the excerpts, so those are marked unverified rather than asserted as direct calls.
Main entry points: index.php Grade dashboard · gradesheet_service.php Batch grade service · install.xml Plugin data tables · export.php PDF export
Components 20
Navigation and views
- Course navigation
lib.php - Grade dashboard
index.php
Grade processing
- Grade/config helpers
classes/helper.php - Grade formula
classes/formula.php - Batch grade service
classes/gradesheet_service.php - Student status
classes/helper.php
Report output
- HTML preview
preview.php - PDF export
export.php - PDF document builder
classes/pdf_builder.php - PDF adapter
classes/gradesheet_pdf.php - Excel export
export_excel.php - Section PDF bundle
export_all.php
Configuration
- Course settings
course_settings.php - Course form hooks
classes/hooks.php - Plugin data tables
db/install.xml
Course lifecycle
- Course creation observer
classes/observer.php - Course event registration
db/events.php - Privacy provider
classes/privacy/provider.php
Other components
- Faculty/admin
- Student
Connections 22
- Faculty/admin → Course navigation: opens course
README.md - Student → Course navigation: opens course
README.md - Course navigation → Grade dashboard: links to
lib.php - Faculty/admin → Course settings: configures
README.md - Course settings → Plugin data tables: saves settings
- Course form hooks → Plugin data tables: loads settings
- Grade dashboard → Grade/config helpers: computes grades
index.php - Grade dashboard → Student status: sets status
- Grade/config helpers → Grade formula: applies formula
- HTML preview → Batch grade service: requests rows
README.md - PDF export → Batch grade service: requests rows
README.md - Excel export → Batch grade service: requests rows
README.md - Batch grade service → Grade/config helpers: computes student grades
classes/gradesheet_service.php - PDF export → PDF document builder: builds PDF
- PDF document builder → PDF adapter: uses adapter
- Grade dashboard → HTML preview: opens preview
README.md - Grade dashboard → PDF export: exports PDF
README.md - Grade dashboard → Excel export: exports Excel
README.md - Grade dashboard → Section PDF bundle: downloads sections
README.md - Course event registration → Course creation observer: registers observer
db/events.php - Course creation observer → Plugin data tables: initializes defaults
- Privacy provider → Plugin data tables: exports/deletes data
classes/privacy/provider.php