프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_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. |