Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 10104 Rev 10112
Línea 163... Línea 163...
163
 
163
 
Línea 164... Línea 164...
164
                $form = new RecruitmentSelectionVacancyForm($this->adapter, $currentCompany->id);
164
                $form = new RecruitmentSelectionVacancyForm($this->adapter, $currentCompany->id);
165
 
165
 
166
                $jobDescriptionMapper = JobDescriptionMapper::getInstance($this->adapter);
166
                $jobDescriptionMapper = JobDescriptionMapper::getInstance($this->adapter);
167
                $industryMapper = industryMapper::getInstance($this->adapter);
-
 
168
                $jobCategoryMapper = JobCategoryMapper::getInstance($this->adapter);    
-
 
169
                
-
 
170
                $jobsCategories = [];
-
 
171
                $records = $jobCategoryMapper->fetchAllActives();
-
 
172
            
-
 
173
                foreach ($records as $record)
-
 
174
                {
-
 
Línea 175... Línea 167...
175
                    $jobsCategories[$record->uuid] = $record->name;
167
                $industryMapper = industryMapper::getInstance($this->adapter);
176
                }
168
                $jobCategoryMapper = JobCategoryMapper::getInstance($this->adapter);              
177
                
169
                
178
                $this->layout()->setTemplate('layout/layout-backend');
170
                $this->layout()->setTemplate('layout/layout-backend');
179
                $viewModel = new ViewModel();
-
 
180
                $viewModel->setTemplate('leaders-linked/recruitment-and-selection-vacancies/index.phtml');
171
                $viewModel = new ViewModel();
181
                $viewModel->setVariable('form', $form);
-
 
182
                $viewModel->setVariables([
-
 
Línea 183... Línea 172...
183
                    'google_map_key' => $google_map_key,
172
                $viewModel->setTemplate('leaders-linked/recruitment-and-selection-vacancies/index.phtml');
184
                    'jobsCategories'=> $jobsCategories,
173
                $viewModel->setVariable('form', $form);
185
                ]);
174
                $viewModel->setVariable('google_map_key', $google_map_key);
Línea 418... Línea 407...
418
            $jobDescriptionMapper = JobDescriptionMapper::getInstance($this->adapter);
407
            $jobDescriptionMapper = JobDescriptionMapper::getInstance($this->adapter);
419
            $jobDescription = $jobDescriptionMapper->fetchOne($vacancy->job_description_id);
408
            $jobDescription = $jobDescriptionMapper->fetchOne($vacancy->job_description_id);
Línea 420... Línea 409...
420
 
409
 
421
            $jobCategoryMapper = JobCategoryMapper::getInstance($this->adapter);
410
            $jobCategoryMapper = JobCategoryMapper::getInstance($this->adapter);
-
 
411
            $jobCategory = $jobCategoryMapper->fetchOne($vacancy->job_category_id);
-
 
412
            $jobsCategories = [];
-
 
413
 
-
 
414
            $records = $jobCategoryMapper->fetchAllActives();
-
 
415
            
-
 
416
            foreach ($records as $record)
-
 
417
            {
-
 
418
                $jobsCategories[$record->uuid] = $record->name;
Línea 422... Línea 419...
422
            $jobCategory = $jobCategoryMapper->fetchOne($vacancy->job_category_id);
419
            }
423
 
420
 
Línea 449... Línea 446...
449
                    'city1'=> $location->city1,
446
                    'city1'=> $location->city1,
450
                    'city2' => $location->city2,
447
                    'city2' => $location->city2,
451
                    'postal_code' => $location->postal_code,
448
                    'postal_code' => $location->postal_code,
452
                    'latitude' => $location->latitude,
449
                    'latitude' => $location->latitude,
453
                    'longitude' => $location->longitude,
450
                    'longitude' => $location->longitude,
-
 
451
                    'job_category' => [
-
 
452
                        'job_category_options' => $jobsCategories,
-
 
453
                        'current_job_category' => [
454
                    'job_category_id' => $jobCategory->uuid,
454
                            'job_category_id' => $jobCategory->uuid,
-
 
455
                            'job_category_name' => $jobCategory->name,
-
 
456
                        ]
-
 
457
                    ],
455
                    'description' => $vacancy->description,
458
                    'description' => $vacancy->description,
456
                    'industry_id' => $industry->uuid, 
459
                    'industry_id' => $industry->uuid, 
457
                    'last_date' => $vacancy->last_date,
460
                    'last_date' => $vacancy->last_date,
458
                    'status' => $vacancy->status,
461
                    'status' => $vacancy->status,
459
                   // 'content' => $vacancy->content ? json_decode($vacancy->content) : [],
462
                   // 'content' => $vacancy->content ? json_decode($vacancy->content) : [],