src/CalendarAPI.php 1 location
|
@@ 32-36 (lines=5) @@
|
| 29 |
|
*/ |
| 30 |
|
public function pickCalendar($displayName = null) |
| 31 |
|
{ |
| 32 |
|
if ($displayName == 'default.calendar' || $displayName == null) { |
| 33 |
|
$folder = $this->getFolderByDistinguishedId('calendar'); |
| 34 |
|
} else { |
| 35 |
|
$folder = $this->getFolderByDisplayName($displayName, 'calendar'); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
$this->folderId = $folder->getFolderId(); |
| 39 |
|
|
src/ContactsAPI.php 1 location
|
@@ 24-28 (lines=5) @@
|
| 21 |
|
*/ |
| 22 |
|
public function pickContactsFolder($displayName = null) |
| 23 |
|
{ |
| 24 |
|
if ($displayName == 'default.contacts' || $displayName == null) { |
| 25 |
|
$folder = $this->getFolderByDistinguishedId('contacts'); |
| 26 |
|
} else { |
| 27 |
|
$folder = $this->getFolderByDisplayName($displayName, 'contacts'); |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
if (!$folder) { |
| 31 |
|
throw new Exception('Folder does not exist'); |