mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #30 - Fixed stage values and broken tests.
This commit is contained in:
@@ -30,27 +30,27 @@ class outage {
|
||||
/**
|
||||
* Outage is before warning period.
|
||||
*/
|
||||
const STAGE_WAITING = 1;
|
||||
const STAGE_WAITING = 'waiting';
|
||||
|
||||
/**
|
||||
* Outage not started but in warning period.
|
||||
*/
|
||||
const STAGE_WARNING = 2;
|
||||
const STAGE_WARNING = 'warning';
|
||||
|
||||
/**
|
||||
* Outage ongoing, it has passed the warning period.
|
||||
*/
|
||||
const STAGE_ONGOING = 3;
|
||||
const STAGE_ONGOING = 'ongoing';
|
||||
|
||||
/**
|
||||
* Outage finished, it is after the marked finished time.
|
||||
*/
|
||||
const STAGE_FINISHED = 4;
|
||||
const STAGE_FINISHED = 'finished';
|
||||
|
||||
/**
|
||||
* Outage stopped, it is after the stop time and not marked as finished.
|
||||
*/
|
||||
const STAGE_STOPPED = 4;
|
||||
const STAGE_STOPPED = 'stopped';
|
||||
|
||||
/**
|
||||
* @var int Outage ID (auto generated by the DB).
|
||||
|
||||
Reference in New Issue
Block a user