Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 226 Rev 227
Línea 2136... Línea 2136...
2136
                    if($userProgressMapper->update($userProgressCapsule)) {
2136
                    if($userProgressMapper->update($userProgressCapsule)) {
Línea 2137... Línea 2137...
2137
                        
2137
                        
2138
                        
2138
                        
2139
                        $userLog = new CompanyMicrolearningUserLog();
2139
                        $userLog = new CompanyMicrolearningUserLog();
2140
                        $userLog->activity      = CompanyMicrolearningUserLog::ACTIVITY_COMPLETED_CAPSULE;
2140
                        $userLog->activity      = CompanyMicrolearningUserLog::ACTIVITY_COMPLETED_CAPSULE;
2141
                        $userLog->user_id       = $userProgressSlide->user_id;
2141
                        $userLog->user_id       = $currentUser->id;
2142
                        $userLog->company_id    = $userProgressSlide->company_id;
2142
                        $userLog->company_id    = $capsule->company_id;
2143
                        $userLog->topic_id      = $userProgressSlide->topic_id;
2143
                        $userLog->topic_id      = $capsule->topic_id;
Línea 2144... Línea 2144...
2144
                        $userLog->capsule_id    = $userProgressSlide->capsule_id;
2144
                        $userLog->capsule_id    = $capsule->id;
2145
                        $userLog->added_on      = $added_on;
2145
                        $userLog->added_on      = $updated_on;
2146
                        
2146
                        
2147
                        if(!$userLogMapper->insert($userLog)) {
2147
                        if(!$userLogMapper->insert($userLog)) {
Línea 2226... Línea 2226...
2226
                    
2226
                    
Línea 2227... Línea 2227...
2227
                    if($userProgressMapper->update($userProgressTopic)) {
2227
                    if($userProgressMapper->update($userProgressTopic)) {
2228
                        
2228
                        
2229
                        $userLog = new CompanyMicrolearningUserLog();
2229
                        $userLog = new CompanyMicrolearningUserLog();
2230
                        $userLog->activity      = CompanyMicrolearningUserLog::ACTIVITY_COMPLETED_TOPIC;
2230
                        $userLog->activity      = CompanyMicrolearningUserLog::ACTIVITY_COMPLETED_TOPIC;
2231
                        $userLog->user_id       = $userProgressSlide->user_id;
2231
                        $userLog->user_id       = $currentUser->id;
2232
                        $userLog->company_id    = $userProgressSlide->company_id;
2232
                        $userLog->company_id    = $topic->company_id;
Línea 2233... Línea 2233...
2233
                        $userLog->topic_id      = $userProgressSlide->topic_id;
2233
                        $userLog->topic_id      = $topic->id;
2234
                        $userLog->added_on      = $added_on;
2234
                        $userLog->added_on      = $updated_on;
2235
                        
2235
                        
2236
                        if(!$userLogMapper->insert($userLog)) {
2236
                        if(!$userLogMapper->insert($userLog)) {