Incident statuses. Show components on the list.

This commit is contained in:
James Brooks
2014-11-16 23:34:46 +00:00
parent 0e2fb29498
commit 7ae7d85e73
3 changed files with 26 additions and 3 deletions
+8 -1
View File
@@ -1,5 +1,12 @@
<?php
class Incident extends Eloquent {
public function getHumanStatusAttribute() {
switch ($this->status) {
case 1: return 'Investigating';
case 2: return 'Identified';
case 3: return 'Watching';
case 4: return 'Fixed';
}
}
}