public function get($module, $token, $user)
 {
     $syncModule = $module;
     $this->user = $user;
     $syncModule = $module;
     $result = vtws_sync($token, $syncModule, $this->user);
     $result['updated'] = $this->translateTheReferenceFieldIdsToName($result['updated'], $syncModule, $user);
     return $this->nativeToSyncFormat($result);
 }
Пример #2
0
 public function get($module, $token, $user)
 {
     $this->user = $user;
     $syncModule = $module;
     $syncType = 'user';
     if (!$this->isClientUserSyncType()) {
         $syncType = 'application';
     }
     $result = vtws_sync($token, $syncModule, $syncType, $this->user);
     $result['updated'] = $this->translateTheReferenceFieldIdsToName($result['updated'], $syncModule, $user);
     return $this->nativeToSyncFormat($result);
 }