Skip to content

[WIP] 🚷 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.

License

Notifications You must be signed in to change notification settings

learnweb/moodle-lifecycletrigger_byrole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moodle-lifecycletrigger_byrole

This is a trigger-Subplugin for the admin tool 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 of the lifecycle admin tool.

About

[WIP] 🚷 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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages