Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_Attachment
  • Swift_EmbeddedFile
  • Swift_Image
  • Swift_Message
  • Swift_Mime_Attachment
  • Swift_Mime_ContentEncoder_Base64ContentEncoder
  • Swift_Mime_ContentEncoder_NativeQpContentEncoder
  • Swift_Mime_ContentEncoder_PlainContentEncoder
  • Swift_Mime_ContentEncoder_QpContentEncoder
  • Swift_Mime_EmbeddedFile
  • Swift_Mime_Grammar
  • Swift_Mime_HeaderEncoder_Base64HeaderEncoder
  • Swift_Mime_HeaderEncoder_QpHeaderEncoder
  • Swift_Mime_Headers_AbstractHeader
  • Swift_Mime_Headers_DateHeader
  • Swift_Mime_Headers_IdentificationHeader
  • Swift_Mime_Headers_MailboxHeader
  • Swift_Mime_Headers_ParameterizedHeader
  • Swift_Mime_Headers_PathHeader
  • Swift_Mime_Headers_UnstructuredHeader
  • Swift_Mime_MimePart
  • Swift_Mime_SimpleHeaderFactory
  • Swift_Mime_SimpleHeaderSet
  • Swift_Mime_SimpleMessage
  • Swift_Mime_SimpleMimeEntity
  • Swift_MimePart

Interfaces

  • Swift_Mime_CharsetObserver
  • Swift_Mime_ContentEncoder
  • Swift_Mime_EncodingObserver
  • Swift_Mime_Header
  • Swift_Mime_HeaderEncoder
  • Swift_Mime_HeaderFactory
  • Swift_Mime_HeaderSet
  • Swift_Mime_Message
  • Swift_Mime_MimeEntity
  • Swift_Mime_ParameterizedHeader

Class Swift_Mime_Attachment

An attachment, in a multipart message.

Swift_Mime_SimpleMimeEntity implements Swift_Mime_MimeEntity
Extended by Swift_Mime_Attachment

Direct known subclasses

Swift_Attachment, Swift_Mime_EmbeddedFile

Indirect known subclasses

Swift_EmbeddedFile, Swift_Image

Package: Swift\Mime
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Mime/Attachment.php

Methods summary

public
# __construct( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_Mime_Grammar $grammar, array $mimeTypes = array() )

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

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

Parameters

$headers
Swift_Mime_HeaderSet
$headers
$encoder
Swift_Mime_ContentEncoder
$encoder
$cache
Swift_KeyCache
$cache
$grammar
Swift_Mime_Grammar
$grammar
$mimeTypes
array
$mimeTypes optional

Overrides

Swift_Mime_SimpleMimeEntity::__construct
public integer
# getNestingLevel( )

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

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

Returns

integer

Overrides

Swift_Mime_SimpleMimeEntity::getNestingLevel
public string
# getDisposition( )

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

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

Returns

string
public Swift_Mime_Attachment
# setDisposition( string $disposition )

Set the Content-Disposition of this attachment.

Set the Content-Disposition of this attachment.

Parameters

$disposition
string
$disposition

Returns

Swift_Mime_Attachment
public string
# getFilename( )

Get the filename of this attachment when downloaded.

Get the filename of this attachment when downloaded.

Returns

string
public Swift_Mime_Attachment
# setFilename( string $filename )

Set the filename of this attachment.

Set the filename of this attachment.

Parameters

$filename
string
$filename

Returns

Swift_Mime_Attachment
public integer
# getSize( )

Get the file size of this attachment.

Get the file size of this attachment.

Returns

integer
public Swift_Mime_Attachment
# setSize( integer $size )

Set the file size of this attachment.

Set the file size of this attachment.

Parameters

$size
integer
$size

Returns

Swift_Mime_Attachment
public Swift_Mime_Attachment
# setFile( Swift_FileStream $file, string $contentType = null )

Set the file that this attachment is for.

Set the file that this attachment is for.

Parameters

$file
Swift_FileStream
$file
$contentType
string
$contentType optional

Returns

Swift_Mime_Attachment

Methods inherited from Swift_Mime_SimpleMimeEntity

__destruct(), __toString(), _clearCache(), _fixHeaders(), _getCache(), _getGrammar(), _getHeaderFieldModel(), _getHeaderParameter(), _getIdField(), _setHeaderFieldModel(), _setHeaderParameter(), charsetChanged(), encoderChanged(), generateId(), getBody(), getBoundary(), getChildren(), getContentType(), getDescription(), getEncoder(), getHeaders(), getId(), getMaxLineLength(), getRandomId(), setBody(), setBoundary(), setChildren(), setContentType(), setDescription(), setEncoder(), setId(), setMaxLineLength(), toByteStream(), toString()

Magic methods summary

Constants summary

Constants inherited from Swift_Mime_MimeEntity

LEVEL_ALTERNATIVE, LEVEL_MIXED, LEVEL_RELATED, LEVEL_TOP

Properties summary

private array $_mimeTypes
#

Recognized MIME types

Recognized MIME types

Properties inherited from Swift_Mime_SimpleMimeEntity

$_userContentType

Blesta API documentation generated by ApiGen 2.8.0