ConversationEvent
class ConversationEvent extends AbstractMessage
An event that happened in a conversation
Methods
int
getCategory()
Get the type of the event
bool
isMessage()
Find out whether the event is a message and not a generic conversation event (such as a rename or member join)
static ConversationEvent
storeEvent(int $conversation, Event $event, string $type, mixed $timestamp = 'now', string $status = 'visible')
Store a conversation event in the database
static
getQueryBuilder()
Get a query builder for events
Details
at line line 42
Event
getEvent()
Get the event object
at line line 55
int
getCategory()
Get the type of the event
Do not use ConversationEvent::getType(), as it returns the name of the class (i.e. conversationEvent)
at line line 63
bool
isMessage()
Find out whether the event is a message and not a generic conversation event (such as a rename or member join)
at line line 78
static ConversationEvent
storeEvent(int $conversation, Event $event, string $type, mixed $timestamp = 'now', string $status = 'visible')
Store a conversation event in the database
at line line 93
static
getQueryBuilder()
Get a query builder for events