Documentation

IMP_Compose_LinkedAttachment
in package

Linked attachment data.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2013-2017 Horde LLC

license

http://www.horde.org/licenses/gpl GPL

Table of Contents

Properties

$_atc  : IMP_Compose_Attachment_Storage
Attachment data.
$_id  : string
Attachment ID (filename in VFS).
$_user  : string
Owner of the attachment.

Methods

__construct()  : mixed
Constructor.
convert()  : mixed
Convert filename from old (pre-6.1) format.
delete()  : bool|string
Delete a linked attachment.
keepDate()  : int|null
Return UNIX timestamp of linked attachment expiration time.
sendData()  : mixed
Send data to the browser.
sendNotification()  : mixed
Send notification to attachment owner.
_getDeleteToken()  : string
Get/create the delete token.

Properties

Methods

__construct()

Constructor.

public __construct(string $user[, string $id = null ]) : mixed
Parameters
$user : string

Attachment owner.

$id : string = null

ID of the attachment.

Tags
throws
Horde_Vfs_Exception
throws
IMP_Exception

convert()

Convert filename from old (pre-6.1) format.

public convert(string $ts, string $file) : mixed
Parameters
$ts : string

Timestamp.

$file : string

Filename.

Tags
throws
IMP_Exception

delete()

Delete a linked attachment.

public delete(string $token) : bool|string
Parameters
$token : string

The delete token.

Return values
bool|string

Filename of deleted file, or false if file was not deleted.

keepDate()

Return UNIX timestamp of linked attachment expiration time.

public static keepDate([bool $past = true ]) : int|null
Parameters
$past : bool = true

If true, determine maximim creation time for expiration. If false, determine future expiration time.

Return values
int|null

UNIX timestamp, or null if attachments are not pruned.

sendNotification()

Send notification to attachment owner.

public sendNotification() : mixed

_getDeleteToken()

Get/create the delete token.

protected _getDeleteToken([bool $create = false ]) : string
Parameters
$create : bool = false

Create token if it doesn't exist?

Return values
string

The delete token, or null if it doesn't exist.


        
On this page

Search results