3 define('TASK_DRAFT', 0);
4 define('TASK_NEEDS_CLARIFICATION', 100);
5 define('TASK_NEEDS_QUOTE', 200);
6 define('TASK_NEEDS_GO_AHEAD', 300);
7 define('TASK_ON_HOLD', 350);
8 define('TASK_QUEUED', 400);
9 define('TASK_WORKING', 500);
10 define('TASK_BUG', 600);
11 define('TASK_NEEDS_TESTING', 700);
12 define('TASK_FINISHED', 800);
16 # case TASK_NEEDS_CLARIFICATION:
17 # case TASK_NEEDS_QUOTE:
18 # case TASK_NEEDS_GO_AHEAD:
22 # case TASK_NEEDS_TESTING:
26 # return true if $state is one where the client must act next
27 function needs_client_attention($state) {
30 case TASK_NEEDS_CLARIFICATION:
31 case TASK_NEEDS_GO_AHEAD:
32 case TASK_NEEDS_TESTING:
39 function task_state_pretty($state) {
43 case TASK_NEEDS_CLARIFICATION:
44 return "needs clarification";
45 case TASK_NEEDS_QUOTE:
46 return "to be priced";
47 case TASK_NEEDS_GO_AHEAD:
48 return "waiting for you to approve the price";
54 return "work in progress";
56 return "to be investigated";
57 case TASK_NEEDS_TESTING:
58 return "needs testing";
62 return "unknown state #$state";