fileAttachment Class Reference

File based attachment class. More...

Inheritance diagram for fileAttachment:

attachment fileEmbeddedImage

List of all members.

Public Member Functions

 __construct ($filename, $contentType= 'application/octet-stream', $encoding=null)
 Constructor.


Detailed Description

File based attachment class.

Definition at line 917 of file Rmail.php.


Constructor & Destructor Documentation

fileAttachment::__construct ( filename,
contentType = 'application/octet-stream',
encoding = null 
)

Constructor.

Parameters:
string $filename Name of file
string $contentType Content type of file
string $encoding What encoding to use

Definition at line 926 of file Rmail.php.

References attachment::$contentType, and attachment::$encoding.

00927     {
00928         $encoding = is_null($encoding) ? new Base64Encoding() : $encoding;
00929 
00930         parent::__construct(file_get_contents($filename), basename($filename), $contentType, $encoding);
00931     }


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

Generated on Wed May 6 23:10:49 2009 for fareofficelib by  doxygen 1.5.8