| Conditions | 1 |
| Paths | 1 |
| Total Lines | 33 |
| Code Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | protected function extract($job) |
||
| 29 | { |
||
| 30 | $this->job = $job; |
||
| 31 | $this->getJsonLdHelper()->setJob($job); |
||
| 32 | $this->setApplyData(); |
||
| 33 | $this->setOrganizationInfo(); |
||
| 34 | $this->setLocation(); |
||
| 35 | $this->setDescription(); |
||
| 36 | $this->setTemplate(); |
||
| 37 | $this->setTemplateDefaultValues(); |
||
| 38 | |||
| 39 | $this->container['descriptionEditable'] = $job->getTemplateValues()->getDescription(); |
||
| 40 | $this->container['benefits'] = $job->getTemplateValues()->getBenefits(); |
||
| 41 | $this->container['requirements'] = $job->getTemplateValues()->getRequirements(); |
||
| 42 | $this->container['qualifications'] = $job->getTemplateValues()->getQualifications(); |
||
| 43 | $this->container['title'] = $job->getTemplateValues()->getTitle(); |
||
| 44 | $this->container['headTitle'] = strip_tags($job->getTemplateValues()->getTitle()); |
||
| 45 | $this->container['uriApply'] = $this->container['applyData']['uri']; |
||
| 46 | $this->container['contactEmail'] = strip_tags($job->getContactEmail()); |
||
| 47 | $this->container['html'] = $job->getTemplateValues()->getHtml(); |
||
| 48 | |||
| 49 | $this->container['jobId'] = $job->getId(); |
||
| 50 | $this->container['uriJob'] = $this->urlPlugin->fromRoute( |
||
| 51 | 'lang/jobs/view', |
||
| 52 | [], |
||
| 53 | [ |
||
| 54 | 'query' => [ 'id' => $job->getId() ], |
||
| 55 | 'force_canonical' => true |
||
| 56 | ] |
||
| 57 | ); |
||
| 58 | |||
| 59 | return $this; |
||
| 60 | } |
||
| 61 | } |
||
| 62 |