MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

Class: MDB2_Result_sqlsrv

Source Location: /MDB2_Driver_sqlsrv-1.5.0b5/MDB2/Driver/sqlsrv.php

Class Overview

MDB2_Result_Common
   |
   --MDB2_Result_sqlsrv

MDB2 MSSQL Server result driver


Author(s):

Methods


Child classes:

MDB2_BufferedResult_sqlsrv
MDB2 MSSQL Server buffered result driver

Inherited Variables

Inherited Methods


Class Details

[line 763]
MDB2 MSSQL Server result driver


[ Top ]


Method Detail

__construct (Constructor)   [line 770]

MDB2_Result_sqlsrv __construct( $db, $result, [ $limit = 0], [ $offset = 0])

Constructor

Parameters:

   $db     
   $result     
   $limit     
   $offset     

[ Top ]

array_to_obj   [line 829]

mixed array_to_obj( $array, &$obj, resource $result)

Skip the first row of a result set.
  • Return: a result handle or MDB2_OK on success, a MDB2 error on failure
  • Access: protected

Parameters:

resource   $result     
   $array     
   &$obj     

[ Top ]

fetchRow   [line 850]

int fetchRow( [int $fetchmode = MDB2_FETCHMODE_DEFAULT], [int $rownum = null])

Fetch a row and insert the data into an existing array.
  • Return: data array on success, a MDB2 error on failure
  • Access: public

Parameters:

int   $fetchmode     how the array data should be indexed
int   $rownum     number of the row where the data can be found

[ Top ]

free   [line 1063]

boolean free( )

Free the internal resources associated with $result.
  • Return: true on success, false if $result is invalid
  • Access: public

[ Top ]

nextResult   [line 1018]

true nextResult( )

Move the internal result pointer to the next available result
  • Return: on success, false if there is no more result set or an error object on failure
  • Access: public

[ Top ]

numCols   [line 989]

mixed numCols( )

Count the number of columns returned by the DBMS in a query result.
  • Return: integer value with the number of columns, a MDB2 error on failure
  • Access: public

[ Top ]

numRows   [line 1098]

mixed numRows( )

Returns the number of rows in a result object
  • Return: MDB2 Error Object or the number of rows
  • Access: public

[ Top ]

rowCount   [line 1083]

int rowCount( )

Returns the actual row number that was last fetched (count from 0)
  • Access: public

[ Top ]

seek   [line 1115]

mixed seek( [int $rownum = 0])

Seek to a specific row in a result set
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

Parameters:

int   $rownum     number of the row where the data can be found

[ Top ]


Documentation generated on Tue, 23 Oct 2012 18:31:19 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.