Details
-
Type:
New Feature
-
Status:
Waiting for integration review
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: DEV backlog
-
Fix Version/s: DEV backlog
-
Component/s: Conditional activities
-
Labels:
-
Testing Instructions:
-
Pull from Repository:
-
Pull Master Branch:MDL-29538_usercond-integration
-
Pull Master Diff URL:
-
Documentation link:
Description
I have developed conditional activities based on user profile fields and custom user profile fields. This means it is possible to create a new activity and restrict it to only a certain group of individuals. You are able to specify whether a field "is empty", "contains", "does not contain", "is equal to", "starts with" or "ends with" a given value.
Example: restrict an activity to user who's -
Email ends with "moodle.com"
Department does not contain "Temporary Staff"
City/town is equal to "Perth"
Please note, I copied the coding style of existing code conditionlib so that it was consistent but am happy to clean it up or for someone else to clean it up if people would rather it followed Moodle coding guidelines.
This code works but still requires some fine tuning and more testing. I thought I would gage the Moodle community's interest before spending more time on it.