khanat-opennel-code/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/ticket_queue_handler.php
Quitta 5a8f45f88c # ticket queues, though moving away from this approach
--HG--
branch : quitta-gsoc-2013
2013-07-14 22:33:09 +02:00

29 lines
No EOL
766 B
PHP

<?php
class Ticket_Queue_Handler{
public static function getTickets($input,$permission){
switch($permission){
case 2:
$queue = new Ticket_Queue_Csr();
break;
case 3:
// $queue = new Ticket_Queue_Dev();
break;
}
switch ($input){
case "all_open":
$queue->loadAllOpenTickets();
break;
case "archive":
$queue->loadAllClosedTickets();
break;
default:
return "ERROR";
}
return $queue->getTickets();
}
}