PHP Class Swift_Mime_Grammar, Halite

Author: Fabien Potencier
Author: Chris Corbyn
Mostra file Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__construct ( ) Initialize some RFC 2822 (and friends) ABNF grammar definitions.
__wakeup ( )
escapeSpecials ( string $token, string[] $include = [], string[] $exclude = [] ) : string Escape special characters in a string (convert to quoted-pairs).
getDefinition ( string $name ) : string Get the grammar defined for $name token.
getGrammarDefinitions ( ) : array Returns the tokens defined in RFC 2822 (and some related RFCs).
getSpecials ( ) : array Returns the current special characters used in the syntax which need to be escaped.

Protected Methods

Method Description
init ( )

Method Details

__construct() public method

Initialize some RFC 2822 (and friends) ABNF grammar definitions.
public __construct ( )

__wakeup() public method

public __wakeup ( )

escapeSpecials() public method

Escape special characters in a string (convert to quoted-pairs).
public escapeSpecials ( string $token, string[] $include = [], string[] $exclude = [] ) : string
$token string
$include string[] additional chars to escape
$exclude string[] chars from escaping
return string

getDefinition() public method

Get the grammar defined for $name token.
public getDefinition ( string $name ) : string
$name string exactly as written in the RFC
return string

getGrammarDefinitions() public method

Returns the tokens defined in RFC 2822 (and some related RFCs).
public getGrammarDefinitions ( ) : array
return array

getSpecials() public method

Returns the current special characters used in the syntax which need to be escaped.
public getSpecials ( ) : array
return array

init() protected method

protected init ( )