\ATTACHMENT

ATTACHMENT

Handle attachments

Summary

Methods
Properties
Constants
__construct()
makeLink()
listFiles()
incrementDownloadCounter()
checkAttachmentRows()
$primary
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$primary

$primary : 

string

Type

Methods

__construct()

__construct() : 

ATTACHMENT

Returns

makeLink()

makeLink(mixed||string|int  row,   list = FALSE,   reduce = TRUE,   hyperlink = TRUE) : 

Make hyperlink of attachment

Parameters

mixed||string|int row
list
reduce
hyperlink

Returns

listFiles()

listFiles(  resourceId) : mixed||string|int

List all attachments for this resource

Parameters

resourceId

Returns

mixed||string|int —

incrementDownloadCounter()

incrementDownloadCounter(  id) : 

Increment the accesses and downloads counter for this resource

Parameters

id

Returns

checkAttachmentRows()

checkAttachmentRows() : 

1. Check for any rows in table that do not have attachments – if found, delete the row 2. Check for attachments not in the table – if found, delete the attachment

Returns