Mail: ezcMailParserOptions
[ ]
[ Display example ] [ Mail listing example ] [ Rfcs ]
[ ]
[ ]
[ ]
[ ]
Class: ezcMailParserOptions
|
Class containing the basic options for the mail parser. [
source]
Example of how to use the parser options:
1. $options = new ezcMailParserOptions();
2. $options->mailClass = 'myCustomMailClass'; // extends ezcMail
3. $options->fileClass = 'myCustomFileClass'; // extends ezcMailFile
4.
4.
5. $parser = new ezcMailParser( $options );
Another way to specify the options is:
1. $parser = new ezcMailParser();
2. $parser->options->mailClass = 'myCustomMailClass'; // extends ezcMail
2. $parser->options->fileClass = 'myCustomFileClass'; // extends ezcMailFile
Parents
ezcBaseOptions
|
--ezcMailParserOptions
Properties
|
string |
read/write
|
$fileClass
Specifies a class descending from ezcMailFile which can be instanciated by the parser to handle file attachments. The default value is ezcMailFile. |
|
string |
read/write
|
$mailClass
Specifies a class descending from ezcMail which can be returned by the parser if you plan to use another class instead of ezcMail. The default value is ezcMail. |
Inherited Member Variables
From
ezcBaseOptions:
Method Summary
|
public ezcMailParserOptions |
__construct(
[$options = array()] )
Constructs an object with the specified values. |
Inherited Methods
From
ezcBaseOptions :
Methods
__construct
ezcMailParserOptions __construct(
[
$options = array()] )
Constructs an object with the specified values.
Parameters
| Name |
Type |
Description |
$options |
array(string=>mixed) |
|
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
if $options contains a property not defined |
ezcBaseValueException |
if $options contains a property with a value not allowed |
Redefinition of
Last updated: Mon, 10 Nov 2008