for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @filesource
* @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
* @license MIT
* @author [email protected]
*/
namespace Jobs\Filter;
* template ViewModel html
* Class ViewModelTemplateFilterJob
* @package Jobs\Filter
* @method fromRoute
class ViewModelTemplateFilterJob extends ViewModelTemplateFilterAbstract
{
* assign the form-elements to the template
* @param \Jobs\Entity\Job $job
* @return $this
protected function extract($job)
$this->job = $job;
$this->getJsonLdHelper()->setJob($job);
$this->setApplyData();
$this->setOrganizationInfo();
$this->setLocation();
$this->setDescription();
$this->setTemplate();
$this->setTemplateDefaultValues();
$this->container['descriptionEditable'] = $job->getTemplateValues()->getDescription();
$this->container['benefits'] = $job->getTemplateValues()->getBenefits();
$this->container['requirements'] = $job->getTemplateValues()->getRequirements();
$this->container['qualifications'] = $job->getTemplateValues()->getQualifications();
$this->container['title'] = $job->getTemplateValues()->getTitle();
$this->container['headTitle'] = strip_tags($job->getTemplateValues()->getTitle());
$this->container['uriApply'] = $this->container['applyData']['uri'];
$this->container['contactEmail'] = strip_tags($job->getContactEmail());
$this->container['html'] = $job->getTemplateValues()->getHtml();
$this->container['jobId'] = $job->getId();
$this->container['uriJob'] = $this->urlPlugin->fromRoute(
'lang/jobs/view',
[],
[
'query' => [ 'id' => $job->getId() ],
'force_canonical' => true
]
);
return $this;
}