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

Class that handles the content of a reply. More...

Public Member Functions

 __construct ()
 A constructor.
 create ()
 creates a new 'tickt_content' entry.
 load_With_TContentId ($id)
 loads the object's attributes.
 update ()
 update the object's attributes to the database.
 getContent ()
 get content attribute of the object.
 getTContentId ()
 get tContentId attribute of the object.
 setContent ($c)
 set content attribute of the object.
 setTContentId ($c)
 set tContentId attribute of the object.

Static Public Member Functions

static constr_TContentId ($id)
 return constructed element based on TContentId.

Private Attributes

 $tContentId
 The id of ticket_content entry.
 $content
 The content of an entry.

Detailed Description

Class that handles the content of a reply.

The Ticket_Content has a one-to-one relation with a ticket_reply, it contains the content of a reply, this way the content doesn't always have to be loaded when we query the database when we only need information regarding to the replies basic information.

Author:
Daan Janssens, mentored by Matthew Lagoe

Constructor & Destructor Documentation

A constructor.

Empty constructor


Member Function Documentation

static constr_TContentId ( id) [static]

return constructed element based on TContentId.

Parameters:
$idthe id of ticket_content entry.
Returns:
a constructed ticket_content object by specifying the TContentId.
create ( )

creates a new 'tickt_content' entry.

this method will use the object's attributes for creating a new 'ticket_content' entry in the database.

get content attribute of the object.

get tContentId attribute of the object.

loads the object's attributes.

loads the object's attributes by giving a ticket_content's id,

Parameters:
$idthe id of the ticket_content entry that should be loaded
setContent ( c)

set content attribute of the object.

Parameters:
$ccontent of a reply
setTContentId ( c)

set tContentId attribute of the object.

Parameters:
$cinteger id of ticket_content entry
update ( )

update the object's attributes to the database.


Field Documentation

$content [private]

The content of an entry.

$tContentId [private]

The id of ticket_content entry.


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