diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a49b4d..5ab064a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: services: postgres: - image: postgres:13 + image: postgres:14 env: POSTGRES_USER: 'postgres' POSTGRES_HOST_AUTH_METHOD: 'trust' @@ -61,6 +61,12 @@ jobs: - php: '8.3' moodle-branch: 'MOODLE_405_STABLE' database: pgsql + - php: '8.3' + moodle-branch: 'MOODLE_500_STABLE' + database: mariadb + - php: '8.4' + moodle-branch: 'MOODLE_500_STABLE' + database: pgsql steps: - name: Check out repository code diff --git a/README.md b/README.md index f6cf6ab..f7cdeee 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,11 @@ Moodle availability plugin which lets users restrict resources and activities wi This plugin depends upon the data calculated by block_dedication. So make sure to install block_dedication plugin( https://moodle.org/plugins/block_dedication) and its data is calculated for some courses and users. # Features -1. restrict the activities and resources with dedication time (time spent in the course). -2. restiction can be applied in either in hours or minutes. +1. Restrict the activities and resources with dedication time (time spent in the course). +2. Restriction can be applied in either in hours or minutes. + +# Release 4.1.2 +1. Minor improvements added # Release 4.1.1 1. Added availability message improvements as suggested by Dan Marsden @@ -22,7 +25,7 @@ This plugin depends upon the data calculated by block_dedication. So make sure t 5. Login a student account and check the activity restriction on course home page. # Screenshots -Screenshot 2024-11-10 231043 +Screenshot 2025-11-10 231043 ![image](https://github.com/user-attachments/assets/623b5ebc-0e1d-4b7c-9c5c-4b20a56bbf6e) diff --git a/classes/condition.php b/classes/condition.php index 8c8fdc7..cffe6c1 100644 --- a/classes/condition.php +++ b/classes/condition.php @@ -18,7 +18,7 @@ * Condition to restrict access by dedication time * * @package availability_dedicationtime - * @copyright 2024 Santosh N. + * @copyright 2025 Santosh N. * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace availability_dedicationtime; @@ -27,7 +27,7 @@ * Dedication time condition. * * @package availability_dedicationtime - * @copyright 2024 Santosh N. + * @copyright 2025 Santosh N. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class condition extends \core_availability\condition { diff --git a/classes/frontend.php b/classes/frontend.php index efe10ba..2f2021c 100644 --- a/classes/frontend.php +++ b/classes/frontend.php @@ -18,7 +18,7 @@ * Restrict access by dedication time * * @package availability_dedicationtime - * @copyright 2024 Santosh N. + * @copyright 2025 Santosh N. * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace availability_dedicationtime; @@ -26,7 +26,7 @@ * Restrict access by dedication time * * @package availability_dedicationtime - * @copyright 2024 Santosh N. + * @copyright 2025 Santosh N. * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class frontend extends \core_availability\frontend { diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php index 385b081..a3319a1 100644 --- a/classes/privacy/provider.php +++ b/classes/privacy/provider.php @@ -18,7 +18,7 @@ * Privacy Subsystem implementation for availability_dedicationtime. * * @package availability_dedicationtime - * @copyright 2024 Santosh N. + * @copyright 2025 Santosh N. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ @@ -27,7 +27,7 @@ /** * Privacy Subsystem for availability_dedicationtime implementing null_provider. * - * @copyright 2024 Santosh N. + * @copyright 2025 Santosh N. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class provider implements \core_privacy\local\metadata\null_provider { diff --git a/lang/en/availability_dedicationtime.php b/lang/en/availability_dedicationtime.php index 25bda28..ea5fb19 100644 --- a/lang/en/availability_dedicationtime.php +++ b/lang/en/availability_dedicationtime.php @@ -18,7 +18,7 @@ * English language strings. * * @package availability_dedicationtime - * @copyright 2024 Santosh N. + * @copyright 2025 Santosh N. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ diff --git a/lang/hi/availability_dedicationtime.php b/lang/hi/availability_dedicationtime.php index cc5d5e2..f52a5df 100644 --- a/lang/hi/availability_dedicationtime.php +++ b/lang/hi/availability_dedicationtime.php @@ -18,7 +18,7 @@ * Hindi language strings. * * @package availability_dedicationtime - * @copyright 2024 Santosh N. + * @copyright 2025 Santosh N. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ diff --git a/lang/mr/availability_dedicationtime.php b/lang/mr/availability_dedicationtime.php index 8701261..ea3dc80 100644 --- a/lang/mr/availability_dedicationtime.php +++ b/lang/mr/availability_dedicationtime.php @@ -18,7 +18,7 @@ * Marathi language strings. * * @package availability_dedicationtime - * @copyright 2024 Santosh N. + * @copyright 2025 Santosh N. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ diff --git a/templates/dedication.mustache b/templates/dedication.mustache index 3cafa4e..ea401c2 100644 --- a/templates/dedication.mustache +++ b/templates/dedication.mustache @@ -25,7 +25,7 @@ } }} - +