public function onGetSyncResult($result) { $sync = 'Index: ' . $result->index . "\n"; $sync .= 'Sync Id: ' . $result->syncId . "\n"; $sync .= "Existing: \n\t\t" . preg_replace('/[a-z\\.@]+/i', '', implode("\n\t\t", (array) $result->existing)); $sync .= "\n\tNon existing: \n\t\t" . implode("\n\t\t", (array) $result->nonExisting); $parameters = ['result' => $sync]; $this->session->put($result); $this->fire(__FUNCTION__, $parameters); }
public function onGetSyncResult($result) { $this->session->put($result); }