PHP Class Swift_Mime_Grammar, Halite

Author: Fabien Potencier
Author: Chris Corbyn
Afficher le fichier Open project: HaliteChallenge/Halite Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
init ( )

Method Details

__construct() public méthode

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

__wakeup() public méthode

public __wakeup ( )

escapeSpecials() public méthode

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
Résultat string

getDefinition() public méthode

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

getGrammarDefinitions() public méthode

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

getSpecials() public méthode

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

init() protected méthode

protected init ( )