PHP Class IMP_Compose_Attachment, horde

Author: Michael Slusarz ([email protected])
Inheritance: implements Serializable
显示文件 Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$forceLinked boolean Force this attachment to be linked?
$id integer Attachment ID.
$related boolean Is this part associated with multipart/related data?

Protected Properties

Property Type Description
$_composeCache string Compose object cache ID.
$_isBuilt boolean Does the part contain the attachment contents?
$_linked boolean Should this attachment be linked?
$_part Horde_Mime_Part MIME part object.
$_uuid string The unique identifier for the file.

Public Methods

Method Description
__construct ( IMP_Compose $ob, Horde_Mime_Part $part, string $tmp_file ) Constructor.
__get ( $name )
delete ( ) Delete the attachment data.
getPart ( boolean $build = false ) : Horde_Mime_Part Return the MIME part object.
serialize ( )
unserialize ( $data )
viewUrl ( ) : Horde_Url Get a URL of the data.

Method Details

__construct() public method

Constructor.
public __construct ( IMP_Compose $ob, Horde_Mime_Part $part, string $tmp_file )
$ob IMP_Compose Compose object.
$part Horde_Mime_Part MIME part object.
$tmp_file string Temporary filename containing the data.

__get() public method

public __get ( $name )

delete() public method

Delete the attachment data.
public delete ( )

getPart() public method

Return the MIME part object.
public getPart ( boolean $build = false ) : Horde_Mime_Part
$build boolean If true, ensures the part contains the data.
return Horde_Mime_Part MIME part object.

serialize() public method

public serialize ( )

unserialize() public method

public unserialize ( $data )

viewUrl() public method

Get a URL of the data.
public viewUrl ( ) : Horde_Url
return Horde_Url URL to display the attachment data.

Property Details

$_composeCache protected_oe property

Compose object cache ID.
protected string $_composeCache
return string

$_isBuilt protected_oe property

Does the part contain the attachment contents?
protected bool $_isBuilt
return boolean

$_linked protected_oe property

Should this attachment be linked?
protected bool $_linked
return boolean

$_part protected_oe property

MIME part object.
protected Horde_Mime_Part $_part
return Horde_Mime_Part

$_uuid protected_oe property

The unique identifier for the file.
protected string $_uuid
return string

$forceLinked public_oe property

Force this attachment to be linked?
public bool $forceLinked
return boolean

$id public_oe property

Attachment ID.
public int $id
return integer