1 | <?php |
||
17 | class CalendarAPI extends API |
||
18 | { |
||
19 | /** |
||
20 | * @var Type\FolderIdType |
||
21 | */ |
||
22 | protected $folderId; |
||
23 | |||
24 | /** |
||
25 | * Pick a Calendar based on it's name |
||
26 | * |
||
27 | * @param string|null $displayName |
||
28 | * @return $this |
||
29 | */ |
||
30 | 6 | public function pickCalendar($displayName = null) |
|
42 | |||
43 | /** |
||
44 | * @return Type\FolderIdType |
||
45 | */ |
||
46 | 6 | public function getFolderId() |
|
54 | |||
55 | /** |
||
56 | * Create one or more calendar items |
||
57 | * |
||
58 | * @param $items CalendarItemType[]|CalendarItemType|Array or more calendar items to create |
||
59 | * @param $options array Options to merge in to the request |
||
60 | * @return Type\ItemIdType[] |
||
61 | */ |
||
62 | 3 | public function createCalendarItems($items, $options = array()) |
|
88 | |||
89 | /** |
||
90 | * Get a list of calendar items between two dates/times |
||
91 | * |
||
92 | * @param string|DateTime $start |
||
93 | * @param string|DateTime $end |
||
94 | * @param array $options |
||
95 | * @return CalendarItemType[]|Type\FindItemParentType |
||
96 | */ |
||
97 | 6 | public function getCalendarItems($start = '12:00 AM', $end = '11:59 PM', $options = array()) |
|
130 | |||
131 | /** |
||
132 | * @param $id |
||
133 | * @param $changeKey |
||
134 | * @return Type\CalendarItemType |
||
135 | */ |
||
136 | 1 | public function getCalendarItem($id, $changeKey) |
|
140 | |||
141 | /** |
||
142 | * Updates a calendar item with changes |
||
143 | * |
||
144 | * @param $itemId Type\ItemIdType |
||
145 | * @param $changes |
||
146 | * @return Type\CalendarItemType[] |
||
147 | */ |
||
148 | 1 | public function updateCalendarItem(Type\ItemIdType $itemId, $changes) |
|
172 | |||
173 | /** |
||
174 | * @param $itemId Type\ItemIdType |
||
175 | * @return bool |
||
176 | */ |
||
177 | 3 | public function deleteCalendarItem(Type\ItemIdType $itemId) |
|
183 | |||
184 | /** |
||
185 | * @param string $start |
||
186 | * @param string $end |
||
187 | * @param array $options |
||
188 | */ |
||
189 | 6 | public function deleteAllCalendarItems($start = '12:00 AM', $end = '11:59 PM', $options = array()) |
|
196 | |||
197 | /** |
||
198 | * Get a list of changes on the calendar items |
||
199 | * |
||
200 | * @param null $syncState |
||
201 | * @param array $options |
||
202 | * @return mixed |
||
203 | */ |
||
204 | 1 | public function listChanges($syncState = null, $options = array()) |
|
208 | } |
||
209 |