Changeset View
Changeset View
Standalone View
Standalone View
plugins/libkolab/lib/kolab_storage_dav_folder.php
Show First 20 Lines • Show All 434 Lines • ▼ Show 20 Lines | public function read_objects($uids) | ||||
$hrefs[] = $this->object_location($uid); | $hrefs[] = $this->object_location($uid); | ||||
} | } | ||||
$objects = $this->dav->getData($this->href, $this->get_dav_type(), $hrefs); | $objects = $this->dav->getData($this->href, $this->get_dav_type(), $hrefs); | ||||
if (!is_array($objects)) { | if (!is_array($objects)) { | ||||
rcube::raise_error([ | rcube::raise_error([ | ||||
'code' => 900, | 'code' => 900, | ||||
'message' => "Failed to fetch {$href}" | 'message' => "Failed to fetch {$this->href}" | ||||
], true); | ], true); | ||||
return false; | return false; | ||||
} | } | ||||
$objects = array_map([$this, 'from_dav'], $objects); | $objects = array_map([$this, 'from_dav'], $objects); | ||||
foreach ($uids as $idx => $uid) { | foreach ($uids as $idx => $uid) { | ||||
foreach ($objects as $oidx => $object) { | foreach ($objects as $oidx => $object) { | ||||
▲ Show 20 Lines • Show All 308 Lines • Show Last 20 Lines |