Public Member Functions | Protected Attributes

Zend_Mail_Part_File Class Reference

Inheritance diagram for Zend_Mail_Part_File:
Zend_Mail_Part Zend_Mail_Part_Interface Zend_Mail_Message_File

Public Member Functions

 __construct (array $params)
 getContent ($stream=null)
 getSize ()
 getPart ($num)

Protected Attributes

 $_contentPos = array()
 $_partPos = array()
 $_fh

Detailed Description

Definition at line 40 of file File.php.


Constructor & Destructor Documentation

__construct ( array $  params )

Public constructor

This handler supports the following params:

  • file filename or open file handler with message content (required)
  • startPos start position of message or part in file (default: current position)
  • endPos end position of message or part in file (default: end of file)
Parameters:
array$paramsfull message with or without headers
Exceptions:
Zend_Mail_Exception

See also:
Zend_Mail_Exception
Zend_Mail_Exception
Zend_Mail_Exception
Zend_Mail_Exception

Reimplemented from Zend_Mail_Part.

Reimplemented in Zend_Mail_Message_File.

Definition at line 57 of file File.php.


Member Function Documentation

getContent ( stream = null )

Body of part

If part is multipart the raw content of this part with all sub parts is returned

Returns:
string body
Exceptions:
Zend_Mail_Exception

Definition at line 156 of file File.php.

getPart ( num )

Get part of multipart message

Parameters:
int$numnumber of part starting with 1 for first part
Returns:
Zend_Mail_Part wanted part
Exceptions:
Zend_Mail_Exception

See also:
Zend_Mail_Exception

Reimplemented from Zend_Mail_Part.

Definition at line 184 of file File.php.

getSize (  )

Return size of part

Quite simple implemented currently (not decoding). Handle with care.

Returns:
int size

Reimplemented from Zend_Mail_Part.

Definition at line 173 of file File.php.


The documentation for this class was generated from the following file: