src/ShopRatingServiceBundle/objects/ShopauskunftXmlStreamer.class.php
private function checkIfRatingExists($ratingId)
    {
        $ratingId = MySqlLegacySupport::getInstance()->real_escape_string($ratingId);

        $sQuery = "SELECT COUNT(*) AS item_count FROM pkg_shop_rating_service_rating WHERE remote_key = '".$ratingId."' ";
        $result = MySqlLegacySupport::getInstance()->query($sQuery);
        if ($result) {
            $row = MySqlLegacySupport::getInstance()->fetch_object($result);
            if ($row->item_count < 1) {
                return false;
            }
        }

        return true;
    }
private function checkIfRatingExists($ratingId)
    {
        $ratingId = MySqlLegacySupport::getInstance()->real_escape_string($ratingId);

        $sQuery = "SELECT COUNT(*) AS item_count FROM pkg_shop_rating_service_rating WHERE remote_key = '".$ratingId."' ";
        $result = MySqlLegacySupport::getInstance()->query($sQuery);
        if ($result) {
            $row = MySqlLegacySupport::getInstance()->fetch_object($result);
            if ($row->item_count < 1) {
                return false;
            }
        }

        return true;
    }
private function checkIfRatingExists ( $ ratingId ) { $ ratingId = MySqlLegacySupport :: getInstance ( ) -> real_escape_string ( $ ratingId ) ; $ sQuery = "SELECT COUNT(*) AS item_count FROM pkg_shop_rating_service_rating WHERE remote_key = '" . $ ratingId . "' " ; $ result = MySqlLegacySupport :: getInstance ( ) -> query ( $ sQuery ) ; if ( $ result ) { $ row = MySqlLegacySupport :: getInstance ( ) -> fetch_object ( $ result ) ; if ( $ row -> item_count < 1 ) { return false ; } } return true ; }
checks if an rating exists.

@param $ratingId

@return bool
checks if an rating exists .