Abstract moderation queue handler.

package XenForo_Moderation

 Methods

Approves the specified entry in the moderation queue.

approveModerationQueueEntry(integer $contentId, string $message, string $title) : boolean

The title param may be ignored if the type does not have a title.

Parameters

$contentId

integer

$message

string

$title

string

May be ignored

Returns

boolean

Deletes the specified moderation queue entry.

deleteModerationQueueEntry(integer $contentId) : boolean

Note that this should only do a soft-delete if available.

Parameters

$contentId

integer

Returns

boolean

Returns all the moderation queue entry for this content type that are visible/manageable to the viewing user.

getVisibleModerationQueueEntriesForUser(array $contentIds, array $viewingUser) : array

Parameters

$contentIds

array

Array of queue content IDs

$viewingUser

array

Viewing user array

Returns

arrayList of entries that can be seen/managed, [content id] => [message, user, contentTypeTitle, title, titleEdit, link]