Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • 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
  • Overview
  • Package
  • Class
  • Todo
  • Download

Interface Swift_Mime_MimeEntity

A MIME entity, such as an attachment.

Swift_Mime_MimeEntity implements Swift_Mime_CharsetObserver, Swift_Mime_EncodingObserver

Direct known implementers

Swift_Mime_Message, Swift_Mime_SimpleMimeEntity

Indirect known implementers

Swift_Attachment, Swift_EmbeddedFile, Swift_Image, Swift_Message, Swift_Mime_Attachment, Swift_Mime_EmbeddedFile, Swift_Mime_MimePart, Swift_Mime_SimpleMessage, Swift_MimePart
Package: Swift\Mime
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Mime/MimeEntity.php
Methods summary
public integer
# getNestingLevel( )

Get the level at which this entity shall be nested in final document. The lower the value, the more outermost the entity will be nested.

Get the level at which this entity shall be nested in final document. The lower the value, the more outermost the entity will be nested.

Returns

integer

See

Swift_Mime_MimeEntity::LEVEL_TOP, Swift_Mime_MimeEntity::LEVEL_MIXED, Swift_Mime_MimeEntity::LEVEL_RELATED, Swift_Mime_MimeEntity::LEVEL_ALTERNATIVE
public string
# getContentType( )

Get the qualified content-type of this mime entity.

Get the qualified content-type of this mime entity.

Returns

string
public string
# getId( )

Returns a unique ID for this entity. For most entities this will likely be the Content-ID, though it has no explicit semantic meaning and can be considered an identifier for programming logic purposes. If a Content-ID header is present, this value SHOULD match the value of the header.

Returns a unique ID for this entity. For most entities this will likely be the Content-ID, though it has no explicit semantic meaning and can be considered an identifier for programming logic purposes. If a Content-ID header is present, this value SHOULD match the value of the header.

Returns

string
public Swift_Mime_MimeEntity[]
# getChildren( )

Get all children nested inside this entity. These are not just the immediate children, but all children.

Get all children nested inside this entity. These are not just the immediate children, but all children.

Returns

Swift_Mime_MimeEntity[]
public
# setChildren( array $children )

Set all children nested inside this entity. This includes grandchildren.

Set all children nested inside this entity. This includes grandchildren.

Parameters

$children
public Swift_Mime_Header[]
# getHeaders( )

Get the collection of Headers in this Mime entity.

Get the collection of Headers in this Mime entity.

Returns

Swift_Mime_Header[]
public string
# getBody( )

Get the body content of this entity as a string. Returns NULL if no body has been set.

Get the body content of this entity as a string. Returns NULL if no body has been set.

Returns

string
public
# setBody( string $body, string $contentType = null )

Set the body content of this entity as a string.

Set the body content of this entity as a string.

Parameters

$body
$contentType
optional
public string
# toString( )

Get this entire entity in its string form.

Get this entire entity in its string form.

Returns

string
public
# toByteStream( Swift_InputByteStream $is )

Get this entire entity as a ByteStream.

Get this entire entity as a ByteStream.

Parameters

$is
to write to
Methods inherited from Swift_Mime_CharsetObserver
charsetChanged()
Methods inherited from Swift_Mime_EncodingObserver
encoderChanged()
Constants summary
integer LEVEL_TOP

Main message document; there can only be one of these

Main message document; there can only be one of these

# 16
integer LEVEL_MIXED

An entity which nests with the same precedence as an attachment

An entity which nests with the same precedence as an attachment

# 256
integer LEVEL_ALTERNATIVE

An entity which nests with the same precedence as a mime part

An entity which nests with the same precedence as a mime part

# 4096
integer LEVEL_RELATED

An entity which nests with the same precedence as embedded content

An entity which nests with the same precedence as embedded content

# 65536
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen