Skip to content

Commit

Permalink
set status func
Browse files Browse the repository at this point in the history
  • Loading branch information
shouc committed Oct 13, 2019
1 parent 868362d commit bf8e7ba
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions const.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,43 @@
$LIST_LIMIT = 5;

function CONVERT_STATUS($status){
switch ($status):
switch ($status) {
case 0:
return "Unassigned";
case 1:
return "Assigned";
case 2:
return "Replied";
return "Editing";
case 3:
return "";
return "Edited";
case 4:
return "Sent";
default:
return "Unknown Status";
}
}

function CONVERT_GENDER($status){
switch ($status) {
case 0:
return "Trans Male";
case 1:
return "Cis Male";
case 2:
return "Tran Female";
case 3:
return "Cis Female";
case 4:
return "I don't know - Male";
case 5:
return "I don't know - Female";
case 6:
return "Don't want to disclose";
default:
return "Unknown Status";
}
}

function CONVERT_TIME($timestamp){
return $timestamp;
}

0 comments on commit bf8e7ba

Please sign in to comment.