\Acms\Services\MailerSwiftGrammar

Summary

Methods
Properties
Constants
__construct()
__wakeup()
getDefinition()
getGrammarDefinitions()
getSpecials()
escapeSpecials()
No public properties found
No constants found
init()
No protected properties found
N/A
No private methods found
$_specials
$_grammar
N/A

Properties

$_specials

$_specials : array<mixed,string>

Special characters used in the syntax which need to be escaped.

Type

array<mixed,string>

$_grammar

$_grammar : array<mixed,string>

Tokens defined in RFC 2822 (and some related RFCs).

Type

array<mixed,string>

Methods

__construct()

__construct() 

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

__wakeup()

__wakeup() 

getDefinition()

getDefinition(string  $name) : string

Get the grammar defined for $name token.

Parameters

string $name

exactly as written in the RFC

Returns

string

getGrammarDefinitions()

getGrammarDefinitions() : array

Returns the tokens defined in RFC 2822 (and some related RFCs).

Returns

array

getSpecials()

getSpecials() : array

Returns the current special characters used in the syntax which need to be escaped.

Returns

array

escapeSpecials()

escapeSpecials(string  $token, array<mixed,string>  $include = array(), array<mixed,string>  $exclude = array()) : string

Escape special characters in a string (convert to quoted-pairs).

Parameters

string $token
array<mixed,string> $include

additional chars to escape

array<mixed,string> $exclude

chars from escaping

Returns

string

init()

init()