Stud.IP
4.0
|
Public Member Functions | |
__construct ($ruleId= '', $courseSetId= '') | |
delete () | |
getTemplate () | |
load () | |
ruleApplies ($userId, $courseId) | |
setAllData ($data) | |
store () | |
toString () | |
validate ($data) | |
getMessage ($course=null) | |
getValidityPeriod () | |
![]() | |
__construct ($ruleId= '', $courseSetId= '') | |
afterSeatDistribution ($courseset) | |
checkTimeFrame () | |
delete () | |
generateId ($tableName) | |
getAffectedUsers () | |
getEndTime () | |
getInput () | |
getId () | |
getMessage () | |
getStartTime () | |
getTemplate () | |
load () | |
beforeSeatDistribution ($courseset) | |
ruleApplies ($userId, $courseId) | |
setAllData ($data) | |
setEndTime ($newEndTime) | |
setMessage ($newMessage) | |
setStartTime ($newStartTime) | |
store () | |
toString () | |
validate ($data) | |
__toString () | |
loadSiblings () | |
getSiblings () | |
setSiblings ($siblings=[]) | |
isCombinationAllowed ($admission_rule) | |
__clone () | |
Static Public Member Functions | |
static | getDescription () |
static | getName () |
![]() | |
static | getAvailableAdmissionRules ($activeOnly=true) |
static | getInputFrame () |
static | getDescription () |
static | getName () |
Data Fields | |
const | MODE_MUST_BE_IN_COURSES = 0 |
const | MODE_MAY_NOT_BE_IN_COURSES = 1 |
$courses_to_add = '[]' | |
$modus = '' | |
![]() | |
$endTime = 0 | |
$id = '' | |
$message = '' | |
$default_message = '' | |
$startTime = 0 | |
$courseSetId = '' | |
$siblings = [] | |
$siblings_override = false | |
__construct | ( | $ruleId = '' , |
|
$courseSetId = '' |
|||
) |
Standard constructor
String | $ruleId | |
String | e |
delete | ( | ) |
Deletes the admission rule and all associated data.
|
static |
Gets some text that describes what this AdmissionRule (or respective subclass) does.
getMessage | ( | $course = null | ) |
|
static |
Return this rule's name.
getTemplate | ( | ) |
Gets the template that provides a configuration GUI for this rule.
getValidityPeriod | ( | ) |
load | ( | ) |
Helper function for loading rule definition from database.
ruleApplies | ( | $userId, | |
$courseId | |||
) |
Is admission allowed according to the defined time frame?
String | $userId | |
String | $courseId |
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 |
store | ( | ) |
Store rule definition to database.
toString | ( | ) |
A textual description of the current rule.
validate | ( | $data | ) |
Validates if the given request data is sufficient to configure this rule (e.g. if required values are present).
Array | $data | Request data |
$courses_to_add = '[]' |
End of course admission.
$modus = '' |
const MODE_MAY_NOT_BE_IN_COURSES = 1 |
const MODE_MUST_BE_IN_COURSES = 0 |