diff --git a/CHANGELOG.md b/CHANGELOG.md index f16bdc7a..464a827e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 0.9.0 - TBD +## 0.9.0 - 2016-06-29 * Moved HttpPlayback in to it's own library * Removed deprecated functions * Deprecated `API::deleteFolder` in favor of `API::deleteFolders()` diff --git a/examples/basic/README.md b/examples/basic/README.md index 16b172c2..f63e84c5 100644 --- a/examples/basic/README.md +++ b/examples/basic/README.md @@ -11,3 +11,4 @@ libraries, so that you can utilize the API beyond what has been simplified. * [Accessing a Primary SMTP Mailbox](primarySmtpAddress.php) * [Using the EWS Library with Office 365 and OAuth](authenticatingWithOAuth.php) * [Converting EWS ID Formats](convertItemIdFormat.php) + * [Working with paged results](pagingRequests.php) - **NOTE** *This does not work with Calendar Items, do to how Microsoft implemented CalendarView* \ No newline at end of file diff --git a/examples/basic/pagingRequests.php b/examples/basic/pagingRequests.php new file mode 100644 index 00000000..438f7145 --- /dev/null +++ b/examples/basic/pagingRequests.php @@ -0,0 +1,29 @@ + false]); + +$firstPage = $api->getContacts(); + +foreach ($firstPage as $contacts) { + //Work with the first page of contacts here +} + +$secondPage = $api->getNextPage($firstPage); + +foreach ($secondPage as $contacts) { + //Work with the second page of contacts here +} + +$folders = $api->getChildrenFolders('test'); + +foreach ($folders as $folder) { + //Work with folders this way +} + +$moreFolders = $api->getNextPage($folders); + +foreach ($moreFolders as $folder) { + //More folders here +} diff --git a/src/API.php b/src/API.php index 93742b0e..a30861bb 100644 --- a/src/API.php +++ b/src/API.php @@ -275,8 +275,8 @@ public function moveItem(Type\ItemIdType $itemId, Type\FolderIdType $folderId, $ } /** - * @param $items Type\ItemIdType|Type\ItemIdType[] - * @param array $options + * @param $items Type\ItemIdType|Type\ItemIdType[] + * @param array $options * @return bool */ public function deleteItems($items, $options = array()) diff --git a/src/CalendarAPI.php b/src/CalendarAPI.php index db4d34c0..f8dd5852 100644 --- a/src/CalendarAPI.php +++ b/src/CalendarAPI.php @@ -182,7 +182,7 @@ public function updateCalendarItem(Type\ItemIdType $itemId, $changes) /** * @param Type\ItemIdType $itemId - * @param array $options + * @param array $options * @return bool */ public function deleteCalendarItem(Type\ItemIdType $itemId, $options = array())