Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
MailAddrParser Class Reference
+ Collaboration diagram for MailAddrParser:

Public Member Functions

 setLax ($lax=true)
 
 setDebug ($debug=true)
 
 setEncoding ($encoding= 'UTF-8')
 
 parse ($s)
 

Data Fields

const ST_lookingForStartOfMail = 'ST_lookingForStartOfMail'
 
const ST_inAngleMail = 'ST_inAngleMail'
 
const ST_inMail = 'ST_inMail'
 
const ST_inQuotedDisplayName = 'ST_inQuotedDisplayName'
 
const ST_lookingForAngleMail = 'ST_lookingForAngleMail'
 
const ST_lookingForSeparator = 'ST_lookingForSeparator'
 
const ST_end = 'ST_end'
 

Detailed Description

Definition at line 35 of file Class.MailAddrParser.php.

Member Function Documentation

parse (   $s)

Parse the given string and extract objects

Parameters
$s
Returns
[]
Exceptions
MailAddrParserException

Definition at line 139 of file Class.MailAddrParser.php.

setDebug (   $debug = true)

Print debugging information with PHP's error_log()

Default is bool(false)

Parameters
bool$debug

Definition at line 73 of file Class.MailAddrParser.php.

setEncoding (   $encoding = 'UTF-8')

Set Multi-Byte string encoding.

Default is 'UTF-8'.

Parameters
string$encoding

Definition at line 84 of file Class.MailAddrParser.php.

setLax (   $lax = true)

Set laxist mode and do not throw exceptions. Misunderstood elements will be skipped.

Default is bool(false).

Parameters
bool$lax

Definition at line 62 of file Class.MailAddrParser.php.

Field Documentation

const ST_end = 'ST_end'

Definition at line 53 of file Class.MailAddrParser.php.

const ST_inAngleMail = 'ST_inAngleMail'

Definition at line 48 of file Class.MailAddrParser.php.

const ST_inMail = 'ST_inMail'

Definition at line 49 of file Class.MailAddrParser.php.

const ST_inQuotedDisplayName = 'ST_inQuotedDisplayName'

Definition at line 50 of file Class.MailAddrParser.php.

const ST_lookingForAngleMail = 'ST_lookingForAngleMail'

Definition at line 51 of file Class.MailAddrParser.php.

const ST_lookingForSeparator = 'ST_lookingForSeparator'

Definition at line 52 of file Class.MailAddrParser.php.

const ST_lookingForStartOfMail = 'ST_lookingForStartOfMail'

Definition at line 47 of file Class.MailAddrParser.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen