Свойство | Тип | Описание | |
---|---|---|---|
$_id | string | Attachment identifier. | |
$_tmpfile | string | Temporary file location. | |
$_user | string | Attachment owner. |
Метод | Описание | |
---|---|---|
__construct ( string $user, string $id = null ) | Constructor. | |
__get ( $name ) | ||
delete ( ) | Delete data from storage. | |
exists ( ) : boolean | Does the attachment exist in the storage backend? | |
gc ( ) | Garbage collection. | |
getMetadata ( ) : IMP_Compose_Linked_Metadata | Return metadata about attachment. | |
getTempFile ( ) : string | Writes attachment data to a temporary file. | |
read ( ) : Horde_Stream | Read attachment data from storage. | |
saveMetadata ( IMP_Compose_Linked_Metadata $md = null ) | Save attachment metadata. | |
write ( string $filename, Horde_Mime_Part $part ) | Write attachment to storage. |
Метод | Описание | |
---|---|---|
_read ( ) | ||
_write ( $filename, Horde_Mime_Part $part ) |
public __construct ( string $user, string $id = null ) | ||
$user | string | Attachment owner. |
$id | string | Attachment identifier. |
abstract protected _write ( $filename, Horde_Mime_Part $part ) | ||
$part | Horde_Mime_Part |
public getMetadata ( ) : IMP_Compose_Linked_Metadata | ||
Результат | IMP_Compose_Linked_Metadata | Metadata object. |
public getTempFile ( ) : string | ||
Результат | string | Temporary file path. |
public read ( ) : Horde_Stream | ||
Результат | Horde_Stream | Stream object containing data. |
public saveMetadata ( IMP_Compose_Linked_Metadata $md = null ) | ||
$md | IMP_Compose_Linked_Metadata | Metadata object. Null will clear all metadata. |