Post-specific attachment handler.
| package | XenForo_Attachment |
|---|
__construct()
| inherited_from | \XenForo_AttachmentHandler_Abstract::__construct() |
|---|
canUploadAndManageAttachments(array $contentData, array $viewingUser) : boolean
The content data may contain different type-specific values in different situations. Eg, when posting a thread, only the node_id is known; when posting a reply, the thread_id is know; when editing a post, the post_id is known.
| inherited_from | \XenForo_AttachmentHandler_Abstract::canUploadAndManageAttachments() |
|---|
arrayType-specific params based on context
arraynullViewing user array; null for visitor
booleancanViewAttachment(array $attachment, array $viewingUser) : boolean
| inherited_from | \XenForo_AttachmentHandler_Abstract::canViewAttachment() |
|---|
arrayAttachment to view
arraynullViewing user array; null for visitor
booleangetAttachmentConstraints() : array
| inherited_from | \XenForo_AttachmentHandler_Abstract::getAttachmentConstraints() |
|---|
arraygetAttachmentCountLimit() : integer | true
| inherited_from | \XenForo_AttachmentHandler_Abstract::getAttachmentCountLimit() |
|---|
integertrueIf true, there is no limitgetContentDataFromContentId(integer $contentId) : array
By default, this only contains only the primary content ID.
| inherited_from | \XenForo_AttachmentHandler_Abstract::getContentDataFromContentId() |
|---|
integer
arraygetContentIdFromContentData(array $contentData) : integer
| inherited_from | \XenForo_AttachmentHandler_Abstract::getContentIdFromContentData() |
|---|
arrayType-specific content data
integergetContentLink(array $attachment, array $extraParams, boolean $skipPrepend) : string
| see | \XenForo_AttachmentHandler_Abstract::getContentLink() |
|---|
arraydata - ideally containing everything necessary to build the content link
array
boolean
stringgetContentTypePhraseKey() : string
| inherited_from | \XenForo_AttachmentHandler_Abstract::getContentTypePhraseKey() |
|---|
stringstandardizeViewingUserReference(array $viewingUser)
| inherited_from | \XenForo_AttachmentHandler_Abstract::standardizeViewingUserReference() |
|---|
arraynullViewing user array. Will be normalized.
_canUploadAndManageAttachments(array $contentData, array $viewingUser) : boolean
The content data may contain different type-specific values in different situations. Eg, when posting a thread, only the node_id is known; when posting a reply, the thread_id is know; when editing a post, the post_id is known.
| see | \XenForo_AttachmentHandler_Abstract::_canUploadAndManageAttachments() |
|---|
arrayType-specific params based on context
arrayViewing user array
boolean_canViewAttachment(array $attachment, array $viewingUser) : boolean
| see | \XenForo_AttachmentHandler_Abstract::_canViewAttachment() |
|---|
arrayAttachment to view
arrayViewing user array
boolean$_contentIdKey : string
Must be overriden by children.
$_contentRoute : string
Example: posts use 'posts' Must be overriden by children.
$_contentTypePhraseKey : string
Examples: 'post'; 'conversation_message' Must be overriden by children.
$_conversationModel