source/Application/Model/Shop.php
public function createViewQuery($sTable, $aLanguages = null)
    {
        $sStart = 'CREATE OR REPLACE SQL SECURITY INVOKER VIEW';

        if (!is_array($aLanguages)) {
            $aLanguages = [null => null];
        }

        foreach ($aLanguages as $iLang => $sLang) {
            $this->addViewLanguageQuery($sStart, $sTable, $iLang, $sLang);
        }
    }
public function createViewQuery($sTable, $aLanguages = null)
    {
        $sStart = 'CREATE OR REPLACE SQL SECURITY INVOKER VIEW';

        if (!is_array($aLanguages)) {
            $aLanguages = [null => null];
        }

        foreach ($aLanguages as $iLang => $sLang) {
            $this->addViewLanguageQuery($sStart, $sTable, $iLang, $sLang);
        }
    }
public function createViewQuery ( $ sTable , $ aLanguages = null ) { $ sStart = 'CREATE OR REPLACE SQL SECURITY INVOKER VIEW' ; if ( ! is_array ( $ aLanguages ) ) { $ aLanguages = [ null => null ] ; } foreach ( $ aLanguages as $ iLang => $ sLang ) { $ this -> addViewLanguageQuery ( $ sStart , $ sTable , $ iLang , $ sLang ) ; } }
Creates view query and adds it to query array.

@param string $sTable     Table name
@param array  $aLanguages Language array( id => abbreviation )
Creates view query and adds it to query array .