PHP 클래스 IMP_Compose_LinkedAttachment, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_atc IMP_Compose_Attachment_Storage Attachment data.
$_id string Attachment ID (filename in VFS).
$_user string Owner of the attachment.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
_getDeleteToken ( boolean $create = false ) : string Get/create the delete token.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $user, string $id = null )
$user string Attachment owner.
$id string ID of the attachment.

_getDeleteToken() 보호된 메소드

Get/create the delete token.
protected _getDeleteToken ( boolean $create = false ) : string
$create boolean Create token if it doesn't exist?
리턴 string The delete token, or null if it doesn't exist.

convert() 공개 메소드

Convert filename from old (pre-6.1) format.
public convert ( string $ts, string $file )
$ts string Timestamp.
$file string Filename.

delete() 공개 메소드

Delete a linked attachment.
public delete ( string $token ) : boolean | string
$token string The delete token.
리턴 boolean | string Filename of deleted file, or false if file was not deleted.

keepDate() 공개 정적인 메소드

Return UNIX timestamp of linked attachment expiration time.
public static keepDate ( boolean $past = true ) : integer | null
$past boolean If true, determine maximim creation time for expiration. If false, determine future expiration time.
리턴 integer | null UNIX timestamp, or null if attachments are not pruned.

sendData() 공개 메소드

Send data to the browser.
public sendData ( )

sendNotification() 공개 메소드

Send notification to attachment owner.
public sendNotification ( )

프로퍼티 상세

$_atc 보호되어 있는 프로퍼티

Attachment data.
protected IMP_Compose_Attachment_Storage $_atc
리턴 IMP_Compose_Attachment_Storage

$_id 보호되어 있는 프로퍼티

Attachment ID (filename in VFS).
protected string $_id
리턴 string

$_user 보호되어 있는 프로퍼티

Owner of the attachment.
protected string $_user
리턴 string