Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 43 | Rev 45 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 43 Rev 44
Línea 1368... Línea 1368...
1368
            } else {
1368
            } else {
1369
                $device->ip = Functions::getUserIP();
1369
                $device->ip = Functions::getUserIP();
1370
                $deviceMapper->update($device);
1370
                $deviceMapper->update($device);
1371
            }
1371
            }
Línea -... Línea 1372...
-
 
1372
            
-
 
1373
 
-
 
1374
            
-
 
1375
           
-
 
1376
            
-
 
1377
            $data = json_decode($data, true);
-
 
1378
            $sync_type      = isset($data['sync_type']) ? filter_var($data['sync_type'], FILTER_SANITIZE_STRING) : '';
-
 
1379
            $user_uuid      = isset($data['user_uuid']) ? filter_var($data['user_uuid'], FILTER_SANITIZE_STRING) : '';
-
 
1380
            $company_uuid   = isset($data['company_uuid']) ? filter_var($data['company_uuid'], FILTER_SANITIZE_STRING) :  '';
Línea 1372... Línea 1381...
1372
            
1381
            
1373
            
1382
            
1374
            $syncLog = new SyncLog();
1383
            $syncLog = new SyncLog();
1375
            $syncLog->data = $data;
1384
            $syncLog->data = $data;
1376
            $syncLog->type = 'sync';
1385
            $syncLog->type = $sync_type;
Línea 1377... Línea 1386...
1377
            $syncLog->device_uuid = $device->id;
1386
            $syncLog->device_uuid = $device->id;
1378
            $syncLog->ip = Functions::getUserIP();
1387
            $syncLog->ip = Functions::getUserIP();
Línea 1379... Línea -...
1379
            
-
 
1380
            $syncLogMapper = SyncLogMapper::getInstance($this->adapter);
-
 
1381
            $syncLogMapper->insert($syncLog);
-
 
1382
            
-
 
1383
           
-
 
1384
            
-
 
Línea 1385... Línea 1388...
1385
            $data = json_decode($data, true);
1388
            
Línea 1386... Línea 1389...
1386
            $sync_type      = isset($data['sync_type']) ? filter_var($data['sync_type'], FILTER_SANITIZE_STRING) : '';
1389
            $syncLogMapper = SyncLogMapper::getInstance($this->adapter);
1387
            $user_uuid      = isset($data['user_uuid']) ? filter_var($data['user_uuid'], FILTER_SANITIZE_STRING) : '';
1390
            $syncLogMapper->insert($syncLog);