Documentation

MessageThreadRepository extends EntityRepository
in package

Repository for MessageThreads.

Table of Contents

createThreadKey()  : string
Creates a thread key based on the participating characters and a schema.
findOrCreateFor()  : MessageThread
Finds a messageThread.
findOrCreateReadonlyFor()  : MessageThread
Finds a systemMessage or returns a newly created, read-only thread.

Methods

createThreadKey()

Creates a thread key based on the participating characters and a schema.

public static createThreadKey(array<string|int, mixed> $listOfCharacters, string $messageSchema) : string
Parameters
$listOfCharacters : array<string|int, mixed>
$messageSchema : string
Return values
string

findOrCreateReadonlyFor()

Finds a systemMessage or returns a newly created, read-only thread.

public findOrCreateReadonlyFor(array<string|int, mixed> $listOfCharacters) : MessageThread
Parameters
$listOfCharacters : array<string|int, mixed>
Return values
MessageThread

Search results