protected function _isLanguage($sourceSurveyId, $language)
    {
        if ($language && strlen($language)) {
            // Check for availability of language
            $sql = 'SELECT surveyls_language FROM ' . $this->_getSurveyLanguagesTableName() . ' WHERE surveyls_survey_id = ? AND surveyls_language = ?';
            $lsDb = $this->getSourceDatabase();

            return $lsDb->fetchOne($sql, array($sourceSurveyId, $language));
        }

        return false;
    }
protected function _isLanguage($sourceSurveyId, $language)
    {
        if ($language && strlen($language)) {
            // Check for availability of language
            $sql = 'SELECT surveyls_language FROM ' . $this->_getSurveyLanguagesTableName() . ' WHERE surveyls_survey_id = ? AND surveyls_language = ?';
            $lsDb = $this->getSourceDatabase();

            return $lsDb->fetchOne($sql, array($sourceSurveyId, $language));
        }

        return false;
    }
protected function _isLanguage ( $ sourceSurveyId , $ language ) { if ( $ language && strlen ( $ language ) ) { // Check for availability of language $ sql = 'SELECT surveyls_language FROM ' . $ this -> _getSurveyLanguagesTableName ( ) . ' WHERE surveyls_survey_id = ? AND surveyls_language = ?' ; $ lsDb = $ this -> getSourceDatabase ( ) ; return $ lsDb -> fetchOne ( $ sql , array ( $ sourceSurveyId , $ language ) ) ; } return false ; }
Check if the specified language is available in Lime Survey

@param int $sourceSurveyId Survey ID
@param string $language       (ISO) Language
@return boolean True when the language is an existing language
Check if the specified language is available in Lime Survey