Property | Type | Description | |
---|---|---|---|
$_atc | IMP_Compose_Attachment_Storage | Attachment data. | |
$_id | string | Attachment ID (filename in VFS). | |
$_user | string | Owner of the attachment. |
Method | Description | |
---|---|---|
__construct ( string $user, string $id = null ) | Constructor. | |
convert ( string $ts, string $file ) | Convert filename from old (pre-6.1) format. | |
delete ( string $token ) : boolean | string | Delete a linked attachment. | |
keepDate ( boolean $past = true ) : integer | null | Return UNIX timestamp of linked attachment expiration time. | |
sendData ( ) | Send data to the browser. | |
sendNotification ( ) | Send notification to attachment owner. |
Method | Description | |
---|---|---|
_getDeleteToken ( boolean $create = false ) : string | Get/create the delete token. |
public __construct ( string $user, string $id = null ) | ||
$user | string | Attachment owner. |
$id | string | ID of the attachment. |
protected _getDeleteToken ( boolean $create = false ) : string | ||
$create | boolean | Create token if it doesn't exist? |
return | string | The delete token, or null if it doesn't exist. |
protected IMP_Compose_Attachment_Storage $_atc | ||
return | IMP_Compose_Attachment_Storage |