EventPriority
in package
List of event priorities
Events will be called in this order: LOWEST -> LOW -> NORMAL -> HIGH -> HIGHEST -> MONITOR
MONITOR events should not change the event outcome or contents
Table of Contents
- ALL = [self::LOWEST, self::LOW, self::NORMAL, self::HIGH, self::HIGHEST, self::MONITOR]
- HIGH = 2
- Event call is of high importance
- HIGHEST = 1
- Event call is critical and must have the final say in what happens to the event
- LOW = 4
- Event call is of low importance
- LOWEST = 5
- Event call is of very low importance and should be ran first, to allow other plugins to further customise the outcome
- MONITOR = 0
- Event is listened to purely for monitoring the outcome of an event.
- NORMAL = 3
- Event call is neither important or unimportant, and may be ran normally.
- fromString() : int
- __construct() : mixed
Constants
ALL
public
mixed
ALL
= [self::LOWEST, self::LOW, self::NORMAL, self::HIGH, self::HIGHEST, self::MONITOR]
HIGH
Event call is of high importance
public
mixed
HIGH
= 2
HIGHEST
Event call is critical and must have the final say in what happens to the event
public
mixed
HIGHEST
= 1
LOW
Event call is of low importance
public
mixed
LOW
= 4
LOWEST
Event call is of very low importance and should be ran first, to allow other plugins to further customise the outcome
public
mixed
LOWEST
= 5
MONITOR
Event is listened to purely for monitoring the outcome of an event.
public
mixed
MONITOR
= 0
No modifications to the event should be made under this priority
NORMAL
Event call is neither important or unimportant, and may be ran normally.
public
mixed
NORMAL
= 3
This is the default priority.
Methods
fromString()
public
static fromString(string $name) : int
Parameters
- $name : string
Tags
Return values
int —__construct()
private
__construct() : mixed