loadAllOpenTickets(); break; case "archive": $queue->loadAllClosedTickets(); break; default: return "ERROR"; } return $queue->getTickets(); } }