XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Mime_Attachment Class Reference
Inheritance diagram for Swift_Mime_Attachment:
Inheritance graph

Public Member Functions

 __construct (Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, $mimeTypes=array())
 
 getDisposition ()
 
 getFilename ()
 
 getNestingLevel ()
 
 getSize ()
 
 setDisposition ($disposition)
 
 setFile (Swift_FileStream $file, $contentType=null)
 
 setFilename ($filename)
 
 setSize ($size)
 
- Public Member Functions inherited from Swift_Mime_SimpleMimeEntity
 __construct (Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache)
 
 __destruct ()
 
 __toString ()
 
 charsetChanged ($charset)
 
 encoderChanged (Swift_Mime_ContentEncoder $encoder)
 
 generateId ()
 
 getBody ()
 
 getBoundary ()
 
 getChildren ()
 
 getContentType ()
 
 getDescription ()
 
 getEncoder ()
 
 getHeaders ()
 
 getId ()
 
 getMaxLineLength ()
 
 getNestingLevel ()
 
 setBody ($body, $contentType=null)
 
 setBoundary ($boundary)
 
 setChildren (array $children, $compoundLevel=null)
 
 setContentType ($type)
 
 setDescription ($description)
 
 setEncoder (Swift_Mime_ContentEncoder $encoder)
 
 setId ($id)
 
 setMaxLineLength ($length)
 
 toByteStream (Swift_InputByteStream $is)
 
 toString ()
 
- Public Member Functions inherited from Swift_Mime_MimeEntity
 setChildren (array $children)
 

Private Attributes

 $_mimeTypes = array()
 

Additional Inherited Members

- Public Attributes inherited from Swift_Mime_MimeEntity
const LEVEL_ALTERNATIVE = 4096
 
const LEVEL_MIXED = 256
 
const LEVEL_RELATED = 65536
 
const LEVEL_TOP = 16
 
- Protected Member Functions inherited from Swift_Mime_SimpleMimeEntity
 _clearCache ()
 
 _fixHeaders ()
 
 _getCache ()
 
 _getHeaderFieldModel ($field)
 
 _getHeaderParameter ($field, $parameter)
 
 _getIdField ()
 
 _setHeaderFieldModel ($field, $model)
 
 _setHeaderParameter ($field, $parameter, $value)
 
 getRandomId ()
 
- Protected Attributes inherited from Swift_Mime_SimpleMimeEntity
 $_userContentType
 

Detailed Description

Definition at line 23 of file Attachment.php.

Constructor & Destructor Documentation

Swift_Mime_Attachment::__construct ( Swift_Mime_HeaderSet  $headers,
Swift_Mime_ContentEncoder  $encoder,
Swift_KeyCache  $cache,
  $mimeTypes = array() 
)

Create a new Attachment with $headers, $encoder and $cache.

Parameters
Swift_Mime_HeaderSet$headers
Swift_Mime_ContentEncoder$encoder
Swift_KeyCache$cache
array$mimeTypesoptional

Definition at line 36 of file Attachment.php.

References __construct(), Swift_Mime_SimpleMimeEntity\setContentType(), and setDisposition().

Here is the call graph for this function:

Member Function Documentation

Swift_Mime_Attachment::getDisposition ( )

Get the Content-Disposition of this attachment. By default attachments have a disposition of "attachment".

Returns
string

Definition at line 61 of file Attachment.php.

References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().

Here is the call graph for this function:

Swift_Mime_Attachment::getFilename ( )

Get the filename of this attachment when downloaded.

Returns
string

Definition at line 85 of file Attachment.php.

References Swift_Mime_SimpleMimeEntity\_getHeaderParameter().

Here is the call graph for this function:

Swift_Mime_Attachment::getNestingLevel ( )

Get the nesting level used for this attachment. Always returns LEVEL_MIXED.

Returns
int

Implements Swift_Mime_MimeEntity.

Definition at line 51 of file Attachment.php.

Swift_Mime_Attachment::getSize ( )

Get the file size of this attachment.

Returns
int

Definition at line 105 of file Attachment.php.

References Swift_Mime_SimpleMimeEntity\_getHeaderParameter().

Here is the call graph for this function:

Swift_Mime_Attachment::setDisposition (   $disposition)

Set the Content-Disposition of this attachment.

Parameters
string$disposition

Definition at line 70 of file Attachment.php.

References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_SimpleMimeEntity\getHeaders().

Referenced by Swift_Mime_EmbeddedFile\__construct(), and __construct().

Here is the call graph for this function:

Here is the caller graph for this function:

Swift_Mime_Attachment::setFile ( Swift_FileStream  $file,
  $contentType = null 
)

Set the file that this attachment is for.

Parameters
Swift_FileStream$file
string$contentTypeoptional

Definition at line 125 of file Attachment.php.

References Swift_FileStream\getPath(), Swift_Mime_SimpleMimeEntity\setBody(), Swift_Mime_SimpleMimeEntity\setContentType(), and setFilename().

Here is the call graph for this function:

Swift_Mime_Attachment::setFilename (   $filename)

Set the filename of this attachment.

Parameters
string$filename

Definition at line 94 of file Attachment.php.

References Swift_Mime_SimpleMimeEntity\_setHeaderParameter().

Referenced by Swift_Attachment\__construct(), Swift_EmbeddedFile\__construct(), and setFile().

Here is the call graph for this function:

Here is the caller graph for this function:

Swift_Mime_Attachment::setSize (   $size)

Set the file size of this attachment.

Parameters
int$size

Definition at line 114 of file Attachment.php.

References Swift_Mime_SimpleMimeEntity\_setHeaderParameter().

Here is the call graph for this function:

Member Data Documentation

Swift_Mime_Attachment::$_mimeTypes = array()
private

Recognized MIME types

Definition at line 27 of file Attachment.php.


The documentation for this class was generated from the following file: