AttachmentRepositoryInterface
in
Interface Attachment.
Tags
Table of Contents
Methods
- updateItemId() : bool
- <pre>.
- verifyAttachmentType() : bool
Methods
updateItemId()
<pre>.
public
updateItemId(array<string|int, mixed> $attachments, HasTotalAttachment $item) : bool
Attachments array must contain attachment id and "status"
status = "remove" : remove attachment from item status = "create" : insert new attachment to item
Parameters
- $attachments : array<string|int, mixed>
- $item : HasTotalAttachment
Return values
boolverifyAttachmentType()
public
verifyAttachmentType(User $context, UploadedFile $file, string $itemType) : bool
Parameters
- $context : User
- $file : UploadedFile
- $itemType : string