From 13924c0b56752a562ec3de1179cbd6d21038a8c5 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sat, 17 Dec 2011 12:37:23 +0000 Subject: [PATCH] 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. --- source/lib/StatusBoard/Status.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/lib/StatusBoard/Status.class.php b/source/lib/StatusBoard/Status.class.php index 035fd22..e778191 100644 --- a/source/lib/StatusBoard/Status.class.php +++ b/source/lib/StatusBoard/Status.class.php @@ -40,6 +40,10 @@ class StatusBoard_Status { return self::$descriptions[$status]; } + public static function isMoreSevere($base, $test) { + return ($test > $base); + } + } ?> \ No newline at end of file