PHP 클래스 Swift_Mime_Grammar, Halite

저자: Fabien Potencier
저자: Chris Corbyn
파일 보기 프로젝트 열기: HaliteChallenge/Halite 1 사용 예제들

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
init ( )

메소드 상세

__construct() 공개 메소드

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

__wakeup() 공개 메소드

public __wakeup ( )

escapeSpecials() 공개 메소드

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
리턴 string

getDefinition() 공개 메소드

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

getGrammarDefinitions() 공개 메소드

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

getSpecials() 공개 메소드

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

init() 보호된 메소드

protected init ( )