kernel/classes/ezproductcollection.php
static function cleanupList( $productCollectionIDList )
    {
        $db = eZDB::instance();
        $db->begin();

        // Purge shipping information associated with product collections being removed.
        foreach ( $productCollectionIDList as $productCollectionID )
            eZShippingManager::purgeShippingInfo( $productCollectionID );

        eZProductCollectionItem::cleanupList( $productCollectionIDList );
        $where = $db->generateSQLINStatement( $productCollectionIDList, 'id', false, false, 'int' );
        $db->query( "DELETE FROM ezproductcollection WHERE {$where}" );
        $db->commit();
    }
static function cleanupList( $productCollectionIDList )
    {
        $db = eZDB::instance();
        $db->begin();

        // Purge shipping information associated with product collections being removed.
        foreach ( $productCollectionIDList as $productCollectionID )
            eZShippingManager::purgeShippingInfo( $productCollectionID );

        eZProductCollectionItem::cleanupList( $productCollectionIDList );
        $where = $db->generateSQLINStatement( $productCollectionIDList, 'id', false, false, 'int' );
        $db->query( "DELETE FROM ezproductcollection WHERE {$where}" );
        $db->commit();
    }
static function cleanupList ( $ productCollectionIDList ) { $ db = eZDB :: instance ( ) ; $ db -> begin ( ) ; // Purge shipping information associated with product collections being removed. foreach ( $ productCollectionIDList as $ productCollectionID ) eZShippingManager :: purgeShippingInfo ( $ productCollectionID ) ; eZProductCollectionItem :: cleanupList ( $ productCollectionIDList ) ; $ where = $ db -> generateSQLINStatement ( $ productCollectionIDList , 'id' , false , false , 'int' ) ; $ db -> query ( "DELETE FROM ezproductcollection WHERE {$where}" ) ; $ db -> commit ( ) ; }
Removes all product collections based on a product collection ID list
Will also remove the product collection items.

@param array $productCollectionIDList array of eZProductCollection IDs

@return void
Removes all product collections based on a product collection ID list Will also remove the product collection items .