Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 41 Rev 43
Línea 133... Línea 133...
133
    {
133
    {
134
        $request = $this->getRequest();
134
        $request = $this->getRequest();
Línea 135... Línea 135...
135
        
135
        
Línea 136... Línea 136...
136
        if($request->isPost()) {
136
        if($request->isPost()) {
137
            
137
            
Línea 138... Línea 138...
138
            $rawdata = file_get_contents("php://input");
138
            //$rawdata = file_get_contents("php://input");
139
            error_log('$rawdata = ' . $rawdata );
139
            //error_log('$rawdata = ' . $rawdata );
140
            
140
            
Línea 300... Línea 300...
300
    }
300
    }
Línea 301... Línea 301...
301
    
301
    
302
    public function deviceAction()
302
    public function deviceAction()
Línea 303... Línea 303...
303
    {
303
    {
304
        
304
        
Línea 305... Línea 305...
305
        $rawdata = file_get_contents("php://input");
305
        //$rawdata = file_get_contents("php://input");
Línea 306... Línea 306...
306
        error_log('$rawdata = ' . $rawdata );
306
        //error_log('$rawdata = ' . $rawdata );
307
        
307
        
Línea 430... Línea 430...
430
        
430
        
431
        if($request->isPost()) {
431
        if($request->isPost()) {
432
            $currentUserPlugin = $this->plugin('currentUserPlugin');
432
            $currentUserPlugin = $this->plugin('currentUserPlugin');
Línea 433... Línea 433...
433
            $user = $currentUserPlugin->getUser();
433
            $user = $currentUserPlugin->getUser();
434
            
434
            
Línea 435... Línea 435...
435
            $rawdata = file_get_contents("php://input");
435
            //$rawdata = file_get_contents("php://input");
Línea 472... Línea 472...
472
            } else {
472
            } else {
473
                $max_date_changes = '';
473
                $max_date_changes = '';
474
            } 
474
            } 
Línea 475... Línea 475...
475
            
475
            
Línea 476... Línea 476...
476
            
476
            
Línea 477... Línea 477...
477
            error_log('device_uuid = ' . $device_uuid . ' max_date_changes = ' . $max_date_changes);
477
            //error_log('device_uuid = ' . $device_uuid . ' max_date_changes = ' . $max_date_changes);
478
            
478
            
Línea 540... Línea 540...
540
                    $companyMicrolearningUserMapper->insert($companyMicrolearningUser);
540
                    $companyMicrolearningUserMapper->insert($companyMicrolearningUser);
541
                }
541
                }
542
            }
542
            }
Línea 543... Línea -...
543
            
-
 
544
            
543
            
545
            error_log("max_date_changes = $max_date_changes, max_date_changes_db = $max_date_changes_db");
544
            
546
            
545
 
547
            //Si la que tiene el dispositivo es diferente a la fecha máxima almacenada
546
            //Si la que tiene el dispositivo es diferente a la fecha máxima almacenada
548
            $newCapsules = 0;
547
            $newCapsules = 0;
549
            if($max_date_changes != $max_date_changes_db) {
548
            if($max_date_changes != $max_date_changes_db) {
Línea 771... Línea 770...
771
        $request = $this->getRequest();
770
        $request = $this->getRequest();
Línea 772... Línea 771...
772
        
771
        
Línea 773... Línea 772...
773
        if($request->isPost()) {
772
        if($request->isPost()) {
774
            
773
            
Línea 775... Línea 774...
775
            
774
            
776
            $rawdata = file_get_contents("php://input");
775
            //$rawdata = file_get_contents("php://input");
777
            error_log('$rawdata = ' . $rawdata );
776
            //error_log('$rawdata = ' . $rawdata );
Línea 2638... Línea 2637...
2638
                            $recordProgress->company_id = $topic->company_id;
2637
                            $recordProgress->company_id = $topic->company_id;
2639
                            $recordProgress->topic_id   = $topic->id;
2638
                            $recordProgress->topic_id   = $topic->id;
2640
                            $recordProgress->capsule_id = $capsule ? $capsule->id : null;
2639
                            $recordProgress->capsule_id = $capsule ? $capsule->id : null;
2641
                            $recordProgress->slide_id   = $slide ? $slide->id : null;
2640
                            $recordProgress->slide_id   = $slide ? $slide->id : null;
2642
                            $recordProgress->added_on   = $added_on;
2641
                            $recordProgress->added_on   = $added_on;
-
 
2642
                        } 
-
 
2643
                        /*
2643
                        } else {
2644
                        else {
Línea 2644... Línea 2645...
2644
                            
2645
                            
2645
                            if($recordProgress->updated_on > $updated_on) {
2646
                            if($recordProgress->updated_on > $updated_on) {
2646
                                array_push($result_sync_ids, [
2647
                                array_push($result_sync_ids, [
2647
                                    'success' => true,
2648
                                    'success' => true,
Línea 2650... Línea 2651...
2650
                                continue;
2651
                                continue;
2651
                            }
2652
                            }
Línea 2652... Línea 2653...
2652
                            
2653
                            
2653
                            
2654
                            
2654
                            
2655
                            
2655
                        }
2656
                        }*/
Línea 2656... Línea 2657...
2656
                        $recordProgress->returning                  = $returning;
2657
                        $recordProgress->returning                  = $returning;