creole.drivers.odbc
[ class tree: creole.drivers.odbc ] [ index: creole.drivers.odbc ] [ all elements ]

Class: ODBCResultResource

Source Location: /creole/drivers/odbc/ODBCConnection.php

Class Overview


This is a simple wrapper class to manage the lifetime of an ODBC result resource


Variables

Methods



Class Details

[line 335]
This is a simple wrapper class to manage the lifetime of an ODBC result resource

(returned by odbc_exec(), odbc_execute(), etc.) We use a separate class because the resource can be shared by both ODBCConnection and an ODBCResultSet at the same time. ODBCConnection hangs on to the last result resource to be used in its getUpdateCount() method. It also passes this resource to new instances of ODBCResultSet. At some point the resource has to be cleaned up via odbc_free_result(). Using this class as a wrapper, we can pass around multiple references to the same resource. PHP's reference counting mechanism will clean up the resource when its no longer used via ODBCResultResource::__destruct().




[ Top ]


Class Variables

$handle =  null

[line 340]



Tags:

var:  ODBC result resource returned by http://www.php.net/odbc_exec/http://www.php.net/odbc_execute.
access:  protected

Type:   resource


[ Top ]



Class Methods


constructor __construct [line 342]

ODBCResultResource __construct( mixed $handle)



Tags:

access:  public


[ Top ]

destructor __destruct [line 348]

void __destruct( )



Tags:

access:  public


[ Top ]

method getHandle [line 354]

void getHandle( )



Tags:

access:  public


[ Top ]


Documentation generated on Mon, 23 Aug 2004 21:52:19 -0400 by phpDocumentor 1.3.0RC3