◆ __construct()
| __construct |
( |
|
$ruleId = '', |
|
|
|
$courseSetId = '' |
|
) |
| |
Standard constructor
- Parameters
-
Reimplemented from AdmissionRule.
◆ delete()
Deletes the admission rule and all associated data.
Reimplemented from AdmissionRule.
◆ getDescription()
| static getDescription |
( |
| ) |
|
|
static |
◆ getEndTime()
Gets the end of course admission.
- Returns
- int
Reimplemented from AdmissionRule.
◆ getName()
◆ getStartTime()
Gets the start of course admission.
- Returns
- int
Reimplemented from AdmissionRule.
◆ getTemplate()
Gets the template that provides a configuration GUI for this rule.
- Returns
- String
Reimplemented from AdmissionRule.
◆ load()
Helper function for loading rule definition from database.
Reimplemented from AdmissionRule.
◆ ruleApplies()
| ruleApplies |
( |
|
$userId, |
|
|
|
$courseId |
|
) |
| |
Is admission allowed according to the defined time frame?
- Parameters
-
| String | userId |
| String | courseId |
- Returns
- Array
Reimplemented from AdmissionRule.
◆ setAllData()
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.
- Parameters
-
- Returns
- AdmissionRule This object.
Reimplemented from AdmissionRule.
◆ setEndTime()
| setEndTime |
( |
|
$newEndTime | ) |
|
◆ setStartTime()
| setStartTime |
( |
|
$newStartTime | ) |
|
◆ store()
Store rule definition to database.
Reimplemented from AdmissionRule.
◆ toString()
A textual description of the current rule.
- Returns
- String
Reimplemented from AdmissionRule.
◆ validate()
Validates if the given request data is sufficient to configure this rule (e.g. if required values are present).
- Parameters
-
- Returns
- Array Error messages.
Reimplemented from AdmissionRule.
◆ $endTime
◆ $startTime
Start of course admission.
The documentation for this class was generated from the following file: