Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 346 Rev 348
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])  : '',
154
                        'link_view' => $allowView ? $this->url()->fromRoute('profile/view', ['id' => $record->uuid], ['force_canonical' => true])  : '',
155
                        'link_edit' => $allowEdit ? $this->url()->fromRoute('profile/my-profiles/edit', ['id' => $record->uuid])  : '',
155
                        'link_edit' => $allowEdit ? $this->url()->fromRoute('profile/my-profiles/edit', ['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]) : '',
156
                        'link_delete' => $allowDelete && $record->public == UserProfile::PUBLIC_NO ? $this->url()->fromRoute('profile/my-profiles/delete', ['id' => $record->uuid], ['force_canonical' => true]) : '',
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]),
430
                    'link_edit' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'edit', '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]),
431
                    'link_delete' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'delete', 'user_education_id' => $userEducation->uuid], ['force_canonical' => true]),
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]),
458
                    'link_edit' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'edit', '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]),
459
                    'link_delete' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'delete', 'user_experience_id' => $userExperience->uuid], ['force_canonical' => true])
460
                ];
460
                ];
461
            }
461
            }
Línea 462... Línea 462...
462
 
462
 
463
            $userAptitudes = [];
463
            $userAptitudes = [];
Línea 526... Línea 526...
526
                    'user_educations'   => $userEducations,
526
                    'user_educations'   => $userEducations,
527
                    'user_experiences'  => $userExperiences,
527
                    'user_experiences'  => $userExperiences,
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,
-
 
532
                    
-
 
533
                    'link_extended' => $this->url()->fromRoute('profile/my-profiles/extended', ['id' => $userProfile->uuid] , ['force_canonical' => true]),
-
 
534
                    'link_image' => $this->url()->fromRoute('profile/my-profiles/image', ['id' => $userProfile->uuid], ['force_canonical' => true]),
-
 
535
                    'link_cover' => $this->url()->fromRoute('profile/my-profiles/cover', ['id' => $userProfile->uuid], ['force_canonical' => true]),
-
 
536
                    'link_experience_add' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'add'], ['force_canonical' => true]),
-
 
537
                    'link_education_add' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'add'], ['force_canonical' => true]),
-
 
538
                    'link_language' => $this->url()->fromRoute('profile/my-profiles/language', ['id' => $userProfile->uuid], ['force_canonical' => true]),
-
 
539
                    'link_location' => $this->url()->fromRoute('profile/my-profiles/location', ['id' => $userProfile->uuid], ['force_canonical' => true]),
-
 
540
                    'link_skill' => $this->url()->fromRoute('profile/my-profiles/skill', ['id' => $userProfile->uuid] , ['force_canonical' => true]),
-
 
541
                    'link_social_network' => $this->url()->fromRoute('profile/my-profiles/social-network', ['id' => $userProfile->uuid], ['force_canonical' => true]),
-
 
542
                    'link_aptitude' => $this->url()->fromRoute('profile/my-profiles/aptitude', ['id' => $userProfile->uuid] , ['force_canonical' => true]),
-
 
543
                    'link_hobby_and_interest' => $this->url()->fromRoute('profile/my-profiles/hobby-and-interest', ['id' => $userProfile->uuid], ['force_canonical' => true]),
-
 
544
 
532
                ];
545
                ];
Línea 533... Línea 546...
533
 
546
 
Línea 534... Línea 547...
534
                return new JsonModel($data);
547
                return new JsonModel($data);
Línea 1235... Línea 1248...
1235
                        'grade_or_percentage' => $userEducation->grade_or_percentage,
1248
                        'grade_or_percentage' => $userEducation->grade_or_percentage,
1236
                        'formatted_address' => $location->formatted_address,
1249
                        'formatted_address' => $location->formatted_address,
1237
                        'from_year' => $userEducation->from_year,
1250
                        'from_year' => $userEducation->from_year,
1238
                        'to_year' => $userEducation->to_year,
1251
                        'to_year' => $userEducation->to_year,
1239
                        'description' => $userEducation->description,
1252
                        'description' => $userEducation->description,
1240
                        'link_edit' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_education_id' => $userEducation->uuid]),
1253
                        'link_edit' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_education_id' => $userEducation->uuid], ['force_canonical' => true]),
1241
                        'link_delete' => $this->url()->fromRoute('profile/my-profiles/education', ['id' => $userProfile->uuid, 'operation' => 'delete', '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]),
1242
                    ];
1255
                    ];
1243
                }
1256
                }
Línea 1244... Línea 1257...
1244
 
1257
 
1245
                $response = [
1258
                $response = [
Línea 1496... Línea 1509...
1496
                        'from_month' => $userExperience->from_month,
1509
                        'from_month' => $userExperience->from_month,
1497
                        'to_year' => $userExperience->to_year,
1510
                        'to_year' => $userExperience->to_year,
1498
                        'to_month' => $userExperience->to_month,
1511
                        'to_month' => $userExperience->to_month,
1499
                        'description' => $userExperience->description,
1512
                        'description' => $userExperience->description,
1500
                        'is_current' => $userExperience->is_current,
1513
                        'is_current' => $userExperience->is_current,
1501
                        'link_edit' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_experience_id' => $userExperience->uuid]),
1514
                        'link_edit' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'edit', 'user_experience_id' => $userExperience->uuid], ['force_canonical' => true]),
1502
                        'link_delete' => $this->url()->fromRoute('profile/my-profiles/experience', ['id' => $userProfile->uuid, 'operation' => 'delete', '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]),
1503
                    ];
1516
                    ];
1504
                }
1517
                }
Línea 1505... Línea 1518...
1505
 
1518
 
1506
                $response = [
1519
                $response = [