|
Stud.IP
jlu_3.1 Revision 48552
|


Public Member Functions | |
| __construct ($ruleId='', $courseSetId= '') | |
| delete () | |
| getTemplate () | |
| load () | |
| ruleApplies ($userId, $courseId) | |
| setAllData ($data) | |
| store () | |
| toString () | |
| validate ($data) | |
| getMessage ($course=null) | |
Public Member Functions inherited from AdmissionRule | |
| afterSeatDistribution (&$courseset) | |
| checkTimeFrame () | |
| generateId ($tableName) | |
| getAffectedUsers () | |
| getEndTime () | |
| getInput () | |
| getId () | |
| getMessage () | |
| getStartTime () | |
| beforeSeatDistribution (&$courseset) | |
| setEndTime ($newEndTime) | |
| setMessage ($newMessage) | |
| setStartTime ($newStartTime) | |
| __toString () | |
| isCombinationAllowed ($admission_rule) | |
Static Public Member Functions | |
| static | getDescription () |
| static | getName () |
Static Public Member Functions inherited from AdmissionRule | |
| static | getAvailableAdmissionRules ($activeOnly=true) |
| static | getInputFrame () |
Data Fields | |
| $mandatory_course_id = '' | |
| $modus = '' | |
| $default_message1 = '' | |
| $allowed_combinations = array('ParticipantRestrictedAdmission', 'LimitedAdmission','ConditionalAdmission', 'PasswordAdmission', 'TimedAdmission','CourseMemberAdmission') | |
Data Fields inherited from AdmissionRule | |
| $endTime = 0 | |
| $id = '' | |
| $message = '' | |
| $default_message = '' | |
| $startTime = 0 | |
| $courseSetId = '' | |
| $allowed_combinations = array() | |
| __construct | ( | $ruleId = '', |
|
$courseSetId = '' |
|||
| ) |
Standard constructor
| String | ruleId |
Reimplemented from AdmissionRule.

| delete | ( | ) |
Deletes the admission rule and all associated data.
Reimplemented from AdmissionRule.

|
static |
Gets some text that describes what this AdmissionRule (or respective subclass) does.
Reimplemented from AdmissionRule.
| getMessage | ( | $course = null | ) |

|
static |
Return this rule's name.
Reimplemented from AdmissionRule.
| getTemplate | ( | ) |
Gets the template that provides a configuration GUI for this rule.
Reimplemented from AdmissionRule.

| load | ( | ) |
Helper function for loading rule definition from database.
Reimplemented from AdmissionRule.


| ruleApplies | ( | $userId, | |
| $courseId | |||
| ) |
Is admission allowed according to the defined time frame?
| String | userId |
| String | courseId |
Reimplemented from AdmissionRule.

| setAllData | ( | $data | ) |
Uses the given data to fill the object values. This can be used as a generic function for storing data if the concrete rule type isn't known in advance.
| Array | $data |
Reimplemented from AdmissionRule.
| store | ( | ) |
Store rule definition to database.
Reimplemented from AdmissionRule.

| toString | ( | ) |
| validate | ( | $data | ) |
Validates if the given request data is sufficient to configure this rule (e.g. if required values are present).
| Array | Request data |
Reimplemented from AdmissionRule.
| $allowed_combinations = array('ParticipantRestrictedAdmission', 'LimitedAdmission','ConditionalAdmission', 'PasswordAdmission', 'TimedAdmission','CourseMemberAdmission') |
| $default_message1 = '' |
| $mandatory_course_id = '' |
End of course admission.
| $modus = '' |