Ejemplo n.º 1
0
 case "delete":
     $db->updateRecord($type == 1, $id, "deleted", 1);
     break;
 case "approve":
     $db->updateRecord($type == 1, $id, "approved", 1);
     if ($type == 1) {
         EmailHelperClass::createAndSendEmail_Approval($db->getPeopleFromId($type == 1, $id));
     }
     break;
 case "wait":
     $db->updateRecord($type == 1, $id, "approved", 3);
     break;
 case "reject":
     $db->updateRecord($type == 1, $id, "approved", 2);
     if ($type == 1) {
         EmailHelperClass::createAndSendEmail_Rejection($db->getPeopleFromId($type == 1, $id));
     }
     break;
 case "checkIn":
     $db->updateRecord($type == 1, $id, "checked_in", 1);
     break;
 case "unCheckIn":
     $db->updateRecord($type == 1, $id, "checked_in", 0);
     break;
 case "cancel":
     $db->updateRecord($type == 1, $id, "unregistered", 1);
     break;
 case "activate":
     $db->updateRecord($type == 1, $id, "unregistered", 0);
     break;
 case "reminder1":