source/Application/Model/Shop.php
protected function addViewLanguageQuery($queryStart, $table, $languageId, $languageAbbr)
    {
        $sLangAddition = $languageAbbr === null ? '' : "_{$languageAbbr}";

        $sViewTable = "oxv_{$table}{$sLangAddition}";

        if ($languageAbbr === null) {
            $sFields = $this->_getViewSelectMultilang($table);
            $sJoin = $this->_getViewJoinAll($table);
        } else {
            $sFields = $this->_getViewSelect($table, $languageId);
            $sJoin = $this->_getViewJoinLang($table, $languageId);
        }

        $sQuery = "{$queryStart} `{$sViewTable}` AS SELECT {$sFields} FROM {$table}{$sJoin}";
        $this->addQuery($sQuery);
    }
protected function addViewLanguageQuery($queryStart, $table, $languageId, $languageAbbr)
    {
        $sLangAddition = $languageAbbr === null ? '' : "_{$languageAbbr}";

        $sViewTable = "oxv_{$table}{$sLangAddition}";

        if ($languageAbbr === null) {
            $sFields = $this->_getViewSelectMultilang($table);
            $sJoin = $this->_getViewJoinAll($table);
        } else {
            $sFields = $this->_getViewSelect($table, $languageId);
            $sJoin = $this->_getViewJoinLang($table, $languageId);
        }

        $sQuery = "{$queryStart} `{$sViewTable}` AS SELECT {$sFields} FROM {$table}{$sJoin}";
        $this->addQuery($sQuery);
    }
protected function addViewLanguageQuery ( $ queryStart , $ table , $ languageId , $ languageAbbr ) { $ sLangAddition = $ languageAbbr === null ? '' : "_{$languageAbbr}" ; $ sViewTable = "oxv_{$table}{$sLangAddition}" ; if ( $ languageAbbr === null ) { $ sFields = $ this -> _getViewSelectMultilang ( $ table ) ; $ sJoin = $ this -> _getViewJoinAll ( $ table ) ; } else { $ sFields = $ this -> _getViewSelect ( $ table , $ languageId ) ; $ sJoin = $ this -> _getViewJoinLang ( $ table , $ languageId ) ; } $ sQuery = "{$queryStart} `{$sViewTable}` AS SELECT {$sFields} FROM {$table}{$sJoin}" ; $ this -> addQuery ( $ sQuery ) ; }
Adds view language query to query array.

@param string $queryStart
@param string $table
@param int    $languageId
@param string $languageAbbr
Adds view language query to query array .