src/Filter/ViewModelTemplateFilterAbstract.php
protected function setTemplateDefaultValues()
    {
        if (!isset($this->job)) {
            throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job');
        }
        $labelQualifications='';
        $labelBenefits='';
        $labelRequirements='';

        $organization = $this->job->getOrganization();
        if (isset($organization)) {
            $labelRequirements = $organization->getTemplate()->getLabelRequirements();
            $labelQualifications = $organization->getTemplate()->getLabelQualifications();
            $labelBenefits = $organization->getTemplate()->getLabelBenefits();
        }
        $this->container['labelRequirements'] = $labelRequirements;
        $this->container['labelQualifications'] = $labelQualifications;
        $this->container['labelBenefits'] = $labelBenefits;

        return $this;
    }
protected function setTemplateDefaultValues()
    {
        if (!isset($this->job)) {
            throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job');
        }
        $labelQualifications='';
        $labelBenefits='';
        $labelRequirements='';

        $organization = $this->job->getOrganization();
        if (isset($organization)) {
            $labelRequirements = $organization->getTemplate()->getLabelRequirements();
            $labelQualifications = $organization->getTemplate()->getLabelQualifications();
            $labelBenefits = $organization->getTemplate()->getLabelBenefits();
        }
        $this->container['labelRequirements'] = $labelRequirements;
        $this->container['labelQualifications'] = $labelQualifications;
        $this->container['labelBenefits'] = $labelBenefits;

        return $this;
    }
protected function setTemplateDefaultValues ( ) { if ( ! isset ( $ this -> job ) ) { throw new \ InvalidArgumentException ( 'cannot create a viewModel for Templates without a $job' ) ; } $ labelQualifications = '' ; $ labelBenefits = '' ; $ labelRequirements = '' ; $ organization = $ this -> job -> getOrganization ( ) ; if ( isset ( $ organization ) ) { $ labelRequirements = $ organization -> getTemplate ( ) -> getLabelRequirements ( ) ; $ labelQualifications = $ organization -> getTemplate ( ) -> getLabelQualifications ( ) ; $ labelBenefits = $ organization -> getTemplate ( ) -> getLabelBenefits ( ) ; } $ this -> container [ 'labelRequirements' ] = $ labelRequirements ; $ this -> container [ 'labelQualifications' ] = $ labelQualifications ; $ this -> container [ 'labelBenefits' ] = $ labelBenefits ; return $ this ; }
Sets the default values of an organizations job template

@return $this
@throws \InvalidArgumentException
Sets the default values of an organizations job template