public function lastInsertId($table = null, $column = null)
    {
        $this->connect();

        return $this->_connection->lastInsertId($table);
    }
public function lastInsertId($table = null, $column = null)
    {
        $this->connect();

        return $this->_connection->lastInsertId($table);
    }
public function lastInsertId ( $ table = null , $ column = null ) { $ this -> connect ( ) ; return $ this -> _connection -> lastInsertId ( $ table ) ; }
Returns last id generated for a table or sequence in database

@param string|null $table table name or sequence to get last insert value from
@param string|null $column the name of the column representing the primary key
@return string|int
Returns last id generated for a table or sequence in database