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

Class related to the ticket categories. More...

Public Member Functions

 __construct ()
 A constructor.
 load_With_TCategoryId ($id)
 loads the object's attributes.
 update ()
 update object attributes to the DB.
 getName ()
 get name attribute of the object.
 getTCategoryId ()
 get tCategoryId attribute of the object.
 setName ($n)
 set name attribute of the object.
 setTCategoryId ($id)
 set tCategoryId attribute of the object.

Static Public Member Functions

static createTicketCategory ($name)
 creates a ticket_Catergory in the DB.
static constr_TCategoryId ($id)
 construct a category object based on the TCategoryId.
static getAllCategories ()
 return a list of all category objects.

Private Attributes

 $tCategoryId
 The id of the category.
 $name
 The name of the category.

Detailed Description

Class related to the ticket categories.

Author:
Daan Janssens, mentored by Matthew Lagoe

Constructor & Destructor Documentation

A constructor.

Empty constructor


Member Function Documentation

static constr_TCategoryId ( id) [static]

construct a category object based on the TCategoryId.

Returns:
constructed element based on TCategoryId
static createTicketCategory ( name) [static]

creates a ticket_Catergory in the DB.

Parameters:
$namename we want to give to the new category.
static getAllCategories ( ) [static]

return a list of all category objects.

Returns:
an array consisting of all category objects.
getName ( )

get name attribute of the object.

get tCategoryId attribute of the object.

loads the object's attributes.

loads the object's attributes by giving a categories id.

Parameters:
$idthe id of the ticket_category that should be loaded
setName ( n)

set name attribute of the object.

Parameters:
$nname of the category
setTCategoryId ( id)

set tCategoryId attribute of the object.

Parameters:
$idinteger id of the category
update ( )

update object attributes to the DB.


Field Documentation

$name [private]

The name of the category.

$tCategoryId [private]

The id of the category.


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