kernel/classes/ezproductcollectionitem.php
static function cleanupList( $productCollectionIDList )
    {
        $db = eZDB::instance();
        $db->begin();
        $inText = $db->generateSQLINStatement( $productCollectionIDList, 'productcollection_id', false, false, 'int' );
        $rows = $db->arrayQuery( "SELECT id FROM ezproductcollection_item WHERE $inText" );
        if ( count( $rows ) > 0 )
        {
            $itemIDList = array();
            foreach ( $rows as $row )
            {
                $itemIDList[] = $row['id'];
            }
            eZProductCollectionItemOption::cleanupList( $itemIDList );
        }
        $db->query( "DELETE FROM ezproductcollection_item WHERE $inText" );
        $db->commit();
    }
static function cleanupList( $productCollectionIDList )
    {
        $db = eZDB::instance();
        $db->begin();
        $inText = $db->generateSQLINStatement( $productCollectionIDList, 'productcollection_id', false, false, 'int' );
        $rows = $db->arrayQuery( "SELECT id FROM ezproductcollection_item WHERE $inText" );
        if ( count( $rows ) > 0 )
        {
            $itemIDList = array();
            foreach ( $rows as $row )
            {
                $itemIDList[] = $row['id'];
            }
            eZProductCollectionItemOption::cleanupList( $itemIDList );
        }
        $db->query( "DELETE FROM ezproductcollection_item WHERE $inText" );
        $db->commit();
    }
static function cleanupList ( $ productCollectionIDList ) { $ db = eZDB :: instance ( ) ; $ db -> begin ( ) ; $ inText = $ db -> generateSQLINStatement ( $ productCollectionIDList , 'productcollection_id' , false , false , 'int' ) ; $ rows = $ db -> arrayQuery ( "SELECT id FROM ezproductcollection_item WHERE $inText" ) ; if ( count ( $ rows ) > 0 ) { $ itemIDList = array ( ) ; foreach ( $ rows as $ row ) { $ itemIDList [ ] = $ row [ 'id' ] ; } eZProductCollectionItemOption :: cleanupList ( $ itemIDList ) ; } $ db -> query ( "DELETE FROM ezproductcollection_item WHERE $inText" ) ; $ db -> commit ( ) ; }
Removes all product collection items which related to the product
collections specified in the parameter array

@param array $productCollectionIDList array of eZProductCollection IDs

@return void
Removes all product collection items which related to the product collections specified in the parameter array