Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 47 Rev 48
Línea 3369... Línea 3369...
3369
            
3369
            
3370
            $record = [
3370
            $record = [
3371
                'company_uuid' => $company->uuid,
3371
                'company_uuid' => $company->uuid,
3372
                'company_name' => $company->name,
3372
                'company_name' => $company->name,
3373
                'company_image' => $this->url()->fromRoute('services/storage',['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image], ['force_canonical' => true]),
3373
                'company_image' => $this->url()->fromRoute('services/storage',['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image], ['force_canonical' => true]),
3374
                'details' => [
-
 
3375
                    
-
 
3376
                ],
-
 
3377
                
3374
                'details' => [],
Línea 3378... Línea 3375...
3378
            ];
3375
            ];
3379
            
3376
            
3380
            $companyExtendUser = $companyExtendUserMapper->fetchOneByCompanyIdAndUserId($company->id, $user->id);
3377
            $companyExtendUser = $companyExtendUserMapper->fetchOneByCompanyIdAndUserId($company->id, $user->id);
Línea 3384... Línea 3381...
3384
            
3381
            
Línea 3385... Línea 3382...
3385
            if($companyExtendUser->extend_company_id) {
3382
            if($companyExtendUser->extend_company_id) {
3386
                
3383
                
-
 
3384
                $extendedCompany = $companyExtendUserCompanyMapper->fetchOne($companyExtendUser->company_id);
-
 
3385
                if($extendedCompany) {
-
 
3386
                    array_push($record['details'],[
3387
                $extendedCompany = $companyExtendUserCompanyMapper->fetchOne($companyExtendUser->company_id);
3387
                        'uuid' => $extendedCompany->uuid,
-
 
3388
                        'label' => 'LABEL_COMPANY',
3388
                if($extendedCompany) {
3389
                        'value' => $extendedCompany->name
3389
                    $record['details'][] = 'LABEL_COMPANY : ' . $extendedCompany->name;
3390
                    ]);    
Línea 3390... Línea 3391...
3390
                }
3391
                }
3391
            }
3392
            }
3392
            
3393
            
-
 
3394
            if($companyExtendUser->extend_function_id) {
-
 
3395
                $extendedFunction = $companyExtendUserFunctionMapper->fetchOne($companyExtendUser->extend_function_id);
-
 
3396
                if($extendedFunction) {
3393
            if($companyExtendUser->extend_function_id) {
3397
                    array_push($record['details'],[
-
 
3398
                        'uuid' => $extendedFunction->uuid,
3394
                $extendedFunction = $companyExtendUserFunctionMapper->fetchOne($companyExtendUser->extend_function_id);
3399
                        'label' => 'LABEL_FUNCTION',
3395
                if($extendedFunction) {
3400
                        'value' => $extendedFunction->name
Línea 3396... Línea 3401...
3396
                    $record['details'][] = 'LABEL_FUNCTION : ' . $extendedFunction->name;
3401
                    ]);
3397
                }
3402
                }
3398
            }
3403
            }
-
 
3404
            
-
 
3405
            if($companyExtendUser->extend_group_id) {
-
 
3406
                $extendedGroup = $companyExtendUserGroupMapper->fetchOne($companyExtendUser->extend_group_id);
3399
            
3407
                if($extendedGroup) {
-
 
3408
                    array_push($record['details'],[
3400
            if($companyExtendUser->extend_group_id) {
3409
                        'uuid' => $extendedGroup->uuid,
3401
                $extendedGroup = $companyExtendUserGroupMapper->fetchOne($companyExtendUser->extend_group_id);
3410
                        'label' => 'LABEL_GROUP',
Línea 3402... Línea 3411...
3402
                if($extendedGroup) {
3411
                        'value' => $extendedGroup->name
3403
                    $record['details'][] = 'LABEL_GROUP : ' . $extendedGroup->name;
3412
                    ]);
3404
                }
3413
                }
-
 
3414
            }
-
 
3415
            
-
 
3416
            if($companyExtendUser->extend_institution_id) {
3405
            }
3417
                $extendedInstitution= $companyExtendUserInstitutionMapper->fetchOne($companyExtendUser->extend_institution_id);
-
 
3418
                if($extendedInstitution) {
3406
            
3419
                    array_push($record['details'],[
3407
            if($companyExtendUser->extend_institution_id) {
3420
                        'uuid' => $extendedInstitution->uuid,
Línea 3408... Línea 3421...
3408
                $extendedInstitution= $companyExtendUserInstitutionMapper->fetchOne($companyExtendUser->extend_institution_id);
3421
                        'label' => 'LABEL_INSTITUTION',
3409
                if($extendedInstitution) {
3422
                        'value' => $extendedInstitution->name
3410
                    $record['details'][] = 'LABEL_INSTITUTION : ' . $extendedInstitution->name;
3423
                    ]);
-
 
3424
                }
-
 
3425
            }
-
 
3426
            
3411
                }
3427
            if($companyExtendUser->extend_program_id) {
-
 
3428
                $extendedProgram = $companyExtendUserProgramMapper->fetchOne($companyExtendUser->extend_program_id);
-
 
3429
                if($extendedProgram) {
3412
            }
3430
                    array_push($record['details'],[
3413
            
3431
                        'uuid' => $extendedProgram->uuid,
Línea 3414... Línea 3432...
3414
            if($companyExtendUser->extend_program_id) {
3432
                        'label' => 'LABEL_PROGRAM',
3415
                $extendedProgram = $companyExtendUserProgramMapper->fetchOne($companyExtendUser->extend_program_id);
3433
                        'value' => $extendedProgram->name
3416
                if($extendedProgram) {
3434
                    ]);
-
 
3435
 
-
 
3436
                }
-
 
3437
            }
3417
                    $record['details'][] = 'LABEL_PROGRAM : ' . $extendedProgram->name;
3438
            
-
 
3439
            if($companyExtendUser->extend_sector_id) {
3418
                }
3440
                $extendedSector = $companyExtendUserSectorMapper->fetchOne($companyExtendUser->extend_sector_id);
3419
            }
3441
                if($extendedSector) {
Línea 3420... Línea 3442...
3420
            
3442
                    array_push($record['details'],[
3421
            if($companyExtendUser->extend_sector_id) {
3443
                        'uuid' => $extendedSector->uuid,
3422
                $extendedSector = $companyExtendUserSectorMapper->fetchOne($companyExtendUser->extend_sector_id);
3444
                        'label' => 'LABEL_SECTOR',
-
 
3445
                        'value' => $extendedSector->name
-
 
3446
                    ]);
-
 
3447
                }
3423
                if($extendedSector) {
3448
            }
-
 
3449
            
3424
                    $record['details'][] = 'LABEL_SECTOR : ' . $extendedSector->name;
3450
            if($companyExtendUser->extend_partner_id) {
3425
                }
3451
                $extendedPartner = $companyExtendUserPartnerMapper->fetchOne($companyExtendUser->extend_partner_id);
Línea 3426... Línea 3452...
3426
            }
3452
                if($extendedPartner) {
3427
            
3453
                    array_push($record['details'],[
3428
            if($companyExtendUser->extend_partner_id) {
3454
                        'uuid' => $extendedPartner->uuid,
-
 
3455
                        'label' => 'LABEL_PARTNER',
-
 
3456
                        'value' => $extendedPartner->name
-
 
3457
                    ]);
3429
                $extendedPartner = $companyExtendUserPartnerMapper->fetchOne($companyExtendUser->extend_partner_id);
3458
                }
-
 
3459
            }
3430
                if($extendedPartner) {
3460
            
3431
                    $record['details'][] = 'LABEL_PARTNER : ' . $extendedPartner->name;
3461
            if($companyExtendUser->extend_student_type_id) {
Línea 3432... Línea 3462...
3432
                }
3462
                $extendedStudentType = $companyExtendUserStudentTypeMapper->fetchOne($companyExtendUser->extend_student_type_id);
3433
            }
3463
                if($extendedStudentType) {