|
@@ 196-209 (lines=14) @@
|
| 193 |
|
return new CalendarObject($this->caldavBackend, $this->calendarInfo, $obj); |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
public function getChildren() { |
| 197 |
|
$objs = $this->caldavBackend->getCalendarObjects($this->calendarInfo['id']); |
| 198 |
|
$children = []; |
| 199 |
|
foreach ($objs as $obj) { |
| 200 |
|
if ($this->isShared() && $obj['classification'] === CalDavBackend::CLASSIFICATION_PRIVATE) { |
| 201 |
|
continue; |
| 202 |
|
} |
| 203 |
|
$obj['acl'] = $this->getChildACL(); |
| 204 |
|
$children[] = new CalendarObject($this->caldavBackend, $this->calendarInfo, $obj); |
| 205 |
|
} |
| 206 |
|
return $children; |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
public function getMultipleChildren(array $paths) { |
| 210 |
|
$objs = $this->caldavBackend->getMultipleCalendarObjects($this->calendarInfo['id'], $paths); |
| 211 |
|
$children = []; |
| 212 |
|
foreach ($objs as $obj) { |
|
@@ 209-222 (lines=14) @@
|
| 206 |
|
return $children; |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
public function getMultipleChildren(array $paths) { |
| 210 |
|
$objs = $this->caldavBackend->getMultipleCalendarObjects($this->calendarInfo['id'], $paths); |
| 211 |
|
$children = []; |
| 212 |
|
foreach ($objs as $obj) { |
| 213 |
|
if ($this->isShared() && $obj['classification'] === CalDavBackend::CLASSIFICATION_PRIVATE) { |
| 214 |
|
continue; |
| 215 |
|
} |
| 216 |
|
$obj['acl'] = $this->getChildACL(); |
| 217 |
|
$children[] = new CalendarObject($this->caldavBackend, $this->calendarInfo, $obj); |
| 218 |
|
} |
| 219 |
|
return $children; |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
public function childExists($name) { |
| 223 |
|
$obj = $this->caldavBackend->getCalendarObject($this->calendarInfo['id'], $name); |
| 224 |
|
if (!$obj) { |
| 225 |
|
return false; |