Interface AttachmentsHandlerInterface

Class AttachmentsHandlerInterface

Direct known implementers

AttachmentsHandler

Methods summary

public uploadAttachment( EmailAttachmentInterface $attachment ) : EmailAttachment

Upload an attachment to "uploads/tmp" directory.

public deleteAttachment( EmailAttachmentInterface $attachment )

Removes a single email attachment.

public uploadEmailCollection( EmailCollectionInterface $collection )

Process attachments for each email in collection.

public deleteEmailCollection( EmailCollectionInterface $collection )

Delete attachments for each email in collection.

public getAttachmentsSize( void ) : integer

Get attachments directory file size in bytes.

public deleteOldAttachments( DateTime $removalDate ) : array

Delete old attachments prior to removal date.

public backupEmailAttachments( EmailInterface & $email )

Process email attachments.

public deleteEmailAttachments( EmailInterface $email )

Deletes email attachments.

public emptyTempDirectory( void )

Removes all files within the "uploads/tmp" directory.