\Swift_Mime_Grammar
Defines the grammar to use for validation, implements the RFC 2822 (and friends) ABNF grammar definitions.
- Author: Fabien Potencier
Synopsis
class Swift_Mime_Grammar
{
- // members
- private array $_specials;
- private array $_grammar;
- // methods
- public void __construct()
- public void __wakeup()
- protected void init()
- public string getDefinition()
- public array getGrammarDefinitions()
- public array getSpecials()
- public string escapeSpecials()
Members
private
- $_grammar
—
array
Tokens defined in RFC 2822 (and some related RFCs). - $_specials
—
array
Special characters used in the syntax which need to be escaped.
Methods
protected
public
- __construct() — Initialize some RFC 2822 (and friends) ABNF grammar definitions.
- __wakeup()
- escapeSpecials() — Escape special characters in a string (convert to quoted-pairs).
- getDefinition() — Get the grammar defined for $name token.
- getGrammarDefinitions() — Returns the tokens defined in RFC 2822 (and some related RFCs).
- getSpecials() — Returns the current special characters used in the syntax which need to be escaped.