Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 17136 Rev 17138
Línea 136... Línea 136...
136
                $capsuleMapper = MicrolearningCapsuleMapper::getInstance($this->adapter);
136
                $capsuleMapper = MicrolearningCapsuleMapper::getInstance($this->adapter);
137
                $capsule = $capsuleMapper->fetchOneByUuid($capsule_uuid);
137
                $capsule = $capsuleMapper->fetchOneByUuid($capsule_uuid);
Línea 138... Línea 138...
138
            
138
            
139
                if(!$capsule) {
139
                if(!$capsule) {
140
                    return new JsonModel([
140
                    return new JsonModel([
141
                        'success' => true,
141
                        'success' => false,
142
                        'data' => 'ERROR_CAPSULE_NOT_FOUND'
142
                        'data' => 'ERROR_CAPSULE_NOT_FOUND'
143
                    ]);
143
                    ]);
Línea 144... Línea 144...
144
                } 
144
                } 
145
                
145
                
146
                if($capsule->company_id != $currentCompany->id) {
146
                if($capsule->company_id != $currentCompany->id) {
147
                    return new JsonModel([
147
                    return new JsonModel([
148
                        'success' => true,
148
                        'success' => false,
149
                        'data' => 'ERROR_UNAUTHORIZED'
149
                        'data' => 'ERROR_UNAUTHORIZED'
Línea 150... Línea 150...
150
                    ]);
150
                    ]);
Línea 178... Línea 178...
178
                $records = $paginator->getCurrentItems(); 
178
                $records = $paginator->getCurrentItems(); 
Línea 179... Línea 179...
179
                
179
                
180
                $storage = Storage::getInstance($this->config, $this->adapter);
180
                $storage = Storage::getInstance($this->config, $this->adapter);
Línea 181... Línea -...
181
                $path = $storage->getPathMicrolearningSlide();
-
 
182
                
181
                $path = $storage->getPathMicrolearningSlide();
-
 
182
                
183
                
183
                $items = [];
184
                $items = [];
184
                
Línea 185... Línea 185...
185
                foreach($records as $record)
185
                foreach($records as $record)
186
                {
186
                {
187
    
187
    
188
                    $params = [
-
 
189
                        'capsule_uuid'  => $capsule->uuid,
188
                    $params = [
Línea 190... Línea 189...
190
                        'slide_uuid'    => $record->uuid,
189
                        'capsule_uuid'  => $capsule->uuid,