__construct()
attachmentPostDelete()
canUploadAndManageAttachments()
canViewAttachment()
getAttachmentConstraints()
getAttachmentCountLimit()
getContentDataFromContentId()
getContentIdFromContentData()
getContentLink()
getContentTypePhraseKey()
standardizeViewingUserReference()
_canUploadAndManageAttachments()
_canViewAttachment()
_getConversationModel()
$_contentIdKey
$_contentRoute
$_contentTypePhraseKey
$_conversationModel
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() |
---|
array
Type-specific params based on context
array
null
Viewing user array; null for visitor
boolean
canViewAttachment(array $attachment, array $viewingUser) : boolean
inherited_from | \XenForo_AttachmentHandler_Abstract::canViewAttachment() |
---|
array
Attachment to view
array
null
Viewing user array; null for visitor
boolean
getAttachmentConstraints() : array
inherited_from | \XenForo_AttachmentHandler_Abstract::getAttachmentConstraints() |
---|
array
getAttachmentCountLimit() : integer | true
inherited_from | \XenForo_AttachmentHandler_Abstract::getAttachmentCountLimit() |
---|
integer
true
If 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
array
getContentIdFromContentData(array $contentData) : integer
inherited_from | \XenForo_AttachmentHandler_Abstract::getContentIdFromContentData() |
---|
array
Type-specific content data
integer
getContentLink(array $attachment, array $extraParams, boolean $skipPrepend) : string
see | \global\XenForo_AttachmentHandler_Abstract::getContentLink() |
---|
array
data - ideally containing everything necessary to build the content link
array
boolean
string
getContentTypePhraseKey() : string
inherited_from | \XenForo_AttachmentHandler_Abstract::getContentTypePhraseKey() |
---|
string
standardizeViewingUserReference(array $viewingUser)
inherited_from | \XenForo_AttachmentHandler_Abstract::standardizeViewingUserReference() |
---|
array
null
Viewing 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 | \global\XenForo_AttachmentHandler_Abstract::_canUploadAndManageAttachments() |
---|
array
Type-specific params based on context
array
Viewing user array
boolean
_canViewAttachment(array $attachment, array $viewingUser) : boolean
see | \global\XenForo_AttachmentHandler_Abstract::_canViewAttachment() |
---|
array
Attachment to view
array
Viewing 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