Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 302 Rev 333
Línea 148... Línea 148...
148
            
148
            
149
            $accessGrantedIds = $this->getAccessGranted();
149
            $accessGrantedIds = $this->getAccessGranted();
150
            $companyMapper = CompanyMapper::getInstance($this->adapter);
150
            $companyMapper = CompanyMapper::getInstance($this->adapter);
Línea 151... Línea 151...
151
            $records = $companyMapper->fetchAllByIdsAndNetworkId($accessGrantedIds->companies, $currentNetwork->id);
151
            $records = $companyMapper->fetchAllByIdsAndNetworkId($accessGrantedIds->companies, $currentNetwork->id);
Línea 152... Línea 152...
152
            
152
            
153
            $storage = Storage::getInstance($this->config);
153
            $storage = Storage::getInstance($this->config, $this->adapter);
154
            
154
            
155
            $companies = [];
155
            $companies = [];
Línea 214... Línea 214...
214
            
214
            
215
            $userMapper = UserMapper::getInstance($this->adapter);
215
            $userMapper = UserMapper::getInstance($this->adapter);
Línea 216... Línea 216...
216
            $users = [];
216
            $users = [];
Línea 217... Línea 217...
217
            
217
            
218
            
218
            
Línea 219... Línea 219...
219
            $storage = Storage::getInstance($this->config);
219
            $storage = Storage::getInstance($this->config, $this->adapter);
Línea 501... Línea 501...
501
            $userProgressMapper = MicrolearningUserProgressMapper::getInstance($this->adapter);
501
            $userProgressMapper = MicrolearningUserProgressMapper::getInstance($this->adapter);
502
            $userProgress = $userProgressMapper->fetchOneLastCapsuleInProgressByUserIdAndCapsuleIds($currentUser->id, $accessGrantedIds->capsules);
502
            $userProgress = $userProgressMapper->fetchOneLastCapsuleInProgressByUserIdAndCapsuleIds($currentUser->id, $accessGrantedIds->capsules);
503
            $topicMapper = MicrolearningTopicMapper::getInstance($this->adapter);
503
            $topicMapper = MicrolearningTopicMapper::getInstance($this->adapter);
Línea 504... Línea 504...
504
            
504
            
505
            if($userProgress) {
505
            if($userProgress) {
506
                $storage = Storage::getInstance($this->config);
506
                $storage = Storage::getInstance($this->config, $this->adapter);
Línea 507... Línea 507...
507
                $path = $storage->getPathMicrolearningCapsule();
507
                $path = $storage->getPathMicrolearningCapsule();
508
                
508
                
Línea 590... Línea 590...
590
            
590
            
591
            
591
            
Línea 592... Línea 592...
592
            $topics = [];
592
            $topics = [];
593
            $capsules = [];
593
            $capsules = [];
Línea 594... Línea 594...
594
            
594
            
595
            $storage = Storage::getInstance($this->config);
595
            $storage = Storage::getInstance($this->config, $this->adapter);
596
            $path = $storage->getPathMicrolearningCapsule();
596
            $path = $storage->getPathMicrolearningCapsule();
Línea 728... Línea 728...
728
            $accessGranted = $this->getAccessGranted();
728
            $accessGranted = $this->getAccessGranted();
Línea 729... Línea 729...
729
            
729
            
730
            $topics = [];
730
            $topics = [];
Línea 731... Línea 731...
731
            $capsules = [];
731
            $capsules = [];
732
            
732
            
Línea 733... Línea 733...
733
            $storage = Storage::getInstance($this->config);
733
            $storage = Storage::getInstance($this->config, $this->adapter);
734
            $path = $storage->getPathMicrolearningCapsule();
734
            $path = $storage->getPathMicrolearningCapsule();
735
            
735
            
Línea 888... Línea 888...
888
            $accessGranted = $this->getAccessGranted();
888
            $accessGranted = $this->getAccessGranted();
Línea 889... Línea 889...
889
            
889
            
890
            $topics = [];
890
            $topics = [];
Línea 891... Línea 891...
891
            $capsules = [];
891
            $capsules = [];
892
            
892
            
Línea 893... Línea 893...
893
            $storage = Storage::getInstance($this->config);
893
            $storage = Storage::getInstance($this->config, $this->adapter);
894
            $path = $storage->getPathMicrolearningCapsule();
894
            $path = $storage->getPathMicrolearningCapsule();
895
            
895
            
Línea 1232... Línea 1232...
1232
            $accessGrantedIds = $this->getAccessGranted();
1232
            $accessGrantedIds = $this->getAccessGranted();
Línea 1233... Línea 1233...
1233
            
1233
            
1234
            $userProgressMapper = MicrolearningUserProgressMapper::getInstance($this->adapter);
1234
            $userProgressMapper = MicrolearningUserProgressMapper::getInstance($this->adapter);
Línea 1235... Línea 1235...
1235
            $topicMapper = MicrolearningTopicMapper::getInstance($this->adapter);
1235
            $topicMapper = MicrolearningTopicMapper::getInstance($this->adapter);
1236
            
1236
            
Línea 1237... Línea 1237...
1237
            $storage = Storage::getInstance($this->config);
1237
            $storage = Storage::getInstance($this->config, $this->adapter);
1238
            $path = $storage->getPathMicrolearningTopic();
1238
            $path = $storage->getPathMicrolearningTopic();
1239
            
1239
            
Línea 1346... Línea 1346...
1346
            } else {
1346
            } else {
1347
                $progress = 0;
1347
                $progress = 0;
1348
                $completed = 0;
1348
                $completed = 0;
1349
            }
1349
            }
Línea 1350... Línea 1350...
1350
                
1350
                
