ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
Auth_OpenID_DatabaseConnection Class Reference
+ Collaboration diagram for Auth_OpenID_DatabaseConnection:

Public Member Functions

 autoCommit ($mode)
 Sets auto-commit mode on this database connection. More...
 
 query ($sql, $params=array())
 Run an SQL query with the specified parameters, if any. More...
 
 begin ()
 Starts a transaction on this connection, if supported. More...
 
 commit ()
 Commits a transaction on this connection, if supported. More...
 
 rollback ()
 Performs a rollback on this connection, if supported. More...
 
 getOne ($sql, $params=array())
 Run an SQL query and return the first column of the first row of the result set, if any. More...
 
 getRow ($sql, $params=array())
 Run an SQL query and return the first row of the result set, if any. More...
 
 getAll ($sql, $params=array())
 Run an SQL query with the specified parameters, if any. More...
 

Detailed Description

Definition at line 25 of file DatabaseConnection.php.

Member Function Documentation

◆ autoCommit()

Auth_OpenID_DatabaseConnection::autoCommit (   $mode)

Sets auto-commit mode on this database connection.

Parameters
bool$modeTrue if auto-commit is to be used; false if not.

Definition at line 32 of file DatabaseConnection.php.

33  {
34  }

◆ begin()

Auth_OpenID_DatabaseConnection::begin ( )

Starts a transaction on this connection, if supported.

Definition at line 58 of file DatabaseConnection.php.

59  {
60  }

◆ commit()

Auth_OpenID_DatabaseConnection::commit ( )

Commits a transaction on this connection, if supported.

Definition at line 65 of file DatabaseConnection.php.

66  {
67  }

◆ getAll()

Auth_OpenID_DatabaseConnection::getAll (   $sql,
  $params = array() 
)

Run an SQL query with the specified parameters, if any.

Parameters
string$sqlAn SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection.
array$paramsAn array of parameters to insert into the SQL string using this connection's escaping mechanism.
Returns
array $result An array of arrays representing the result of the query; each array is keyed on column name.

Definition at line 126 of file DatabaseConnection.php.

127  {
128  }

◆ getOne()

Auth_OpenID_DatabaseConnection::getOne (   $sql,
  $params = array() 
)

Run an SQL query and return the first column of the first row of the result set, if any.

Parameters
string$sqlAn SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection.
array$paramsAn array of parameters to insert into the SQL string using this connection's escaping mechanism.
Returns
mixed $result The value of the first column of the first row of the result set. False if no such result was found.

Definition at line 91 of file DatabaseConnection.php.

92  {
93  }

◆ getRow()

Auth_OpenID_DatabaseConnection::getRow (   $sql,
  $params = array() 
)

Run an SQL query and return the first row of the result set, if any.

Parameters
string$sqlAn SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection.
array$paramsAn array of parameters to insert into the SQL string using this connection's escaping mechanism.
Returns
array $result The first row of the result set, if any, keyed on column name. False if no such result was found.

Definition at line 109 of file DatabaseConnection.php.

110  {
111  }

◆ query()

Auth_OpenID_DatabaseConnection::query (   $sql,
  $params = array() 
)

Run an SQL query with the specified parameters, if any.

Parameters
string$sqlAn SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection.
array$paramsAn array of parameters to insert into the SQL string using this connection's escaping mechanism.
Returns
mixed $result The result of calling this connection's internal query function. The type of result depends on the underlying database engine. This method is usually used when the result of a query is not important, like a DDL query.

Definition at line 51 of file DatabaseConnection.php.

52  {
53  }

◆ rollback()

Auth_OpenID_DatabaseConnection::rollback ( )

Performs a rollback on this connection, if supported.

Definition at line 72 of file DatabaseConnection.php.

73  {
74  }

The documentation for this class was generated from the following file: