src/Filter/ViewModelTemplateFilterJob.php
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;
    }
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;
    }
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 ; }
assign the form-elements to the template
@param \Jobs\Entity\Job $job
@return $this
assign the form - elements to the template