kernel/classes/ezorder.php
function getNewID()
    {
        $db = eZDB::instance();
        if( $db->supportsDefaultValuesInsertion() )
        {
            $db->query( 'INSERT INTO ezorder_nr_incr DEFAULT VALUES' );
        }
        else
        {
            $db->query( 'INSERT INTO ezorder_nr_incr(id) VALUES(DEFAULT)' );
        }

        return $db->lastSerialID( 'ezorder_nr_incr', 'id' );
    }
function getNewID()
    {
        $db = eZDB::instance();
        if( $db->supportsDefaultValuesInsertion() )
        {
            $db->query( 'INSERT INTO ezorder_nr_incr DEFAULT VALUES' );
        }
        else
        {
            $db->query( 'INSERT INTO ezorder_nr_incr(id) VALUES(DEFAULT)' );
        }

        return $db->lastSerialID( 'ezorder_nr_incr', 'id' );
    }
function getNewID ( ) { $ db = eZDB :: instance ( ) ; if ( $ db -> supportsDefaultValuesInsertion ( ) ) { $ db -> query ( 'INSERT INTO ezorder_nr_incr DEFAULT VALUES' ) ; } else { $ db -> query ( 'INSERT INTO ezorder_nr_incr(id) VALUES(DEFAULT)' ) ; } return $ db -> lastSerialID ( 'ezorder_nr_incr' , 'id' ) ; }
Get a new auto_increment id from a separate table ezorder_nr_incr.

@return int the inserted id
Get a new auto_increment id from a separate table ezorder_nr_incr .