| Línea 388... |
Línea 388... |
| 388 |
|
388 |
|
| 389 |
$jobDescriptionCompetencyMapper = JobDescriptionCompetencyMapper::getInstance($this->adapter);
|
389 |
$jobDescriptionCompetencyMapper = JobDescriptionCompetencyMapper::getInstance($this->adapter);
|
| Línea 390... |
Línea 390... |
| 390 |
$jobDescriptionCompetencies = $jobDescriptionCompetencyMapper->fetchByJobDescriptionId($jobDescription->id);
|
390 |
$jobDescriptionCompetencies = $jobDescriptionCompetencyMapper->fetchByJobDescriptionId($jobDescription->id);
|
| 391 |
|
391 |
|
| Línea 392... |
Línea 392... |
| 392 |
$candidateMapper = RecruitmentSelectionCandidateMapper::getInstance($this->adapter);
|
392 |
$candidateMapper = RecruitmentSelectionCandidateMapper::getInstance($this->adapter);
|
| 393 |
$activeCandidates = $candidateMapper->fetchAllActives($vacancy->id);
|
393 |
$activeCandidates = $candidateMapper->fetchAllActive($vacancy->id);
|
| 394 |
|
394 |
|
| 395 |
$competencyTypeMapper = CompetencyTypeMapper::getInstance($this->adapter);
|
395 |
$competencyTypeMapper = CompetencyTypeMapper::getInstance($this->adapter);
|
| Línea 856... |
Línea 856... |
| 856 |
* @param Company $currentCompany
|
856 |
* @param Company $currentCompany
|
| 857 |
* @param recruitmentSelectionInterview $interviewEvaluation
|
857 |
* @param recruitmentSelectionInterview $interviewEvaluation
|
| 858 |
* @param array $competencies
|
858 |
* @param array $competencies
|
| 859 |
* @return mixed
|
859 |
* @return mixed
|
| 860 |
*/
|
860 |
*/
|
| 861 |
public function renderPDF($currentCompany, $interviewEvaluation, $competencies) {
|
861 |
public function renderPDF($company, $interviewEvaluation, $competencies) {
|
| Línea 862... |
Línea 862... |
| 862 |
|
862 |
|
| 863 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
863 |
$currentUserPlugin = $this->plugin('currentUserPlugin');
|
| Línea 864... |
Línea 864... |
| 864 |
$currentUser = $currentUserPlugin->getUser();
|
864 |
$currentUser = $currentUserPlugin->getUser();
|
| 865 |
|
865 |
|
| Línea 866... |
Línea -... |
| 866 |
//Generate New PDF
|
- |
|
| 867 |
$pdf = new InterviewPDF();
|
- |
|
| 868 |
|
- |
|
| 869 |
$pdf->header = '';
|
- |
|
| 870 |
$pdf->footer = '';
|
- |
|
| 871 |
|
- |
|
| 872 |
if ($currentCompany) {
|
- |
|
| 873 |
//get company Data
|
- |
|
| 874 |
$companyMapper = CompanyMapper::getInstance($this->adapter);
|
866 |
//Generate New PDF
|
| 875 |
$company = $companyMapper->fetchOne($currentCompany->id);
|
867 |
$pdf = new InterviewPDF();
|
| 876 |
|
868 |
|
| - |
|
869 |
$target_path = $this->config['leaderslinked.fullpath.company'] . DIRECTORY_SEPARATOR . $company->uuid;
|
| 877 |
$target_path = $this->config['leaderslinked.fullpath.company'] . DIRECTORY_SEPARATOR . $company->uuid;
|
870 |
|
| 878 |
|
871 |
$header = $company->header ? $target_path . DIRECTORY_SEPARATOR . $company->header : '';
|
| - |
|
872 |
if(empty($header) || !file_exists($header)) {
|
| - |
|
873 |
$header = $this->config['leaderslinked.images_default.company_pdf_header'];
|
| - |
|
874 |
}
|
| - |
|
875 |
|
| - |
|
876 |
$footer = $company->footer ? $target_path . DIRECTORY_SEPARATOR . $company->footer : '';
|
| - |
|
877 |
if(empty($footer) || !file_exists($footer)) {
|
| - |
|
878 |
$footer = $this->config['leaderslinked.images_default.company_pdf_footer'];
|
| - |
|
879 |
}
|
| - |
|
880 |
|
| Línea 879... |
Línea 881... |
| 879 |
$pdf->header = $company->header ? $target_path . DIRECTORY_SEPARATOR . $company->header : '';
|
881 |
$pdf->header = $header;
|
| Línea 880... |
Línea 882... |
| 880 |
$pdf->footer = $company->footer ? $target_path . DIRECTORY_SEPARATOR . $company->footer : '';
|
882 |
$pdf->footer = $footer;
|
| 881 |
}
|
883 |
|