Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17002 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17002 Rev 17018
Línea 119... Línea 119...
119
                }
119
                }
Línea 120... Línea 120...
120
                
120
                
121
                $recompensaMapper = EngagementRewardMapper::getInstance($this->adapter);
121
                $recompensaMapper = EngagementRewardMapper::getInstance($this->adapter);
Línea 122... Línea 122...
122
                $paginator = $recompensaMapper->fetchAllDataTable($currentCompany->id, $search,  $page, $records_x_page, $order_field, $order_direction);
122
                $paginator = $recompensaMapper->fetchAllDataTable($currentCompany->id, $search,  $page, $records_x_page, $order_field, $order_direction);
123
                
123
                
Línea 124... Línea 124...
124
                $storage = Storage::getInstance($this->config);
124
                $storage = Storage::getInstance($this->config, $this->adapter);
125
                $path = $storage->getPathEngagementReward();
125
                $path = $storage->getPathEngagementReward();
126
                
126
                
Línea 231... Línea 231...
231
                        $unlink_source = true;
231
                        $unlink_source = true;
Línea 232... Línea 232...
232
                        
232
                        
233
                        $image = Image::getInstance($this->config);
233
                        $image = Image::getInstance($this->config);
Línea 234... Línea 234...
234
                        $target_path = $image->getStorage()->getPathEngagementReward();
234
                        $target_path = $image->getStorage()->getPathEngagementReward();
235
                        
235
                        
236
                        if($image->uploadImageChangeSize($tmp_filename, $target_path, $recompensa->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
236
                        if($image->uploadProcessChangeSize($tmp_filename, $target_path, $recompensa->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
237
                            $recompensa->image = $filename;
237
                            $recompensa->image = $filename;
238
                            $recompensaMapper->update($recompensa);
238
                            $recompensaMapper->update($recompensa);
Línea 322... Línea 322...
322
                $this->logger->info('Se borro la recompensa : ' .  $recompensa->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
322
                $this->logger->info('Se borro la recompensa : ' .  $recompensa->name, ['user_id' => $currentUser->id, 'ip' => Functions::getUserIP()]);
Línea 323... Línea 323...
323
                
323
                
324
               
324
               
325
                
325
                
Línea 326... Línea 326...
326
                if($recompensa->image) {
326
                if($recompensa->image) {
327
                    $storage = Storage::getInstance($this->config);
327
                    $storage = Storage::getInstance($this->config, $this->adapter);
Línea 383... Línea 383...
383
                'data'   => 'ERROR_UNAUTHORIZED'
383
                'data'   => 'ERROR_UNAUTHORIZED'
384
            ]);
384
            ]);
385
        }
385
        }
Línea 386... Línea 386...
386
        
386
        
387
        if($request->isGet()) {
387
        if($request->isGet()) {
388
            $storage = Storage::getInstance($this->config);
388
            $storage = Storage::getInstance($this->config, $this->adapter);
Línea 389... Línea 389...
389
            $path = $storage->getPathEngagementReward();
389
            $path = $storage->getPathEngagementReward();
390
            
390
            
391
            $data = [
391
            $data = [
Línea 437... Línea 437...
437
                        $crop_to_dimensions = true;
437
                        $crop_to_dimensions = true;
438
                        $unlink_source = true;
438
                        $unlink_source = true;
Línea 439... Línea 439...
439
                        
439
                        
Línea 440... Línea 440...
440
                        $image = Image::getInstance($this->config);
440
                        $image = Image::getInstance($this->config);
Línea 441... Línea 441...
441
                        
441
                        
442
                        if($image->uploadImageChangeSize($tmp_filename, $target_path, $recompensa->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
442
                        if($image->uploadProcessChangeSize($tmp_filename, $target_path, $recompensa->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
443
 
443