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:
2011-12-17 12:37:23 +00:00
parent d842fda253
commit 13924c0b56

View File

@@ -40,6 +40,10 @@ class StatusBoard_Status {
return self::$descriptions[$status]; return self::$descriptions[$status];
} }
public static function isMoreSevere($base, $test) {
return ($test > $base);
}
} }
?> ?>