PHP 클래스 PHPDaemon\Clients\IMAP\Connection

상속: extends PHPDaemon\Network\ClientConnection
파일 보기 프로젝트 열기: kakserpom/phpdaemon

보호된 프로퍼티들

프로퍼티 타입 설명
$EOL
$blob
$blobOctetsLeft
$lines
$searchFlags array IMAP flags to search criteria
$state

공개 메소드들

메소드 설명
auth ( $cb, $login, $password )
countMessages ( $cb, null $flags = null ) Count messages all messages in current box
createFolder ( $cb, string $folder, $parentFolder = null ) : boolean create a new folder (and parent folders if needed)
getRawContent ( $cb, $uid, $byUid = true ) * Get raw content of message or part
getRawHeader ( $cb, $uid, $byUid = true ) * Get raw header of message or part
getRawMessage ( $cb, integer $uid, $byUid = true ) Fetch a message
getSize ( $cb, integer $uid = null ) get a list of messages with number and size
getUniqueId ( $cb, integer | null $id = null ) get unique id for one or all messages
listFolders ( $cb, string $reference = '', string $mailbox = '*' )
logout ( $cb = null ) logout of imap server
onFinish ( )
onRead ( )
onReady ( )
removeFolder ( $cb, $folder ) remove a folder
removeMessage ( $cb, integer $uid ) Remove a message from server.
renameFolder ( $cb, string $oldName, string $newName ) rename and/or move folder
selectBox ( $cb, string $box = 'INBOX' )

보호된 메소드들

메소드 설명
decodeCount ( array $lines )
decodeGetUniqueId ( array $lines )
decodeLine ( string $line ) : array split a given line in tokens. a token is literal of any form or a list
decodeList ( array $lines )
decodeSize ( $lines ) *
escapeList ( array $list ) : string escape a list with literals or lists
escapeString ( $string ) : string escape a single literal
expunge ( string $tag = self::TAG_EXPUNGE )
fetch ( array $items, string $from, string $to = null, boolean $uid = false, string $tag = self::TAG_FETCH )
onCommand ( string $tag, string $type, string $line, array $lines, string $blob )
searchMessages ( array $params, string $tag = self::TAG_SEARCH )
startsWith ( string $haystack, string $needle )
store ( array $flags, string $from, string $to = null, string $mode = null, boolean $silent = true, string $tag = self::TAG_STORE )

메소드 상세

auth() 공개 메소드

public auth ( $cb, $login, $password )

countMessages() 공개 메소드

Count messages all messages in current box
public countMessages ( $cb, null $flags = null )
$flags null

createFolder() 공개 메소드

create a new folder (and parent folders if needed)
public createFolder ( $cb, string $folder, $parentFolder = null ) : boolean
$folder string folder name
리턴 boolean success

decodeCount() 보호된 메소드

protected decodeCount ( array $lines )
$lines array

decodeGetUniqueId() 보호된 메소드

protected decodeGetUniqueId ( array $lines )
$lines array

decodeLine() 보호된 메소드

split a given line in tokens. a token is literal of any form or a list
protected decodeLine ( string $line ) : array
$line string line to decode
리턴 array tokens, literals are returned as string, lists as array

decodeList() 보호된 메소드

protected decodeList ( array $lines )
$lines array

decodeSize() 보호된 메소드

*
protected decodeSize ( $lines )
$lines

escapeList() 보호된 메소드

escape a list with literals or lists
protected escapeList ( array $list ) : string
$list array list with literals or lists as PHP array
리턴 string escaped list for imap

escapeString() 보호된 메소드

escape a single literal
protected escapeString ( $string ) : string
$string
리턴 string escaped list for imap

expunge() 보호된 메소드

protected expunge ( string $tag = self::TAG_EXPUNGE )
$tag string

fetch() 보호된 메소드

protected fetch ( array $items, string $from, string $to = null, boolean $uid = false, string $tag = self::TAG_FETCH )
$items array
$from string
$to string
$uid boolean
$tag string

getRawContent() 공개 메소드

* Get raw content of message or part
public getRawContent ( $cb, $uid, $byUid = true )
$uid number of message

getRawHeader() 공개 메소드

* Get raw header of message or part
public getRawHeader ( $cb, $uid, $byUid = true )
$uid unique number of message

getRawMessage() 공개 메소드

Fetch a message
public getRawMessage ( $cb, integer $uid, $byUid = true )
$uid integer unique number of message

getSize() 공개 메소드

get a list of messages with number and size
public getSize ( $cb, integer $uid = null )
$uid integer number of message

getUniqueId() 공개 메소드

get unique id for one or all messages
public getUniqueId ( $cb, integer | null $id = null )
$id integer | null message number

listFolders() 공개 메소드

public listFolders ( $cb, string $reference = '', string $mailbox = '*' )
$reference string
$mailbox string

logout() 공개 메소드

logout of imap server
public logout ( $cb = null )

onCommand() 보호된 메소드

protected onCommand ( string $tag, string $type, string $line, array $lines, string $blob )
$tag string response tag
$type string OK, NO, BAD
$line string last response line
$lines array full response
$blob string

onFinish() 공개 메소드

public onFinish ( )

onRead() 공개 메소드

public onRead ( )

onReady() 공개 메소드

public onReady ( )

removeFolder() 공개 메소드

remove a folder
public removeFolder ( $cb, $folder )

removeMessage() 공개 메소드

Remove a message from server.
public removeMessage ( $cb, integer $uid )
$uid integer unique number of message

renameFolder() 공개 메소드

rename and/or move folder
public renameFolder ( $cb, string $oldName, string $newName )
$oldName string name or instance of folder
$newName string new global name of folder

searchMessages() 보호된 메소드

protected searchMessages ( array $params, string $tag = self::TAG_SEARCH )
$params array
$tag string

selectBox() 공개 메소드

public selectBox ( $cb, string $box = 'INBOX' )
$box string

startsWith() 보호된 메소드

protected startsWith ( string $haystack, string $needle )
$haystack string
$needle string

store() 보호된 메소드

protected store ( array $flags, string $from, string $to = null, string $mode = null, boolean $silent = true, string $tag = self::TAG_STORE )
$flags array
$from string
$to string
$mode string (+/-)
$silent boolean
$tag string

프로퍼티 상세

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

protected $EOL

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

protected $blob

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

protected $blobOctetsLeft

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

protected $lines

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

IMAP flags to search criteria
protected array $searchFlags
리턴 array

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

protected $state