Moderator handler for nodes (and all node types).

Moderator handlers deal with the content-specific differences in content moderators.

package XenForo_Moderator

 Methods

Gets the option for the moderator add "choice" page.

getAddModeratorOption(\XenForo_View $view, integer $selectedContentId, string $contentType) : array

The return value should be an array that can be passed as a tag (label, value, selected, disabled, etc).

see \global\XenForo_ModeratorHandler_Abstract::getAddModeratorOption()

Parameters

$selectedContentId

integer

If being redirected back to this page, there may be a selected content ID.

$contentType

string

The name of the content type

Returns

array

Helper to get the content title of one piece of content.

getContentTitle(integer $id) : string
Inherited

inherited_from \XenForo_ModeratorHandler_Abstract::getContentTitle()

Parameters

$id

integer

Returns

string

Gets the titles of multiple pieces of content.

getContentTitles(array $ids) : array

The return should be an array keyed by matching keys of the IDs param. Note that an ID value may occur multiple times.

Note that the title may be more than just the title, if necessary. It may include other necessary disambiguation, such as the content type ("Forum - Name").

see \global\XenForo_ModeratorHandler_Abstract::getContentTitles()

Parameters

$ids

array

Returns

arrayFormat: [id key (key of param)] => title

Gets moderator permission interface group IDs.

getModeratorInterfaceGroupIds() : array

see \global\XenForo_ModeratorHandler_Abstract::getModeratorInterfaceGroupIds()

Returns

array

_getNodeModel()

_getNodeModel() : \XenForo_Model_Node