Class message

Description

BuddyServ IRC Services

Message object handler. Used to retrieve and create IRC -> website mail messages.

Located in /includes/class/Class.message.php (line 25)


	
			
Method Summary
message __construct (integer $owner, [string $subject = false])
bool delete ()
unknown each ()
bool fetch (int $id)
integer/error get_new (integer $max)
bool save ()
bool send (int $sender, string $subject, string $body)
void __get ( $what)
Methods
Constructor __construct (line 46)

Constructs the message object

* If subject is not given, we assume we will be accessing the database

message __construct (integer $owner, [string $subject = false])
  • integer $owner
  • string $subject
delete (line 169)

Delete the current message from the database.

bool delete ()
each (line 153)

Cycles the current message list and outputs one by one

unknown each ()
fetch (line 188)

Fetch a message with the given id from the server and stores it in the current object.

bool fetch (int $id)
  • int $id
get_new (line 81)

Retrieves list of new mail messages from the database

integer/error get_new (integer $max)
  • integer $max
save (line 119)

Set the current message status as 'saved'

bool save ()
send (line 140)

Add a new message to the database

bool send (int $sender, string $subject, string $body)
  • int $sender
  • string $subject
  • string $body
__get (line 67)
void __get ( $what)
  • $what

Documentation generated on Thu, 19 Nov 2009 20:25:19 -0700 by phpDocumentor 1.4.1