MetaFox

AttachmentRepositoryInterface
in

Interface Attachment.

Tags
mixin

BaseRepository

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
bool

verifyAttachmentType()

public verifyAttachmentType(User $context, UploadedFile $file, string $itemType) : bool
Parameters
$context : User
$file : UploadedFile
$itemType : string
Return values
bool

        
On this page

Search results