Ryzom Account Management System
1.0
|
Handles the forwarding of a ticket to a support_group. More...
Public Member Functions | |
__construct () | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
create () | |
creates a new 'forwarded' entry. | |
delete () | |
deletes an existing 'forwarded' entry. | |
load ($ticket_id) | |
loads the object's attributes. | |
getGroup () | |
get group attribute of the object. | |
getTicket () | |
get ticket attribute of the object. | |
setGroup ($g) | |
set group attribute of the object. | |
setTicket ($t) | |
set ticket attribute of the object. | |
Static Public Member Functions | |
static | forwardTicket ($group_id, $ticket_id) |
Forward a ticket to a group, also removes the previous group where it was forwarded to. | |
static | getSGroupOfTicket ($ticket_id) |
get the id of the group a ticket is forwarded to. | |
static | isForwarded ($ticket_id) |
check if the ticket is forwarded | |
Private Attributes | |
$group | |
The id of the group to which the ticket is being forwarded. | |
$ticket | |
The id of the ticket being forwarded. |
Handles the forwarding of a ticket to a support_group.
This is being used to transfer tickets to different groups (eg Developers, Website-Team, SupportGroup etc..) The idea is that someone can easily forward a ticket to a group and by doing that, the moderators that are in that group will receive the ticket in their todo queue.
__construct | ( | ) |
A constructor.
Empty constructor
create | ( | ) |
creates a new 'forwarded' entry.
this method will use the object's attributes for creating a new 'forwarded' entry in the database.
delete | ( | ) |
deletes an existing 'forwarded' entry.
this method will use the object's attributes for deleting an existing 'forwarded' entry in the database.
static forwardTicket | ( | $ | group_id, |
$ | ticket_id | ||
) | [static] |
Forward a ticket to a group, also removes the previous group where it was forwarded to.
It will first check if the ticket is already forwarded, if that's the case, it will delete that entry. Afterwards it creates the new forward entry
$group_id | the id of the support group we want to forward the ticket to. |
$ticket_id | the id of the ticket. |
getGroup | ( | ) |
get group attribute of the object.
static getSGroupOfTicket | ( | $ | ticket_id | ) | [static] |
get the id of the group a ticket is forwarded to.
$ticket_id | the id of the ticket. |
getTicket | ( | ) |
get ticket attribute of the object.
static isForwarded | ( | $ | ticket_id | ) | [static] |
check if the ticket is forwarded
$ticket_id | the id of the ticket. |
load | ( | $ | ticket_id | ) |
loads the object's attributes.
loads the object's attributes by giving a ticket_id, it will put the matching group_id and the ticket_id into the attributes.
$ticket_id | the id of the ticket that should be loaded |
set | ( | $ | values | ) |
sets the object's attributes.
$values | should be an array of the form array('Group' => group_id, 'Ticket' => ticket_id). |
setGroup | ( | $ | g | ) |
set group attribute of the object.
$g | integer id of the group |
setTicket | ( | $ | t | ) |
set ticket attribute of the object.
$t | integer id of the ticket |
$group [private] |
The id of the group to which the ticket is being forwarded.
$ticket [private] |
The id of the ticket being forwarded.