Add status comparison function
Simply checks the numerical value of status for now. If more statuses are added in future, this check may need to be made more complex.
This commit is contained in:
@@ -40,6 +40,10 @@ class StatusBoard_Status {
|
|||||||
return self::$descriptions[$status];
|
return self::$descriptions[$status];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function isMoreSevere($base, $test) {
|
||||||
|
return ($test > $base);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user