source/Application/Controller/Admin/ShopList.php
public function buildWhere()
    {
        // we override this to add our shop if we are not malladmin
        $this->_aWhere = parent::buildWhere();
        if (!\OxidEsales\Eshop\Core\Registry::getSession()->getVariable('malladmin')) {
            // we only allow to see our shop
            $this->_aWhere[getViewName("oxshops") . ".oxid"] = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable("actshop");
        }

        return $this->_aWhere;
    }
public function buildWhere()
    {
        // we override this to add our shop if we are not malladmin
        $this->_aWhere = parent::buildWhere();
        if (!\OxidEsales\Eshop\Core\Registry::getSession()->getVariable('malladmin')) {
            // we only allow to see our shop
            $this->_aWhere[getViewName("oxshops") . ".oxid"] = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable("actshop");
        }

        return $this->_aWhere;
    }
public function buildWhere ( ) { // we override this to add our shop if we are not malladmin $ this -> _aWhere = parent :: buildWhere ( ) ; if ( ! \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( 'malladmin' ) ) { // we only allow to see our shop $ this -> _aWhere [ getViewName ( "oxshops" ) . ".oxid" ] = \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( "actshop" ) ; } return $ this -> _aWhere ; }
Sets SQL WHERE condition. Returns array of conditions.

@return array
Sets SQL WHERE condition . Returns array of conditions .