Ryzom Account Management System
1.0
|
Data class that holds a lot of queries that load specific tickets. More...
Public Member Functions | |
loadAllNotAssignedTickets () | |
loads the not yet assigned tickets query into the objects attributes. | |
loadAllTickets () | |
loads the 'all' tickets query into the objects attributes. | |
loadAllOpenTickets () | |
loads the 'all open' tickets query into the objects attributes. | |
loadAllClosedTickets () | |
loads the 'closed' tickets query into the objects attributes. | |
loadToDoTickets ($user_id) | |
loads the 'todo' tickets query & params into the objects attributes. | |
loadAssignedandWaiting ($user_id) | |
loads the 'tickets asssigned to a user and waiting on support' query & params into the objects attributes. | |
createQueue ($userid, $groupid, $what, $how, $who) | |
loads the 'created' query & params into the objects attributes. | |
getQuery () | |
get query attribute of the object. | |
getParams () | |
get params attribute of the object. | |
Private Attributes | |
$query | |
The query that loads specific tickets. | |
$params | |
The parameter array that's being needed by the query. |
Data class that holds a lot of queries that load specific tickets.
These queries are being used by the ticket_queue_handler class. An object of this class holds 2 attributes: the query and the params used for the query.
createQueue | ( | $ | userid, |
$ | groupid, | ||
$ | what, | ||
$ | how, | ||
$ | who | ||
) |
loads the 'created' query & params into the objects attributes.
This function creates dynamically a query based on the selected features.
$who | specifies if we want to user the user_id or group_id to form the query. |
$userid | the user's id to whom the tickets should be assigned/not assigned |
$groupid | the group's id to whom the tickets should be forwarded/not forwarded |
$what | specifies what kind of tickets we want to return: waiting for support, waiting on user, closed |
$how | specifies if the tickets should be or shouldn't be assigned/forwarded to the group/user selected. |
getParams | ( | ) |
get params attribute of the object.
getQuery | ( | ) |
get query attribute of the object.
loads the 'closed' tickets query into the objects attributes.
loads the not yet assigned tickets query into the objects attributes.
loads the 'all open' tickets query into the objects attributes.
loadAllTickets | ( | ) |
loads the 'all' tickets query into the objects attributes.
loadAssignedandWaiting | ( | $ | user_id | ) |
loads the 'tickets asssigned to a user and waiting on support' query & params into the objects attributes.
$user_id | the user's id to whom the tickets should be assigned |
loadToDoTickets | ( | $ | user_id | ) |
loads the 'todo' tickets query & params into the objects attributes.
first: find the tickets assigned to the user with status = waiting on support, second find all not assigned tickets that aren't forwarded yet. find all tickets assigned to someone else witht status waiting on support, with timestamp of last reply > 1 day, find all non-assigned tickets forwarded to the support groups to which that user belongs
$user_id | the user's id to whom the tickets should be assigned |
$params [private] |
The parameter array that's being needed by the query.
$query [private] |
The query that loads specific tickets.