src/DbSql/TaoRdf/QuerySerialyser.php
public function setLanguageCondition($language , $emptyAvailable = false) {
        $languageField = $this->getDriverEscaper()->reserved('l_language');
        $languageValue      = $this->getDriverEscaper()->escape($language);
        $sql = '('; 
        $sql .= $languageField .' = ' . $this->getDriverEscaper()->quote($languageValue) . ''; 
        if($emptyAvailable) {
            $sql .= ' ' . $this->getDriverEscaper()->dbCommand('OR') . ' ' . $languageField . ' = ' . $this->getDriverEscaper()->getEmpty();
        }
        $sql .= ') ' . $this->getDriverEscaper()->dbCommand('AND') . $this->operationSeparator;
        return $sql;
    }
public function setLanguageCondition($language , $emptyAvailable = false) {
        $languageField = $this->getDriverEscaper()->reserved('l_language');
        $languageValue      = $this->getDriverEscaper()->escape($language);
        $sql = '('; 
        $sql .= $languageField .' = ' . $this->getDriverEscaper()->quote($languageValue) . ''; 
        if($emptyAvailable) {
            $sql .= ' ' . $this->getDriverEscaper()->dbCommand('OR') . ' ' . $languageField . ' = ' . $this->getDriverEscaper()->getEmpty();
        }
        $sql .= ') ' . $this->getDriverEscaper()->dbCommand('AND') . $this->operationSeparator;
        return $sql;
    }
public function setLanguageCondition ( $ language , $ emptyAvailable = false ) { $ languageField = $ this -> getDriverEscaper ( ) -> reserved ( 'l_language' ) ; $ languageValue = $ this -> getDriverEscaper ( ) -> escape ( $ language ) ; $ sql = '(' ; $ sql .= $ languageField . ' = ' . $ this -> getDriverEscaper ( ) -> quote ( $ languageValue ) . '' ; if ( $ emptyAvailable ) { $ sql .= ' ' . $ this -> getDriverEscaper ( ) -> dbCommand ( 'OR' ) . ' ' . $ languageField . ' = ' . $ this -> getDriverEscaper ( ) -> getEmpty ( ) ; } $ sql .= ') ' . $ this -> getDriverEscaper ( ) -> dbCommand ( 'AND' ) . $ this -> operationSeparator ; return $ sql ; }
return an SQL string with language filter condition

@param string $language
@param boolean $emptyAvailable
@return string
return an SQL string with language filter condition