I want to limit the number of students that can join a class, without
imposing an additional burden on the site admins or the class admins.
I also want to keep class membership policies "open", not "Needs
Approval" or "Closed".
imposing an additional burden on the site admins or the class admins.
I also want to keep class membership policies "open", not "Needs
Approval" or "Closed".
The most straightforward approach I can think of is to store quotas in
a separate table, and create a before insert trigger on on acs_rels.
The trigger will check if the insert operation is trying to create a
dotlrn_student_rel relation, and if it is, it will check first the
class quota table to determine if the class is not yet full, before
allowing the insert to proceed.
The problem with this approach is that it imposes a
burden on many other relationship-related operations, even non-dotLRN
ones. Any suggestions on who to implement this efficiently AND without
having to modify dotLRN (so that this could be an optional package)?
Request notifications