PHP 클래스 BP_Reply_By_Email_IMAP, bp-reply-by-email

파일 보기 프로젝트 열기: r-a-y/bp-reply-by-email 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$html Is the current email message body HTML?

보호된 프로퍼티들

프로퍼티 타입 설명
$connection Holds the current IMAP connection.

공개 메소드들

메소드 설명
body_parser ( resource $imap, integer $i, boolean $reply = true ) : mixed Parses the body of an email message.
init ( ) : BP_Reply_By_Email_IMAP Creates a singleton instance of the BP_Reply_By_Email_IMAP class
multipart_plain_text_parser ( obj $parts, resource $imap, integer $i, boolean $subpart = false ) : array Multipart plain-text parser.
run ( ) The main method we use to parse an IMAP inbox.

보호된 메소드들

메소드 설명
get_mail_headers ( resource $imap, integer $i ) : mixed Fetch all headers for an email and parses them into an array.

비공개 메소드들

메소드 설명
__construct ( ) Private constructor. Intentionally left empty.
close ( ) : boolean Closes the IMAP connection.
connect ( ) : boolean Connects to the IMAP inbox.
is_connected ( ) : boolean Check to see if the IMAP connection is connected.

메소드 상세

body_parser() 공개 정적인 메소드

Tries to fetch the plain-text version when available first. Otherwise, will fallback to the HTML version.
public static body_parser ( resource $imap, integer $i, boolean $reply = true ) : mixed
$imap resource The current IMAP connection
$i integer The current email message number
$reply boolean If we're parsing a reply or not. Default set to true.
리턴 mixed Either the email body on success or false on failure

get_mail_headers() 보호된 메소드

Fetch all headers for an email and parses them into an array.
protected get_mail_headers ( resource $imap, integer $i ) : mixed
$imap resource The current IMAP connection
$i integer The current email message number
리턴 mixed Array of email headers. False if no headers.

init() 공개 정적인 메소드

Creates a singleton instance of the BP_Reply_By_Email_IMAP class
public static init ( ) : BP_Reply_By_Email_IMAP
리턴 BP_Reply_By_Email_IMAP object

multipart_plain_text_parser() 공개 정적인 메소드

Used during {@link BP_Reply_By_Email_IMAP::body_parser()} if email is a multipart email. This method parses a multipart email to return the plain-text body as well as the encoding type and other parameters on success.
public static multipart_plain_text_parser ( obj $parts, resource $imap, integer $i, boolean $subpart = false ) : array
$parts obj The multiple parts of an email. See imap_fetchstructure() for more details.
$imap resource The current IMAP connection
$i integer The current email message number
$subpart boolean If we're parsing a subpart or not. Defaults to false.
리턴 array A populated array containing the body, encoding type and other parameters on success. Empty array on failure.

run() 공개 메소드

The main method we use to parse an IMAP inbox.
public run ( )

프로퍼티 상세

$connection 보호되어 있는 프로퍼티

Holds the current IMAP connection.
protected $connection

$html 공개적으로 정적으로 프로퍼티

Is the current email message body HTML?
public static $html