syncController; } function setSynchronizeController($syncController){ $this->syncController = $syncController; } /* * This will performs basic transformation between two records * * The sourece records refers to record which has data * Target record refers to record to which data has to be copied * */ public function performBasicTransformations(WSAPP_SyncRecordModel $sourceRecord,WSAPP_SyncRecordModel $targetRecord){ $targetRecord->setType($sourceRecord->getType()) ->setMode($sourceRecord->getMode()) ->setSyncIdentificationKey($sourceRecord->getSyncIdentificationKey()); return $targetRecord; } public function performBasicTransformationsToSourceRecords(WSAPP_SyncRecordModel $sourceRecord, WSAPP_SyncRecordModel $targetRecord){ $sourceRecord->setId($targetRecord->getId()) ->setModifiedTime($targetRecord->getModifiedTime()); return $sourceRecord; } public function performBasicTransformationsToTargetRecords(WSAPP_SyncRecordModel $sourceRecord, WSAPP_SyncRecordModel $targetRecord){ $sourceRecord->setId($targetRecord->get('_id')) ->setModifiedTime($targetRecord->get('_modifiedtime')); return $sourceRecord; } } ?>