/**
  * @see XenForo_AttachmentHandler_Abstract::getContentLink()
  */
 public function getContentLink(array $attachment, array $extraParams = array(), $skipPrepend = false)
 {
     return false;
     $extraParams = array_merge(array('message_id' => $attachment['content_id']), $extraParams);
     return parent::getContentLink($attachment, $extraParams, $skipPrepend);
 }
Example #2
0
 public function getContentDataFromContentId($contentId)
 {
     $version = XenForo_Model::create('XenResource_Model_Version')->getVersionById($contentId, array('join' => XenResource_Model_Version::FETCH_RESOURCE));
     return $version ? $version : parent::getContentDataFromContentId($contentId);
 }
Example #3
0
 public function getAttachmentConstraints()
 {
     if ($this->_constraints !== null) {
         return $this->_constraints;
     }
     return parent::getAttachmentConstraints();
 }
Example #4
0
 public function getAttachmentConstraints()
 {
     $attachmentConstraints = parent::getAttachmentConstraints();
     return array_merge($attachmentConstraints, $this->_getFieldAttachmentModel()->getFileConstraints());
 }
Example #5
0
 public function getContentDataFromContentId($contentId)
 {
     $update = XenForo_Model::create('XenResource_Model_Update')->getUpdateById($contentId, array('join' => XenResource_Model_Update::FETCH_USER));
     return $update ? $update : parent::getContentDataFromContentId($contentId);
 }