\CGMessageQueueMessageMetadata

This class is a wrapper around a message object that allows managing a message within the database, and retrieving extraneous information.

Summary

Methods
Properties
Constants
__construct()
save()
delete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\CGMessageQueue\MessageBase|\CGMessageQueue\assoc  $msg) 

Construct a new metadata object.

Parameters

\CGMessageQueue\MessageBase|\CGMessageQueue\assoc $msg

Either a MessageBase object or a database row representing a message.

save()

save() 

Save this metadata object (and its message) to the datbase.

delete()

delete() 

Delete from the database the row represented by this object.

This method will throw an exception if the object has not already been saved to the databas.