protected function getImportTranslator()
    {
        $translator = parent::getImportTranslator();

        if ($translator instanceof \Gems_Model_Translator_AnswerTranslatorAbstract) {
            // Set answer specific options
            $surveyId = isset($this->formData['survey']) ? $this->formData['survey'] : null;
            $tokenCompleted = isset($this->formData['tokenCompleted']) ?
                    $this->formData['tokenCompleted'] :
                    \Gems_Model_Translator_AnswerTranslatorAbstract::TOKEN_ERROR;
            $skipUnknownPatients = isset($this->formData['skipUnknownPatients']) &&
                    $this->formData['skipUnknownPatients'];
            $noToken = isset($this->formData['noToken']) ?
                    $this->formData['noToken'] :
                    \Gems_Model_Translator_AnswerTranslatorAbstract::TOKEN_ERROR;

            $trackId = isset($this->formData['track']) ? $this->formData['track'] : null;

            $translator->setSurveyId($surveyId);
            $translator->setSkipUnknownPatients($skipUnknownPatients);
            $translator->setTokenCompleted($tokenCompleted);
            $translator->setNoToken($noToken);
            $translator->setTrackId($trackId);
        }

        return $translator;
    }
protected function getImportTranslator()
    {
        $translator = parent::getImportTranslator();

        if ($translator instanceof \Gems_Model_Translator_AnswerTranslatorAbstract) {
            // Set answer specific options
            $surveyId = isset($this->formData['survey']) ? $this->formData['survey'] : null;
            $tokenCompleted = isset($this->formData['tokenCompleted']) ?
                    $this->formData['tokenCompleted'] :
                    \Gems_Model_Translator_AnswerTranslatorAbstract::TOKEN_ERROR;
            $skipUnknownPatients = isset($this->formData['skipUnknownPatients']) &&
                    $this->formData['skipUnknownPatients'];
            $noToken = isset($this->formData['noToken']) ?
                    $this->formData['noToken'] :
                    \Gems_Model_Translator_AnswerTranslatorAbstract::TOKEN_ERROR;

            $trackId = isset($this->formData['track']) ? $this->formData['track'] : null;

            $translator->setSurveyId($surveyId);
            $translator->setSkipUnknownPatients($skipUnknownPatients);
            $translator->setTokenCompleted($tokenCompleted);
            $translator->setNoToken($noToken);
            $translator->setTrackId($trackId);
        }

        return $translator;
    }
protected function getImportTranslator ( ) { $ translator = parent :: getImportTranslator ( ) ; if ( $ translator instanceof \ Gems_Model_Translator_AnswerTranslatorAbstract ) { // Set answer specific options $ surveyId = isset ( $ this -> formData [ 'survey' ] ) ? $ this -> formData [ 'survey' ] : null ; $ tokenCompleted = isset ( $ this -> formData [ 'tokenCompleted' ] ) ? $ this -> formData [ 'tokenCompleted' ] : \ Gems_Model_Translator_AnswerTranslatorAbstract :: TOKEN_ERROR ; $ skipUnknownPatients = isset ( $ this -> formData [ 'skipUnknownPatients' ] ) && $ this -> formData [ 'skipUnknownPatients' ] ; $ noToken = isset ( $ this -> formData [ 'noToken' ] ) ? $ this -> formData [ 'noToken' ] : \ Gems_Model_Translator_AnswerTranslatorAbstract :: TOKEN_ERROR ; $ trackId = isset ( $ this -> formData [ 'track' ] ) ? $ this -> formData [ 'track' ] : null ; $ translator -> setSurveyId ( $ surveyId ) ; $ translator -> setSkipUnknownPatients ( $ skipUnknownPatients ) ; $ translator -> setTokenCompleted ( $ tokenCompleted ) ; $ translator -> setNoToken ( $ noToken ) ; $ translator -> setTrackId ( $ trackId ) ; } return $ translator ; }
Try to get the current translator

@return \MUtil_Model_ModelTranslatorInterface or false if none is current
Try to get the current translator