https://github.com/learnweb/moodle-lifecycletrigger_byrole
[WIP] :no_pedestrians: Trigger-Subplugin for moodle-tool_cleanupcourses. It checks if a course has no longer any responsible person. If so, it marks the course for the cleanup process.
https://github.com/learnweb/moodle-lifecycletrigger_byrole
Last synced: 4 months ago
JSON representation
[WIP] :no_pedestrians: Trigger-Subplugin for moodle-tool_cleanupcourses. It checks if a course has no longer any responsible person. If so, it marks the course for the cleanup process.
- Host: GitHub
- URL: https://github.com/learnweb/moodle-lifecycletrigger_byrole
- Owner: learnweb
- License: gpl-3.0
- Created: 2017-08-08T13:03:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-03T10:26:33.000Z (about 1 year ago)
- Last Synced: 2025-04-03T11:28:34.726Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 5
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# moodle-lifecycletrigger_byrole
This is a trigger-Subplugin for the admin tool [moodle-tool_lifecycle](https://github.com/learnweb/moodle-tool_lifecycle).
Course without a reponsible person are marked for the cleanupprocess of the lifecycle admin tool.
## Settings
Site administrators choose between all available roles for responsible roles. When multiple roles are selected it
is sufficient if at least one role is represented in the course or in a parent context. This means that courses that belong
to courses where the specific role is assigned are not deleted.
Additionally, administrators determine a time period which
serves as a queue time until a course is marked for the cleanup process.
This functionality assures that courses are not altered when roles are merely changed temporary.
## Proceeding
A trigger plugin always receives one course. To determine whether the course should be deleted the plugin
checks which roles are present in the course. When at least one responsible role is present the course will not be triggered.
Courses that have no responsible person are saved in the database with a timestamp.
When a course has no responsible person and a entry in the table and the timestamp
is sufficiently old, the course is triggered for the cleanup process of the admin tool.
For detailed information on trigger plugins visit the
[Wiki](https://github.com/learnweb/moodle-tool_lifecycle/wiki) of the lifecycle admin tool.