Class that represents the definition of a discussion message.

This will generally be used to interact with data writers (both for messages and discussions). It serves mostly to decouple data that will be useful to multiple data writers.

package XenForo_Discussion

 Methods

Constructor.

__construct() 

getContainerKeyName()

getContainerKeyName() 

getContentType()

getContentType() 

Gets the discussion data writer for the given discussion ID.

getDiscussionDataWriter(integer $discussionId, \constant $errorHandler) : \XenForo_DataWriter_Discussion | false

If no discussion is given, should return false.

Parameters

$discussionId

integer

$errorHandler

\constant

DW error handler constant (usually parent DW's error handler)

Returns

Gets the effective message configuration.

getMessageConfiguration() : array

This merges the defaults with the specific class overrides. See _getMessageConfiguration() for options.

Returns

array

getMessageKeyName()

getMessageKeyName() 

Gets the full message structure array.

getMessageStructure() : array

See _getMessageStructure() for data returned.

Returns

array

getMessageTableName()

getMessageTableName() 

Gets the search data handler for this type of message.

getSearchDataHandler() : \XenForo_Search_DataHandler_Abstract | false

Gets the parts of the message configuration options that override the defaults.

_getMessageConfiguration() : array

Options: * hasParentDiscussion (false) * changeUserMessageCount (true)

Returns

array

Gets the structure of the message record.

_getMessageStructure() : array

This only includes parts that are variable. Keys returned: * table - name of the table (eg, xf_post) * key - name of the message's key (eg, post_id) * container - name of the container/discussion's key (eg, thread_id, profile_user_id) * contentType - name of the content type the message uses (eg, post, profile_post)

Returns

array

 Properties

 

$_structure : array