class MailinglistHeader More...
Public Member Functions | |
__construct ($str) | |
__construct() More... | |
get_atom () | |
get_atom() More... | |
get_dot_atom () | |
get_dot_atom() More... | |
get_token () | |
get_token() More... | |
get_value () | |
get_value() More... | |
skip_ws () | |
Skip White Space. More... | |
skip_cws () | |
Skip Comments or whitespace. More... | |
skip_comment () | |
Skip Comment. More... | |
get_char () | |
get_char() More... | |
push_back ($char) | |
push_back() More... | |
Private Member Functions | |
get_chunk ($chars) | |
get_chunk() More... | |
Private Attributes | |
$header | |
The header being processed. More... | |
class MailinglistHeader
a helper class for parsing EMail Headers
todo update nameing conventions.
Definition at line 113 of file MailinglistMessage.class.php.
__construct | ( | $str | ) |
$str | String with value of header to process |
Definition at line 121 of file MailinglistMessage.class.php.
get_atom | ( | ) |
Get an atom.
Definition at line 130 of file MailinglistMessage.class.php.
References get_chunk(), mailinglist_message_rfc2047(), and skip_ws().
Referenced by get_dot_atom().
get_char | ( | ) |
Get a character from the header being processed
Definition at line 244 of file MailinglistMessage.class.php.
Referenced by get_chunk(), get_dot_atom(), get_value(), skip_comment(), and skip_cws().
|
private |
get a chunck of characters belonging to a class
Definition at line 189 of file MailinglistMessage.class.php.
References get_char().
Referenced by get_atom(), and get_token().
get_dot_atom | ( | ) |
get a dotted atom.
Definition at line 143 of file MailinglistMessage.class.php.
References get_atom(), and get_char().
get_token | ( | ) |
Definition at line 156 of file MailinglistMessage.class.php.
References get_chunk(), and skip_ws().
Referenced by get_value().
get_value | ( | ) |
Get a value ( token / qstring )
Definition at line 166 of file MailinglistMessage.class.php.
References get_char(), get_token(), and skip_ws().
push_back | ( | $char | ) |
push a character/string back into header
Definition at line 259 of file MailinglistMessage.class.php.
References $header.
skip_comment | ( | ) |
Skip Comment.
Assumes the leading ( has already been removed by production calling us.
Production Name: comment
Definition at line 228 of file MailinglistMessage.class.php.
References get_char().
Referenced by skip_cws().
skip_cws | ( | ) |
Skip Comments or whitespace.
Production name: CFWS
Definition at line 212 of file MailinglistMessage.class.php.
References get_char(), and skip_comment().
skip_ws | ( | ) |
Skip White Space.
Production Name: FWS, *WSP
Definition at line 201 of file MailinglistMessage.class.php.
Referenced by get_atom(), get_token(), and get_value().
|
private |
The header being processed.
Definition at line 114 of file MailinglistMessage.class.php.
Referenced by push_back().