source/Application/Model/ShopViewValidator.php
protected function _isCurrentShopView($sViewName)
    {
        $blResult = false;

        $blEndsWithShopId = preg_match("/[_]([0-9]+)$/", $sViewName, $aMatchEndsWithShopId);
        $blContainsShopId = preg_match("/[_]([0-9]+)[_]/", $sViewName, $aMatchContainsShopId);

        if ((!$blEndsWithShopId && !$blContainsShopId) ||
            ($blEndsWithShopId && $aMatchEndsWithShopId[1] == $this->getShopId()) ||
            ($blContainsShopId && $aMatchContainsShopId[1] == $this->getShopId())
        ) {
            $blResult = true;
        }

        return $blResult;
    }
protected function _isCurrentShopView($sViewName)
    {
        $blResult = false;

        $blEndsWithShopId = preg_match("/[_]([0-9]+)$/", $sViewName, $aMatchEndsWithShopId);
        $blContainsShopId = preg_match("/[_]([0-9]+)[_]/", $sViewName, $aMatchContainsShopId);

        if ((!$blEndsWithShopId && !$blContainsShopId) ||
            ($blEndsWithShopId && $aMatchEndsWithShopId[1] == $this->getShopId()) ||
            ($blContainsShopId && $aMatchContainsShopId[1] == $this->getShopId())
        ) {
            $blResult = true;
        }

        return $blResult;
    }
protected function _isCurrentShopView ( $ sViewName ) { $ blResult = false ; $ blEndsWithShopId = preg_match ( "/[_]([0-9]+)$/" , $ sViewName , $ aMatchEndsWithShopId ) ; $ blContainsShopId = preg_match ( "/[_]([0-9]+)[_]/" , $ sViewName , $ aMatchContainsShopId ) ; if ( ( ! $ blEndsWithShopId && ! $ blContainsShopId ) || ( $ blEndsWithShopId && $ aMatchEndsWithShopId [ 1 ] == $ this -> getShopId ( ) ) || ( $ blContainsShopId && $ aMatchContainsShopId [ 1 ] == $ this -> getShopId ( ) ) ) { $ blResult = true ; } return $ blResult ; }
Checks if given view name belongs to current subshop or is general view

@param string $sViewName View name

@return bool
Checks if given view name belongs to current subshop or is general view