Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 17134 Rev 17136
Línea 123... Línea 123...
123
                    
123
                    
124
                }
124
                }
Línea 125... Línea 125...
125
            }
125
            }
126
            
-
 
127
            if($isJson) {
-
 
128
 
126
            
Línea 129... Línea 127...
129
 
127
            if($isJson) {
130
                $capsule_uuid   = Functions::sanitizeFilterString($this->params()->fromQuery('capsule_uuid'));
128
                $capsule_uuid = Functions::sanitizeFilterString($this->params()->fromQuery('capsule_uuid'));
131
                
129
                
132
                $data = [
130
                $data = [
133
                    'link_add' => '',
-
 
134
                    'items' => [] ,
131
                    'link_add' => '',
Línea 135... Línea 132...
135
                    'total' => 0,
132
                    'items' => [] ,
136
                    
133
                    'total' => 0,
137
                ];
-
 
138
   
134
                ];
139
                $capsuleMapper = MicrolearningCapsuleMapper::getInstance($this->adapter);
135
   
140
                $capsule = $capsuleMapper->fetchOneByUuid($capsule_uuid);
136
                $capsuleMapper = MicrolearningCapsuleMapper::getInstance($this->adapter);
141
                
137
                $capsule = $capsuleMapper->fetchOneByUuid($capsule_uuid);
142
                
138
            
143
                if(!$capsule) {
139
                if(!$capsule) {
Línea 254... Línea 250...
254
                            $item['media']['image'] =  $storage->getGenericImage($path, $record->uuid, $record->file );
250
                            $item['media']['image'] =  $storage->getGenericImage($path, $record->uuid, $record->file );
255
                            $item['details']['type'] = 'LABEL_IMAGE';
251
                            $item['details']['type'] = 'LABEL_IMAGE';
256
                            break;
252
                            break;
Línea 257... Línea 253...
257
                            
253
                            
258
                    }
-
 
259
                    
254
                    }
260
                    
255
      
261
                    array_push($items, $item);
-
 
262
 
256
                    array_push($items, $item);
Línea 263... Línea 257...
263
                }
257
                }
264
                
258
                
265
                if($allowAdd  && $capsule) {
259
                if($allowAdd  && $capsule) {