BLC Modules

Blocks ::: block_blc_modules
Maintained by Terus E-learning
The BLC Modules block allows teachers to easily browse and insert Blended Learning Consortium SCORM packages into their course. You must be subscribed to the BLC repository in order for this plugin to function. More information can be found on http://blc-fe.org.

BLC Modules 4.5.10

Moodle 4.5
Released: Wednesday, November 19, 2025, 6:44 PM

Detailed Changes Compared to blocks/blc_modules

This document summarizes the detailed changes in the blocks/blc_modules directory.


1. CHANGELOG.md

  • New file: Added a changelog file summarizing all major changes and improvements in the codebase.

2. add_doc.php

  • Namespace & Use: Added namespace block_blc_modules\helper; and relevant use statements for better code organization and autoloading.
  • SQL Improvements: Changed SQL queries to use parameterized queries for better security and maintainability.
  • Class Name Fix: Fixed typo from stdclass to stdClass.

3. amd/build/module.min.js

  • Update: Minified JS updated to reflect changes in the source, including new dependencies and logic improvements.
  • Dependency: Now includes core/ajax as a dependency.

4. scorm_report.php

  • Refactor: Major refactor to use a renderer and a new output class scorm_report_page for rendering the report page, replacing direct HTML output and table generation.
  • Template: Now uses a Mustache template for rendering the report.

5. settings.php

  • Best Practice: Replaced new lang_string with get_string for all admin setting labels and descriptions, following Moodle best practices.

6. templates/scorm_report_page.mustache

  • New file: Added a Mustache template for rendering the SCORM report page, improving separation of logic and presentation.

7. templates/update_scorm_page.mustache

  • New file: Added a Mustache template for the SCORM update results page, providing a modern and user-friendly UI for update feedback.

8. templates/validate_settings_page.mustache

  • New file: Added a Mustache template for the BLC settings validation page, improving clarity and maintainability.

9. update_scorm.php

  • Refactor: Major refactor to use a renderer and a new output class update_scorm_page for rendering the update results, replacing procedural logic and direct file operations.
  • Security: Added permission checks and parameter validation.
  • UI: Now uses a Mustache template for output.

10. validate_settings.php

  • Refactor: Major refactor to use a renderer and a new output class validate_settings_page for rendering the validation results, replacing procedural logic and direct HTML output.
  • UI: Now uses a Mustache template for output.

11. version.php

  • Update: Bumped plugin version from 2024071100 to 2024071119.

12. version_check.php

  • Namespace & Use: Added namespace block_blc_modules\helper; and use stdClass; for better code organization and autoloading.

Summary of Key Improvements

  • Modernization: Migration to Mustache templates and output classes for all major UI, improving maintainability and separation of concerns.
  • Security: Improved SQL handling and added permission checks.
  • Code Quality: Adoption of namespaces, autoloading, and best practices for Moodle plugin development.
  • User Experience: Enhanced UI for reports, updates, and validation pages.

For further details on any specific file or change, please request a focused explanation.

Version information

Version build number
2025110600
Version release name
4.5.10
Maturity
Stable version
MD5 Sum
62f885cb31f7f7984df7c22500b0ac26
Supported software
Moodle 4.5
  • Latest release for Moodle 4.5

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit http://yoursite.com/admin to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.