trait AttachmentTrait

Methods

array
getAttachmentFileExtensions(SearchIndexRecord $searchIndexRecord)

Returns all found file extensions of all attachments of SearchIndexRecord.

string
getAttachmentFulltextContent(SearchIndexRecord $searchIndexRecord)

Returns the fulltext content of all attachments of SearchIndexRecord.

string
getAttachmentsHash(SearchIndexRecord $searchIndexRecord)

Returns a combined hash string of all file contents of the attachments of SearchIndexRecord.

Details

at line 47
protected array getAttachmentFileExtensions(SearchIndexRecord $searchIndexRecord)

Returns all found file extensions of all attachments of SearchIndexRecord.

Returns empty array if there are no attachments.

Parameters

SearchIndexRecord $searchIndexRecord

Return Value

array

at line 18
protected string getAttachmentFulltextContent(SearchIndexRecord $searchIndexRecord)

Returns the fulltext content of all attachments of SearchIndexRecord.

Returns empty string if there are no attachments.

Parameters

SearchIndexRecord $searchIndexRecord

Return Value

string

at line 73
protected string getAttachmentsHash(SearchIndexRecord $searchIndexRecord)

Returns a combined hash string of all file contents of the attachments of SearchIndexRecord.

Returns empty string if there are no attachments.

Parameters

SearchIndexRecord $searchIndexRecord

Return Value

string