Ryzom Account Management System
1.0
|
returns tickets (queues) that are related in some way. More...
Public Member Functions | |
__construct () | |
A constructor. | |
getTickets ($input, $user_id) | |
returns the tickets that are related in someway defined by $input. | |
getPagination () | |
get pagination attribute of the object. | |
createQueue ($userid, $groupid, $what, $how, $who) | |
creates the queue. | |
Static Public Member Functions | |
static | getNrOfTicketsToDo ($user_id) |
get the number of tickets in the todo queue for a specific user. | |
static | getNrOfTicketsAssignedWaiting ($user_id) |
get the number of tickets assigned to a specific user and waiting for support. | |
static | getNrOfTickets () |
get the total number of tickets. | |
static | getNewestTicket () |
get the ticket object of the latest added ticket. | |
Private Attributes | |
$pagination | |
Pagination object, this way only a few tickets (related to that pagenumber) will be shown. | |
$queue | |
The queue object, being used to get the queries and parameters. |
returns tickets (queues) that are related in some way.
This class handles the creation and returning of existing ticket queues. Normally a $_GET['get'] parameter is being used to identify what kind of tickets should be shown. the getTickets() function uses this parameter($input) and uses the ticket_queue class to load the specific query.
__construct | ( | ) |
A constructor.
Instantiates the queue object.
createQueue | ( | $ | userid, |
$ | groupid, | ||
$ | what, | ||
$ | how, | ||
$ | who | ||
) |
creates the queue.
afterwards the getTickets function should be called, else a lot of extra parameters had to be added to the getTickets function..
static getNewestTicket | ( | ) | [static] |
get the ticket object of the latest added ticket.
static getNrOfTickets | ( | ) | [static] |
get the total number of tickets.
static getNrOfTicketsAssignedWaiting | ( | $ | user_id | ) | [static] |
get the number of tickets assigned to a specific user and waiting for support.
$user_id | the user being queried |
static getNrOfTicketsToDo | ( | $ | user_id | ) | [static] |
get the number of tickets in the todo queue for a specific user.
$user_id | the user being queried |
getPagination | ( | ) |
get pagination attribute of the object.
getTickets | ( | $ | input, |
$ | user_id | ||
) |
returns the tickets that are related in someway defined by $input.
The $input parameter should be a string that defines what kind of queue should be loaded. A new pagination object will be instantiated and will load 10 entries, related to the $_GET['pagenum'] variable.
$input | identifier that defines what queue to load. |
$user_id | the id of the user that browses the queues, some queues can be depending on this. |
$pagination [private] |
Pagination object, this way only a few tickets (related to that pagenumber) will be shown.
$queue [private] |
The queue object, being used to get the queries and parameters.