Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 554 Rev 555
Línea 510... Línea 510...
510
                    'user_id'           => $user->id,
510
                    'user_id'           => $user->id,
511
                    'user_uuid'         => $user->uuid,
511
                    'user_uuid'         => $user->uuid,
512
                    'full_name'         => trim($user->first_name . ' ' . $user->last_name),
512
                    'full_name'         => trim($user->first_name . ' ' . $user->last_name),
513
                    'user_profile_id'   => $userProfile->id,
513
                    'user_profile_id'   => $userProfile->id,
514
                    'user_profile_uuid' => $userProfile->uuid,
514
                    'user_profile_uuid' => $userProfile->uuid,
515
                    'image'             => $storage->getUserImage($currentUser),
515
                    'image'             => $storage->getUserProfileImage($currentUser, $userProfile),
516
                    'cover'             => $storage->getUserProfileCover($currentUser, $userProfile),
516
                    'cover'             => $storage->getUserProfileCover($currentUser, $userProfile),
517
                    'overview'          => $userProfile->description,
517
                    'overview'          => $userProfile->description,
518
                    'facebook'          => $userProfile->facebook,
518
                    'facebook'          => $userProfile->facebook,
519
                    'instagram'         => $userProfile->instagram,
519
                    'instagram'         => $userProfile->instagram,
520
                    'twitter'           => $userProfile->twitter,
520
                    'twitter'           => $userProfile->twitter,
Línea 1656... Línea 1656...
1656
                    $source_filename    = $storage->getTmpFilename();
1656
                    $source_filename    = $storage->getTmpFilename();
1657
                    $filename           = 'user-profile-' . uniqid() . '.png';
1657
                    $filename           = 'user-profile-' . uniqid() . '.png';
1658
                    $target_filename    = $storage->composePathToFilename(Storage::TYPE_USER, $user_uuid, $filename); 
1658
                    $target_filename    = $storage->composePathToFilename(Storage::TYPE_USER, $user_uuid, $filename); 
Línea 1659... Línea 1659...
1659
                   
1659
                   
1660
                    // Upload, resize, save
1660
                    // Upload, resize, save
1661
                    if (!$storage->uploadImageWithOutChangeSize($source_filename, $target_filename)) {
1661
                    if (!$storage->uploadImageResize($source_filename, $target_filename, $target_width, $target_height)) {
1662
                        // Use helper
1662
                        // Use helper
1663
                        return $this->_createSimpleErrorResponse('ERROR_THERE_WAS_AN_ERROR');
1663
                        return $this->_createSimpleErrorResponse('ERROR_THERE_WAS_AN_ERROR');
Línea 1664... Línea 1664...
1664
                    }
1664
                    }