/** * @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); }
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); }
public function getAttachmentConstraints() { if ($this->_constraints !== null) { return $this->_constraints; } return parent::getAttachmentConstraints(); }
public function getAttachmentConstraints() { $attachmentConstraints = parent::getAttachmentConstraints(); return array_merge($attachmentConstraints, $this->_getFieldAttachmentModel()->getFileConstraints()); }
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); }