Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: Calendar
-
Labels:None
-
Affected Branches:MOODLE_20_STABLE
Description
In response to http://moodle.org/mod/forum/discuss.php?d=112159, I like the idea of creating a category event type. I think this would be useful for posting department level events (for example, an event for the Math Department or a particular school at a University like the School of Counseling). This idea makes sense to me when looking at the various available contexts in /lib/accesslib.php. We have the global type for the system context, the user type for the user context, the course type for the course context, and the group type for the group context. Since Calendars do not make sense on the module and block level, it makes sense to me that we add a course category event type. Peace - Anthony
I'm just taking a quick look at code and the tables. I'm wondering whether it would be best to look up the category id based on the existing course id in the event table or to add a categoryid field to the event table. I suspect it would be more efficient to add the categoryid field; however, if a course gets moved to a new category, we would want to ensure that the categoryid field gets updated.