Moderation queue for profile posts.

package XenForo_Moderation

 Methods

Approves the specified moderation queue entry.

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

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

see \XenForo_ModerationQueueHandler_Abstract::approveModerationQueueEntry()

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.

see \XenForo_ModerationQueueHandler_Abstract::deleteModerationQueueEntry()

Parameters

$contentId

integer

Returns

boolean

Gets visible moderation queue entries for specified user.

getVisibleModerationQueueEntriesForUser(array $contentIds, array $viewingUser) : array
see \XenForo_ModerationQueueHandler_Abstract::getVisibleModerationQueueEntriesForUser()

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]