TYPO3  7.6
Public Member Functions | Static Public Member Functions | List of all members
Swift_EmbeddedFile Class Reference
Inheritance diagram for Swift_EmbeddedFile:
Swift_Mime_EmbeddedFile Swift_Mime_Attachment Swift_Mime_SimpleMimeEntity Swift_Mime_MimeEntity Swift_Mime_CharsetObserver Swift_Mime_EncodingObserver Swift_Image

Public Member Functions

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

Static Public Member Functions

static newInstance ($data=null, $filename=null, $contentType=null)
 
static fromPath ($path)
 

Additional Inherited Members

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

Detailed Description

An embedded file, in a multipart message.

Author
Chris Corbyn

Definition at line 16 of file EmbeddedFile.php.

Constructor & Destructor Documentation

__construct (   $data = null,
  $filename = null,
  $contentType = null 
)

Create a new EmbeddedFile.

Details may be optionally provided to the constructor.

Parameters
string | Swift_OutputByteStream$data
string$filename
string$contentType

Definition at line 27 of file EmbeddedFile.php.

References $filename, Swift_DependencyContainer\getInstance(), Swift_Mime_SimpleMimeEntity\setBody(), Swift_Mime_SimpleMimeEntity\setContentType(), and Swift_Mime_Attachment\setFilename().

Member Function Documentation

static fromPath (   $path)
static

Create a new EmbeddedFile from a filesystem path.

Parameters
string$path
Returns
Swift_Mime_EmbeddedFile

Definition at line 63 of file EmbeddedFile.php.

static newInstance (   $data = null,
  $filename = null,
  $contentType = null 
)
static

Create a new EmbeddedFile.

Parameters
string | Swift_OutputByteStream$data
string$filename
string$contentType
Returns
Swift_Mime_EmbeddedFile

Definition at line 51 of file EmbeddedFile.php.

References $filename.