Ryzom Account Management System  1.0
Public Member Functions | Static Public Member Functions | Private Attributes
Forwarded Class Reference

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.

Detailed Description

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.

Author:
Daan Janssens, mentored by Matthew Lagoe

Constructor & Destructor Documentation

A constructor.

Empty constructor


Member Function Documentation

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

Parameters:
$group_idthe id of the support group we want to forward the ticket to.
$ticket_idthe id of the ticket.
Returns:
A string, if assigning succeedded "SUCCESS_FORWARDED" will be returned.
getGroup ( )

get group attribute of the object.

static getSGroupOfTicket ( ticket_id) [static]

get the id of the group a ticket is forwarded to.

Parameters:
$ticket_idthe id of the ticket.
Returns:
the id of the group
getTicket ( )

get ticket attribute of the object.

static isForwarded ( ticket_id) [static]

check if the ticket is forwarded

Parameters:
$ticket_idthe id of the ticket.
Returns:
returns true if the ticket is forwarded, else return false;
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.

Parameters:
$ticket_idthe id of the ticket that should be loaded
set ( values)

sets the object's attributes.

Parameters:
$valuesshould be an array of the form array('Group' => group_id, 'Ticket' => ticket_id).
setGroup ( g)

set group attribute of the object.

Parameters:
$ginteger id of the group
setTicket ( t)

set ticket attribute of the object.

Parameters:
$tinteger id of the ticket

Field Documentation

$group [private]

The id of the group to which the ticket is being forwarded.

$ticket [private]

The id of the ticket being forwarded.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables