Changeset View
Changeset View
Standalone View
Standalone View
lib/kolab_sync_data_email.php
Show First 20 Lines • Show All 981 Lines • ▼ Show 20 Lines | public function search(Syncroton_Model_StoreRequest $store) | ||||
// $this->storage->folder_sync($foldername); | // $this->storage->folder_sync($foldername); | ||||
$search = $this->storage->search_once($foldername, $search_str); | $search = $this->storage->search_once($foldername, $search_str); | ||||
if (!($search instanceof rcube_result_index)) { | if (!($search instanceof rcube_result_index)) { | ||||
continue; | continue; | ||||
} | } | ||||
$search->revert(); | |||||
$uids = $search->get(); | $uids = $search->get(); | ||||
foreach ($uids as $idx => $uid) { | foreach ($uids as $idx => $uid) { | ||||
$uids[$idx] = new Syncroton_Model_StoreResponseResult([ | $uids[$idx] = new Syncroton_Model_StoreResponseResult([ | ||||
'longId' => $this->serverId($uid, $folderid), | 'longId' => $this->serverId($uid, $folderid), | ||||
'collectionId' => $folderid, | 'collectionId' => $folderid, | ||||
'class' => 'Email', | 'class' => 'Email', | ||||
]); | ]); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 568 Lines • Show Last 20 Lines |