src/ShopBundle/objects/db/TShopOrderItem.class.php
public function isDownload()
    {
        $db = \ChameleonSystem\CoreBundle\ServiceLocator::get('database_connection');
        $query = 'select COUNT(*) AS matches FROM `shop_order_item_download_cms_document_mlt`
                   WHERE `source_id` = :shopOrderItemId';
        $result = $db->fetchAssoc($query, array('shopOrderItemId' => $this->id));

        return intval($result['matches']) > 0;
    }
public function isDownload()
    {
        $db = \ChameleonSystem\CoreBundle\ServiceLocator::get('database_connection');
        $query = 'select COUNT(*) AS matches FROM `shop_order_item_download_cms_document_mlt`
                   WHERE `source_id` = :shopOrderItemId';
        $result = $db->fetchAssoc($query, array('shopOrderItemId' => $this->id));

        return intval($result['matches']) > 0;
    }
public function isDownload ( ) { $ db = \ ChameleonSystem \ CoreBundle \ ServiceLocator :: get ( 'database_connection' ) ; $ query = 'select COUNT(*) AS matches FROM `shop_order_item_download_cms_document_mlt`
                   WHERE `source_id` = :shopOrderItemId' ; $ result = $ db -> fetchAssoc ( $ query , array ( 'shopOrderItemId' => $ this -> id ) ) ; return intval ( $ result [ 'matches' ] ) > 0 ; }
return true if this is a download product.

@return bool
return true if this is a download product .