| Línea 43... |
Línea 43... |
| 43 |
use LeadersLinked\Mapper\AptitudeMapper;
|
43 |
use LeadersLinked\Mapper\AptitudeMapper;
|
| 44 |
use LeadersLinked\Mapper\UserAptitudeMapper;
|
44 |
use LeadersLinked\Mapper\UserAptitudeMapper;
|
| 45 |
use LeadersLinked\Mapper\HobbyAndInterestMapper;
|
45 |
use LeadersLinked\Mapper\HobbyAndInterestMapper;
|
| 46 |
use LeadersLinked\Mapper\UserHobbyAndInterestMapper;
|
46 |
use LeadersLinked\Mapper\UserHobbyAndInterestMapper;
|
| 47 |
use LeadersLinked\Library\Functions;
|
47 |
use LeadersLinked\Library\Functions;
|
| - |
|
48 |
use LeadersLinked\Library\Storage;
|
| Línea 48... |
Línea 49... |
| 48 |
|
49 |
|
| 49 |
|
50 |
|
| 50 |
class ProfileController extends AbstractActionController
|
51 |
class ProfileController extends AbstractActionController
|
| Línea 352... |
Línea 353... |
| 352 |
|
353 |
|
| 353 |
|
354 |
|
| 354 |
|
355 |
|
| - |
|
356 |
$common_connection = count($connectionMapper->fetchAllCommonConnectionsUserIdByUser1ReturnIds($currentUser->id, $userProfile->user_id));
|
| Línea 355... |
Línea 357... |
| 355 |
$common_connection = count($connectionMapper->fetchAllCommonConnectionsUserIdByUser1ReturnIds($currentUser->id, $userProfile->user_id));
|
357 |
}
|
| 356 |
}
|
358 |
|
| Línea 364... |
Línea 366... |
| 364 |
'user_id' => $user->uuid,
|
366 |
'user_id' => $user->uuid,
|
| 365 |
'user_uuid' => ($user->uuid),
|
367 |
'user_uuid' => ($user->uuid),
|
| 366 |
'full_name' => trim($user->first_name . ' ' . $user->last_name),
|
368 |
'full_name' => trim($user->first_name . ' ' . $user->last_name),
|
| 367 |
'user_profile_id' => $userProfile->id,
|
369 |
'user_profile_id' => $userProfile->id,
|
| 368 |
'user_profile_uuid' => $userProfile->uuid,
|
370 |
'user_profile_uuid' => $userProfile->uuid,
|
| 369 |
'image' => $this->url()->fromRoute('storage',['code' => $user->uuid, 'type' => 'user-profile', 'filename' => $user->image],['force_canonical' => true]),
|
371 |
'image' => $storage->getUserImage($user->uuid),
|
| 370 |
'cover' => $this->url()->fromRoute('storage',['code' => $user->uuid, 'type' => 'user-cover', 'filename' => $userProfile->cover],['force_canonical' => true]),
|
372 |
'cover' => $storage->getUserProfileCover($user->uuid, $userProfile->cover),
|
| 371 |
'overview' => $userProfile->description,
|
373 |
'overview' => $userProfile->description,
|
| 372 |
'facebook' => $userProfile->facebook,
|
374 |
'facebook' => $userProfile->facebook,
|
| 373 |
'instagram' => $userProfile->instagram,
|
375 |
'instagram' => $userProfile->instagram,
|
| 374 |
'twitter' => $userProfile->twitter,
|
376 |
'twitter' => $userProfile->twitter,
|
| 375 |
'formatted_address' => $formattedAddress,
|
377 |
'formatted_address' => $formattedAddress,
|
| Línea 457... |
Línea 459... |
| 457 |
$paginator->setItemCountPerPage(10);
|
459 |
$paginator->setItemCountPerPage(10);
|
| Línea 458... |
Línea 460... |
| 458 |
|
460 |
|
| 459 |
$items = [];
|
461 |
$items = [];
|
| Línea -... |
Línea 462... |
| - |
|
462 |
$records = $paginator->getCurrentItems();
|
| 460 |
$records = $paginator->getCurrentItems();
|
463 |
|
| 461 |
|
464 |
$storage = Storage::getInstance($this->config);
|
| Línea 462... |
Línea 465... |
| 462 |
foreach($records as $record)
|
465 |
foreach($records as $record)
|
| 463 |
{
|
466 |
{
|
| 464 |
|
467 |
|
| 465 |
$item = [
|
468 |
$item = [
|
| 466 |
'name' => trim($record['first_name'] . ' ' . $record['last_name']),
|
469 |
'name' => trim($record['first_name'] . ' ' . $record['last_name']),
|
| 467 |
'image' => $this->url()->fromRoute('storage', ['type' => 'user', 'code' => $record['uuid'], 'filename' => $record['image'] ],['force_canonical' => true]),
|
470 |
'image' => $storage->getUserImageForCodeAndFilename($record['uuid'], $record['image']),
|
| Línea 468... |
Línea 471... |
| 468 |
'link_view' => $this->url()->fromRoute('profile/view', ['id' => $record['uuid'] ]),
|
471 |
'link_view' => $this->url()->fromRoute('profile/view', ['id' => $record['uuid'] ]),
|