Class Swift_Message_Part

Description

MIME Part body component for Swift Mailer

Located in /Swift/Message/Part.php (line 20)

Swift_Message_Mime
   |
   --Swift_Message_Part
Method Summary
Swift_Message_Part __construct ([mixed $data = null], [string $type = "text/plain"], [string $encoding = null], [string $charset = null])
mixed getBody ()
string getCharset ()
string getLevel ()
void preBuild ()
void setBody (mixed $body)
void setCharset (string $charset)
void setFlowed ([boolean $flowed = true])
Variables
Methods
Constructor __construct (line 29)

Constructor

  • access: public
Swift_Message_Part __construct ([mixed $data = null], [string $type = "text/plain"], [string $encoding = null], [string $charset = null])
  • mixed $data: The data to use in the body
  • string $type: Mime type
  • string $encoding: The encoding format used
  • string $charset: The charset used

Redefinition of:
Swift_Message_Mime::__construct()
Constructor
getBody (line 69)

Alias for getData()

  • return: The document body
  • access: public
mixed getBody ()
getCharset (line 87)

Get the charset used in the document

Returns null if none is set

  • access: public
string getCharset ()
getLevel (line 53)

Get the level in the MIME hierarchy at which this section should appear.

  • access: public
string getLevel ()

Redefinition of:
Swift_Message_Mime::getLevel()
Get the level at which this mime part would appear in a document
preBuild (line 111)

Pre-compilation logic

  • access: public
void preBuild ()

Redefinition of:
Swift_Message_Mime::preBuild()
Execute any logic needed prior to building
setBody (line 61)

Alias for setData()

  • access: public
void setBody (mixed $body)
  • mixed $body: Body
setCharset (line 77)

Set the charset of the document

  • access: public
void setCharset (string $charset)
  • string $charset: The charset used
setFlowed (line 102)

Set the "format" attribute to flowed

  • access: public
void setFlowed ([boolean $flowed = true])
  • boolean $flowed: On or Off

Inherited Methods

Inherited From Swift_Message_Mime

Swift_Message_Mime::__construct()
Swift_Message_Mime::addChild()
Swift_Message_Mime::build()
Swift_Message_Mime::buildData()
Swift_Message_Mime::generateBoundary()
Swift_Message_Mime::getChild()
Swift_Message_Mime::getContentType()
Swift_Message_Mime::getData()
Swift_Message_Mime::getEncoding()
Swift_Message_Mime::getLE()
Swift_Message_Mime::getLevel()
Swift_Message_Mime::hasChild()
Swift_Message_Mime::listChildren()
Swift_Message_Mime::numChildren()
Swift_Message_Mime::preBuild()
Swift_Message_Mime::removeChild()
Swift_Message_Mime::setContentType()
Swift_Message_Mime::setData()
Swift_Message_Mime::setEncoding()
Swift_Message_Mime::setHeaders()
Swift_Message_Mime::setLE()
Swift_Message_Mime::setLineWrap()
Swift_Message_Mime::uncacheAll()
Class Constants

Documentation generated on Wed, 26 Mar 2008 20:33:10 +1100 by phpDocumentor 1.3.1