[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/openid/Auth/OpenID/ -> DatabaseConnection.php (summary)

The Auth_OpenID_DatabaseConnection class, which is used to emulate a PEAR database connection.

Author: JanRain, Inc. <openid@janrain.com>
Copyright: 2005-2008 Janrain, Inc.
License: http://www.apache.org/licenses/LICENSE-2.0 Apache
File Size: 134 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Auth_OpenID_DatabaseConnection:: (8 methods):
  autoCommit()
  query()
  begin()
  commit()
  rollback()
  getOne()
  getRow()
  getAll()


Class: Auth_OpenID_DatabaseConnection  - X-Ref

An empty base class intended to emulate PEAR connection
functionality in applications that supply their own database
abstraction mechanisms.  See {@link Auth_OpenID_SQLStore} for more
information.  You should subclass this class if you need to create
an SQL store that needs to access its database using an
application's database abstraction layer instead of a PEAR database
connection.  Any subclass of Auth_OpenID_DatabaseConnection MUST
adhere to the interface specified here.

autoCommit($mode)   X-Ref
Sets auto-commit mode on this database connection.

param: bool $mode True if auto-commit is to be used; false if

query($sql, $params = array()   X-Ref
Run an SQL query with the specified parameters, if any.

param: string $sql An SQL string with placeholders.  The
param: array $params An array of parameters to insert into the
return: mixed $result The result of calling this connection's

begin()   X-Ref
Starts a transaction on this connection, if supported.


commit()   X-Ref
Commits a transaction on this connection, if supported.


rollback()   X-Ref
Performs a rollback on this connection, if supported.


getOne($sql, $params = array()   X-Ref
Run an SQL query and return the first column of the first row
of the result set, if any.

param: string $sql An SQL string with placeholders.  The
param: array $params An array of parameters to insert into the
return: mixed $result The value of the first column of the

getRow($sql, $params = array()   X-Ref
Run an SQL query and return the first row of the result set, if
any.

param: string $sql An SQL string with placeholders.  The
param: array $params An array of parameters to insert into the
return: array $result The first row of the result set, if any,

getAll($sql, $params = array()   X-Ref
Run an SQL query with the specified parameters, if any.

param: string $sql An SQL string with placeholders.  The
param: array $params An array of parameters to insert into the
return: array $result An array of arrays representing the



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1