| @@ 20-32 (lines=13) @@ | ||
| 17 | * @param string|null $displayName |
|
| 18 | * @return $this |
|
| 19 | */ |
|
| 20 | public function pickContact($displayName = null) |
|
| 21 | { |
|
| 22 | if ($displayName == 'default.contacts' || $displayName == null) { |
|
| 23 | $folder = $this->getFolderByDistinguishedId('contacts'); |
|
| 24 | } else { |
|
| 25 | $folder = $this->getFolderByDisplayName($displayName, 'contacts'); |
|
| 26 | } |
|
| 27 | if (!$folder) { |
|
| 28 | return false; |
|
| 29 | } |
|
| 30 | $this->folderId = $folder->getFolderId(); |
|
| 31 | return $this; |
|
| 32 | } |
|
| 33 | ||
| 34 | /** |
|
| 35 | * @return Type\FolderIdType |
|
| @@ 30-41 (lines=12) @@ | ||
| 27 | * @param string|null $displayName |
|
| 28 | * @return $this |
|
| 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 | ||
| 40 | return $this; |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @return Type\FolderIdType |
|