Línea 149... |
Línea 149... |
149 |
|
149 |
|
150 |
$item = [
|
150 |
$item = [
|
151 |
'id' => $record->id,
|
151 |
'id' => $record->id,
|
152 |
'name' => $record->name,
|
152 |
'name' => $record->name,
|
153 |
'image' => $storage->getUserImage($currentUser),
|
153 |
'image' => $storage->getUserImage($currentUser),
|
154 |
'link_view' => $allowView ? $this->url()->fromRoute('profile/view', ['id' => $record->uuid], ['force_canonical' => true]) : '',
|
154 |
'link_view' => $allowView ? $this->url()->fromRoute('profile/view', ['id' => $record->uuid]) : '',
|
155 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('profile/my-profiles/edit', ['id' => $record->uuid], ['force_canonical' => true]) : '',
|
155 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('profile/my-profiles/edit', ['id' => $record->uuid]) : '',
|
156 |
'link_delete' => $allowDelete && $record->public == UserProfile::PUBLIC_NO ? $this->url()->fromRoute('profile/my-profiles/delete', ['id' => $record->uuid], ['force_canonical' => true]) : '',
|
156 |
'link_delete' => $allowDelete && $record->public == UserProfile::PUBLIC_NO ? $this->url()->fromRoute('profile/my-profiles/delete', ['id' => $record->uuid]) : '',
|
Línea 157... |
Línea 157... |
157 |
];
|
157 |
];
|
158 |
|
158 |
|
Línea 425... |
Línea 425... |
425 |
'grade_or_percentage' => $userEducation->grade_or_percentage,
|
425 |
'grade_or_percentage' => $userEducation->grade_or_percentage,
|
426 |
'formatted_address' => $location->formatted_address,
|
426 |
'formatted_address' => $location->formatted_address,
|
427 |
'from_year' => $userEducation->from_year,
|
427 |
'from_year' => $userEducation->from_year,
|
428 |
'to_year' => $userEducation->to_year,
|
428 |
'to_year' => $userEducation->to_year,
|
429 |
'description' => $userEducation->description,
|
429 |
'description' => $userEducation->description,
|
430 |
'link_edit' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_education_id' => $userEducation->uuid], ['force_canonical' => true]),
|
430 |
'link_edit' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_education_id' => $userEducation->uuid]),
|
431 |
'link_delete' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'delete', 'user_education_id' => $userEducation->uuid], ['force_canonical' => true]),
|
431 |
'link_delete' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'delete', 'user_education_id' => $userEducation->uuid]),
|
432 |
];
|
432 |
];
|
433 |
}
|
433 |
}
|
Línea 434... |
Línea 434... |
434 |
|
434 |
|
435 |
$industryMapper = IndustryMapper::getInstance($this->adapter);
|
435 |
$industryMapper = IndustryMapper::getInstance($this->adapter);
|
Línea 453... |
Línea 453... |
453 |
'from_month' => $userExperience->from_month,
|
453 |
'from_month' => $userExperience->from_month,
|
454 |
'to_year' => $userExperience->to_year,
|
454 |
'to_year' => $userExperience->to_year,
|
455 |
'to_month' => $userExperience->to_month,
|
455 |
'to_month' => $userExperience->to_month,
|
456 |
'description' => $userExperience->description,
|
456 |
'description' => $userExperience->description,
|
457 |
'is_current' => $userExperience->is_current,
|
457 |
'is_current' => $userExperience->is_current,
|
458 |
'link_edit' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_experience_id' => $userExperience->uuid], ['force_canonical' => true]),
|
458 |
'link_edit' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_experience_id' => $userExperience->uuid]),
|
459 |
'link_delete' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'delete', 'user_experience_id' => $userExperience->uuid], ['force_canonical' => true])
|
459 |
'link_delete' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'delete', 'user_experience_id' => $userExperience->uuid])
|
460 |
];
|
460 |
];
|
461 |
}
|
461 |
}
|
Línea 462... |
Línea 462... |
462 |
|
462 |
|
463 |
$userAptitudes = [];
|
463 |
$userAptitudes = [];
|
Línea 528... |
Línea 528... |
528 |
'user_aptitudes' => $userAptitudes,
|
528 |
'user_aptitudes' => $userAptitudes,
|
529 |
'user_hobbies_and_interests' => $userHobbiesAndInterests,
|
529 |
'user_hobbies_and_interests' => $userHobbiesAndInterests,
|
530 |
'image_size_cover' => $image_size_cover,
|
530 |
'image_size_cover' => $image_size_cover,
|
531 |
'image_size_profile' => $image_size_profile,
|
531 |
'image_size_profile' => $image_size_profile,
|
Línea 532... |
Línea 532... |
532 |
|
532 |
|
- |
|
533 |
'link_extended' => $this->url()->fromRoute('profile/my-profiles/extended', ['id' => $userProfile->uuid] ),
|
533 |
'link_extended' => $this->url()->fromRoute('profile/my-profiles/extended', ['id' => $userProfile->uuid] , ['force_canonical' => true]),
|
534 |
'link_image_upload' => $this->url()->fromRoute('profile/my-profiles/image', ['id' => $userProfile->uuid, 'operation' => 'upload']),
|
- |
|
535 |
'link_image_upload' => $this->url()->fromRoute('profile/my-profiles/image', ['id' => $userProfile->uuid, 'operation' => 'delete']),
|
534 |
'link_image' => $this->url()->fromRoute('profile/my-profiles/image', ['id' => $userProfile->uuid], ['force_canonical' => true]),
|
536 |
'link_cover_upload' => $this->url()->fromRoute('profile/my-profiles/cover', ['id' => $userProfile->uuid, 'operation' => 'upload']),
|
535 |
'link_cover' => $this->url()->fromRoute('profile/my-profiles/cover', ['id' => $userProfile->uuid], ['force_canonical' => true]),
|
537 |
'link_cover_upload' => $this->url()->fromRoute('profile/my-profiles/cover', ['id' => $userProfile->uuid, 'operation' => 'delete']),
|
536 |
'link_experience_add' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'add'], ['force_canonical' => true]),
|
538 |
'link_experience_add' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'add']),
|
537 |
'link_education_add' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'add'], ['force_canonical' => true]),
|
539 |
'link_education_add' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'add']),
|
538 |
'link_language' => $this->url()->fromRoute('profile/my-profiles/language', ['id' => $userProfile->uuid], ['force_canonical' => true]),
|
540 |
'link_language' => $this->url()->fromRoute('profile/my-profiles/language', ['id' => $userProfile->uuid]),
|
539 |
'link_location' => $this->url()->fromRoute('profile/my-profiles/location', ['id' => $userProfile->uuid], ['force_canonical' => true]),
|
541 |
'link_location' => $this->url()->fromRoute('profile/my-profiles/location', ['id' => $userProfile->uuid]),
|
540 |
'link_skill' => $this->url()->fromRoute('profile/my-profiles/skill', ['id' => $userProfile->uuid] , ['force_canonical' => true]),
|
542 |
'link_skill' => $this->url()->fromRoute('profile/my-profiles/skill', ['id' => $userProfile->uuid] ),
|
541 |
'link_social_network' => $this->url()->fromRoute('profile/my-profiles/social-network', ['id' => $userProfile->uuid], ['force_canonical' => true]),
|
543 |
'link_social_network' => $this->url()->fromRoute('profile/my-profiles/social-network', ['id' => $userProfile->uuid]),
|
542 |
'link_aptitude' => $this->url()->fromRoute('profile/my-profiles/aptitude', ['id' => $userProfile->uuid] , ['force_canonical' => true]),
|
544 |
'link_aptitude' => $this->url()->fromRoute('profile/my-profiles/aptitude', ['id' => $userProfile->uuid] ),
|
Línea 543... |
Línea 545... |
543 |
'link_hobby_and_interest' => $this->url()->fromRoute('profile/my-profiles/hobby-and-interest', ['id' => $userProfile->uuid], ['force_canonical' => true]),
|
545 |
'link_hobby_and_interest' => $this->url()->fromRoute('profile/my-profiles/hobby-and-interest', ['id' => $userProfile->uuid]),
|
Línea 544... |
Línea 546... |
544 |
|
546 |
|
Línea 1248... |
Línea 1250... |
1248 |
'grade_or_percentage' => $userEducation->grade_or_percentage,
|
1250 |
'grade_or_percentage' => $userEducation->grade_or_percentage,
|
1249 |
'formatted_address' => $location->formatted_address,
|
1251 |
'formatted_address' => $location->formatted_address,
|
1250 |
'from_year' => $userEducation->from_year,
|
1252 |
'from_year' => $userEducation->from_year,
|
1251 |
'to_year' => $userEducation->to_year,
|
1253 |
'to_year' => $userEducation->to_year,
|
1252 |
'description' => $userEducation->description,
|
1254 |
'description' => $userEducation->description,
|
1253 |
'link_edit' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_education_id' => $userEducation->uuid], ['force_canonical' => true]),
|
1255 |
'link_edit' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_education_id' => $userEducation->uuid]),
|
1254 |
'link_delete' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'delete', 'user_education_id' => $userEducation->uuid], ['force_canonical' => true]),
|
1256 |
'link_delete' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'delete', 'user_education_id' => $userEducation->uuid]),
|
1255 |
];
|
1257 |
];
|
1256 |
}
|
1258 |
}
|
Línea 1257... |
Línea 1259... |
1257 |
|
1259 |
|
1258 |
$response = [
|
1260 |
$response = [
|
Línea 1509... |
Línea 1511... |
1509 |
'from_month' => $userExperience->from_month,
|
1511 |
'from_month' => $userExperience->from_month,
|
1510 |
'to_year' => $userExperience->to_year,
|
1512 |
'to_year' => $userExperience->to_year,
|
1511 |
'to_month' => $userExperience->to_month,
|
1513 |
'to_month' => $userExperience->to_month,
|
1512 |
'description' => $userExperience->description,
|
1514 |
'description' => $userExperience->description,
|
1513 |
'is_current' => $userExperience->is_current,
|
1515 |
'is_current' => $userExperience->is_current,
|
1514 |
'link_edit' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_experience_id' => $userExperience->uuid], ['force_canonical' => true]),
|
1516 |
'link_edit' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_experience_id' => $userExperience->uuid]),
|
1515 |
'link_delete' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'delete', 'user_experience_id' => $userExperience->uuid], ['force_canonical' => true]),
|
1517 |
'link_delete' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'delete', 'user_experience_id' => $userExperience->uuid]),
|
1516 |
];
|
1518 |
];
|
1517 |
}
|
1519 |
}
|
Línea 1518... |
Línea 1520... |
1518 |
|
1520 |
|
1519 |
$response = [
|
1521 |
$response = [
|