Introduction to Zend Framework

 Learning Zend Framework

appendix

 Zend Framework Reference


  •  Zend_Gdata
  •  Zend_Http
  •  Zend_InfoCard
  •  Zend_Json
  •  Zend_Layout
  •  Zend_Ldap
  •  Zend_Loader
  •  Zend_Locale
  •  Zend_Log
  •  Zend_Mail
  •  Zend_Markup
  •  Zend_Measure
  •  Zend_Memory
  •  Zend_Mime
  •  Zend_Navigation
  •  Zend_Oauth
  •  Zend_OpenId
  •  Zend_Paginator
  •  Zend_Pdf
  •  Zend_ProgressBar
  •  Zend_Queue
  •  Zend_Reflection
  •  Zend_Registry
  •  Zend_Rest

  •  Zend_Search_Lucene
  •  Zend_Serializer
  •  Zend_Server
  •  Zend_Service
  •  Zend_Session
  •  Zend_Soap
  •  Zend_Tag
  •  Zend_Test
  •  Zend_Text
  •  Zend_TimeSync
  •  Zend_Tool
  •  Zend_Tool_Framework
  •  Zend_Tool_Project
  •  Zend_Translate
  •  Zend_Uri
  •  Zend_Validate
  •  Zend_Version
  •  Zend_View
  •  Zend_Wildfire
  •  Zend_XmlRpc
  • ZendX_Console_Process_Unix
  • ZendX_JQuery
  • Update 2011-11-16 - Revision 24438 - Version ZF 1.11.x

    Chapter 49. Zend_Mime

    49.1. Zend_Mime

    49.1.1. Introduction

    Zend_Mime is a support class for handling multipart MIME messages. It is used by Zend_Mail and Zend_Mime_Message and may be used by applications requiring MIME support.

    49.1.2. Static Methods and Constants

    Zend_Mime provides a simple set of static helper methods to work with MIME:

    • Zend_Mime::isPrintable(): Returns TRUE if the given string contains no unprintable characters, FALSE otherwise.

    • Zend_Mime::encode(): Encodes a string with specified encoding.

    • Zend_Mime::encodeBase64(): Encodes a string into base64 encoding.

    • Zend_Mime::encodeQuotedPrintable(): Encodes a string with the quoted-printable mechanism.

    • Zend_Mime::encodeBase64Header(): Encodes a string into base64 encoding for Mail Headers.

    • Zend_Mime::encodeQuotedPrintableHeader(): Encodes a string with the quoted-printable mechanism for Mail Headers.

    Zend_Mime defines a set of constants commonly used with MIME Messages:

    • Zend_Mime::TYPE_OCTETSTREAM: 'application/octet-stream'

    • Zend_Mime::TYPE_TEXT: 'text/plain'

    • Zend_Mime::TYPE_HTML: 'text/html'

    • Zend_Mime::ENCODING_7BIT: '7bit'

    • Zend_Mime::ENCODING_8BIT: '8bit'

    • Zend_Mime::ENCODING_QUOTEDPRINTABLE: 'quoted-printable'

    • Zend_Mime::ENCODING_BASE64: 'base64'

    • Zend_Mime::DISPOSITION_ATTACHMENT: 'attachment'

    • Zend_Mime::DISPOSITION_INLINE: 'inline'

    • Zend_Mime::MULTIPART_ALTERNATIVE: 'multipart/alternative'

    • Zend_Mime::MULTIPART_MIXED: 'multipart/mixed'

    • Zend_Mime::MULTIPART_RELATED: 'multipart/related'

    49.1.3. Instantiating Zend_Mime

    When Instantiating a Zend_Mime Object, a MIME boundary is stored that is used for all subsequent non-static method calls on that object. If the constructor is called with a string parameter, this value is used as a MIME boundary. If not, a random MIME boundary is generated during construction time.

    A Zend_Mime object has the following Methods:

    • boundary(): Returns the MIME boundary string.

    • boundaryLine(): Returns the complete MIME boundary line.

    • mimeEnd(): Returns the complete MIME end boundary line.

    digg delicious meneame google twitter technorati facebook

    Comments

    Loading...