1351
            $storage = Storage::getInstance($this->config);
1351
            $storage = Storage::getInstance($this->config, $this->adapter);
Línea 1352... Línea 1352...
1352
            $path = $storage->getPathMicrolearningTopic();
1352
            $path = $storage->getPathMicrolearningTopic();
1353
                
1353
                
1354
            $data = [
1354
            $data = [
Línea 1418... Línea 1418...
1418
            $capsuleMapper = MicrolearningCapsuleMapper::getInstance($this->adapter);
1418
            $capsuleMapper = MicrolearningCapsuleMapper::getInstance($this->adapter);
1419
            $topicCapsuleMapper = MicrolearningTopicCapsuleMapper::getInstance($this->adapter);
1419
            $topicCapsuleMapper = MicrolearningTopicCapsuleMapper::getInstance($this->adapter);
1420
            $userProgressMapper = MicrolearningUserProgressMapper::getInstance($this->adapter);
1420
            $userProgressMapper = MicrolearningUserProgressMapper::getInstance($this->adapter);
1421
            $capsuleCommentMapper = MicrolearningCapsuleCommentMapper::getInstance($this->adapter);
1421
            $capsuleCommentMapper = MicrolearningCapsuleCommentMapper::getInstance($this->adapter);
Línea 1422... Línea 1422...
1422
     
1422
     
1423
            $storage = Storage::getInstance($this->config);
1423
            $storage = Storage::getInstance($this->config, $this->adapter);
Línea 1424... Línea 1424...
1424
            $path = $storage->getPathMicrolearningCapsule();
1424
            $path = $storage->getPathMicrolearningCapsule();
1425
            
1425
            
1426
            $capsules = $topicCapsuleMapper->fetchAllActiveByTopicId($topic->id);
1426
            $capsules = $topicCapsuleMapper->fetchAllActiveByTopicId($topic->id);
Línea 1657... Línea 1657...
1657
            } else {
1657
            } else {
1658
                $link_first_slide = '';
1658
                $link_first_slide = '';
1659
                $type_first_slide = '';
1659
                $type_first_slide = '';
1660
            }
1660
            }
Línea 1661... Línea 1661...
1661
                
1661
                
1662
            $storage = Storage::getInstance($this->config);
1662
            $storage = Storage::getInstance($this->config, $this->adapter);
Línea 1663... Línea 1663...
1663
            $path = $storage->getPathMicrolearningCapsule();
1663
            $path = $storage->getPathMicrolearningCapsule();
Línea 1755... Línea 1755...
1755
            $quizMapper = MicrolearningQuizMapper::getInstance($this->adapter);
1755
            $quizMapper = MicrolearningQuizMapper::getInstance($this->adapter);
Línea 1756... Línea 1756...
1756
            
1756
            
1757
            $slideMapper = MicrolearningSlideMapper::getInstance($this->adapter);
1757
            $slideMapper = MicrolearningSlideMapper::getInstance($this->adapter);
Línea 1758... Línea 1758...
1758
            $userProgressMapper = MicrolearningUserProgressMapper::getInstance($this->adapter);
1758
            $userProgressMapper = MicrolearningUserProgressMapper::getInstance($this->adapter);
1759
            
1759
            
Línea 1760... Línea 1760...
1760
            $storage = Storage::getInstance($this->config);
1760
            $storage = Storage::getInstance($this->config, $this->adapter);
1761
            $path = $storage->getPathMicrolearningSlide();
1761
            $path = $storage->getPathMicrolearningSlide();
1762
            
1762
            
Línea 1990... Línea 1990...
1990
                    $link_take_a_test = $this->url()->fromRoute('microlearning/take-a-test', ['slide_id' => $slide->uuid], ['force_canonical' => true]);
1990
                    $link_take_a_test = $this->url()->fromRoute('microlearning/take-a-test', ['slide_id' => $slide->uuid], ['force_canonical' => true]);
1991
                }
1991
                }
Línea 1992... Línea 1992...
1992
                
1992
                
Línea 1993... Línea 1993...
1993
            } 
1993
            } 
1994
                
1994
                
Línea 1995... Línea 1995...
1995
            $storage = Storage::getInstance($this->config);
1995
            $storage = Storage::getInstance($this->config, $this->adapter);
1996
            $path = $storage->getPathMicrolearningSlide();
1996
            $path = $storage->getPathMicrolearningSlide();
1997
                
1997
                
Línea 2047... Línea 2047...
2047
            $companyExtendUserPartnerMapper = MicrolearningExtendUserPartnerMapper::getInstance($this->adapter);
2047
            $companyExtendUserPartnerMapper = MicrolearningExtendUserPartnerMapper::getInstance($this->adapter);
2048
            $companyExtendUserProgramMapper = MicrolearningExtendUserProgramMapper::getInstance($this->adapter);
2048
            $companyExtendUserProgramMapper = MicrolearningExtendUserProgramMapper::getInstance($this->adapter);
2049
            $companyExtendUserStudentTypeMapper = MicrolearningExtendUserStudentTypeMapper::getInstance($this->adapter);
2049
            $companyExtendUserStudentTypeMapper = MicrolearningExtendUserStudentTypeMapper::getInstance($this->adapter);
2050
            $companyExtendUserSectorMapper = MicrolearningExtendUserSectorMapper::getInstance($this->adapter);
2050
            $companyExtendUserSectorMapper = MicrolearningExtendUserSectorMapper::getInstance($this->adapter);
Línea 2051... Línea 2051...
2051
            
2051
            
Línea 2052... Línea 2052...
2052
            $storage = Storage::getInstance($this->config);
2052
            $storage = Storage::getInstance($this->config, $this->adapter);
2053
           
2053
           
2054
 
2054