Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Mail_Message_File Class Reference

Public Member Functions

 __construct (array $params)
 Public constructor.
 
 getTopLines ()
 return toplines as found after headers
 
 hasFlag ($flag)
 check if flag is set
 
 getFlags ()
 get all set flags
 
- Public Member Functions inherited from Zend_Mail_Part_File
 __construct (array $params)
 Public constructor.
 
 getContent ($stream=null)
 Body of part.
 
 getSize ()
 Return size of part.
 
 getPart ($num)
 Get part of multipart message.
 
- Public Member Functions inherited from Zend_Mail_Part
 __construct (array $params)
 Public constructor.
 
 setPartClass ($class)
 Set name pf class used to encapsulate message parts.
 
 getPartClass ()
 Retrieve the class name used to encapsulate message parts.
 
 isMultipart ()
 Check if part is a multipart message.
 
 getContent ()
 Body of part.
 
 getSize ()
 Return size of part.
 
 getPart ($num)
 Get part of multipart message.
 
 countParts ()
 Count parts of a multipart part.
 
 getHeaders ()
 Get all headers.
 
 getHeader ($name, $format=null)
 Get a header in specificed format.
 
 headerExists ($name)
 Check wheater the Mail part has a specific header.
 
 getHeaderField ($name, $wantedPart=0, $firstName=0)
 Get a specific field from a header like content type or all fields as array.
 
 __get ($name)
 Getter for mail headers - name is matched in lowercase.
 
 __isset ($name)
 Isset magic method proxy to hasHeader.
 
 __toString ()
 magic method to get content of part
 
 hasChildren ()
 implements RecursiveIterator::hasChildren()
 
 getChildren ()
 implements RecursiveIterator::getChildren()
 
 valid ()
 implements Iterator::valid()
 
 next ()
 implements Iterator::next()
 
 key ()
 implements Iterator::key()
 
 current ()
 implements Iterator::current()
 
 rewind ()
 implements Iterator::rewind()
 

Protected Attributes

 $_flags = array()
 
- Protected Attributes inherited from Zend_Mail_Part_File
 $_contentPos = array()
 
 $_partPos = array()
 
 $_fh
 
- Protected Attributes inherited from Zend_Mail_Part
 $_headers
 
 $_content
 
 $_topLines = ''
 
 $_parts = array()
 
 $_countParts
 
 $_iterationPos = 1
 
 $_mail
 
 $_messageNum = 0
 
 $_partClass
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Mail_Part
 _cacheContent ()
 Cache content and split in parts if multipart.
 

Constructor & Destructor Documentation

__construct ( array  $params)

Public constructor.

In addition to the parameters of Zend_Mail_Part::__construct() this constructor supports:

  • flags array with flags for message, keys are ignored, use constants defined in Zend_Mail_Storage
Parameters
string$rawMessagefull message with or without headers
Exceptions
Zend_Mail_Exception

Member Function Documentation

getFlags ( )

get all set flags

Returns
array array with flags, key and value are the same for easy lookup

Implements Zend_Mail_Message_Interface.

getTopLines ( )

return toplines as found after headers

Returns
string toplines

Implements Zend_Mail_Message_Interface.

hasFlag (   $flag)

check if flag is set

Parameters
mixed$flaga flag name, use constants defined in Zend_Mail_Storage
Returns
bool true if set, otherwise false

Implements Zend_Mail_Message_Interface.

Member Data Documentation

$_flags = array()
protected