PHP 클래스 ExchangeClient, Exchange-Web-Services-for-PHP

저자: Riley Dutton
저자: Rudolf Leermakers
파일 보기 프로젝트 열기: rileydutton/Exchange-Web-Services-for-PHP 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$lastError mixed The last error that occurred when communicating with the Exchange server.

공개 메소드들

메소드 설명
create_event ( string $subject, string $start, string $end, string $location, $isallday = false ) : boolean Create an event in the user's calendar. Does not currently support sending invitations to other users. Times must be passed as ISO date format.
delete_message ( ItemId $ItemId, $deletetype = "HardDelete" ) : boolean Deletes a message in the mailbox of the current user.
getFolder ( $regex, $parent = 'inbox' )
get_events ( $start, $end )
get_messages ( $limit = 50, $onlyunread = false, $folder = "inbox", $folderIdIsDistinguishedFolderId = true ) : array Get the messages for a mailbox.
get_subfolders ( string $ParentFolderId = "inbox", boolean $Distinguished = TRUE ) : object Get all subfolders of a single folder.
init ( string $user, string $pass, $delegate = NULL, $wsdl = "Services.wsdl" ) : void Initialize the class. This could be better as a __construct, but for CodeIgniter compatibility we keep it separate.
move_message ( ItemId $ItemId, $FolderId ) : ItemID Moves a message to a different folder.
send_message ( mixed $to, string $subject, string $content, $bodytype = "Text", $saveinsent = true, $markasread = true, $attachments = false, mixed $cc = false, mixed $bcc = false ) : boolean Send a message through the Exchange server as the currently logged-in user.

비공개 메소드들

메소드 설명
get_attachment ( $AttachmentID )
setup ( ) : void Sets up strream handling. Internally used.
teardown ( ) : void Tears down stream handling. Internally used.

메소드 상세

create_event() 공개 메소드

Create an event in the user's calendar. Does not currently support sending invitations to other users. Times must be passed as ISO date format.
public create_event ( string $subject, string $start, string $end, string $location, $isallday = false ) : boolean
$subject string
$start string (start time of event in ISO date format e.g. "2010-09-21T16:00:00Z"
$end string (ISO date format)
$location string
리턴 boolean $success (true if the message was created, false if there was an error)

delete_message() 공개 메소드

Deletes a message in the mailbox of the current user.
public delete_message ( ItemId $ItemId, $deletetype = "HardDelete" ) : boolean
$ItemId ItemId (such as one returned by get_messages)
리턴 boolean $success (true: message was deleted, false: message failed to delete)

getFolder() 공개 메소드

public getFolder ( $regex, $parent = 'inbox' )

get_events() 공개 메소드

public get_events ( $start, $end )

get_messages() 공개 메소드

Get the messages for a mailbox.
public get_messages ( $limit = 50, $onlyunread = false, $folder = "inbox", $folderIdIsDistinguishedFolderId = true ) : array
리턴 array $messages (an array of objects representing the messages)

get_subfolders() 공개 메소드

Get all subfolders of a single folder.
public get_subfolders ( string $ParentFolderId = "inbox", boolean $Distinguished = TRUE ) : object
$ParentFolderId string string representing the folder id of the parent folder, defaults to "inbox"
$Distinguished boolean Defines whether or not its a distinguished folder name or not
리턴 object $response the response containing all the folders

init() 공개 메소드

Initialize the class. This could be better as a __construct, but for CodeIgniter compatibility we keep it separate.
public init ( string $user, string $pass, $delegate = NULL, $wsdl = "Services.wsdl" ) : void
$user string (the username of the mailbox account you want to use on the Exchange server)
$pass string (the password of the account)
리턴 void

move_message() 공개 메소드

Moves a message to a different folder.
public move_message ( ItemId $ItemId, $FolderId ) : ItemID
$ItemId ItemId (such as one returned by get_messages, has Id and ChangeKey)
리턴 ItemID $ItemId The new ItemId (such as one returned by get_messages, has Id and ChangeKey)

send_message() 공개 메소드

Send a message through the Exchange server as the currently logged-in user.
public send_message ( mixed $to, string $subject, string $content, $bodytype = "Text", $saveinsent = true, $markasread = true, $attachments = false, mixed $cc = false, mixed $bcc = false ) : boolean
$to mixed (the email address or an array of email address to send the message to)
$subject string
$content string
$cc mixed (the email address or an array of email address of recipients to receive a carbon copy (cc) of the e-mail message)
$bcc mixed (the email address or an array of email address of recipients to receive a blind carbon copy (Bcc) of the e-mail message)
리턴 boolean $success. (True if the message was sent, false if there was an error).

프로퍼티 상세

$lastError 공개적으로 프로퍼티

The last error that occurred when communicating with the Exchange server.
public mixed $lastError
리턴 mixed