FOSSology  4.4.0
Open Source License Compliance by Open Source Software
db Class Reference
Collaboration diagram for db:
Collaboration graph

Public Member Functions

 __construct ($options=NULL)
 
 get_pg_ERROR ()
 
 connect ($options=NULL)
 
 dbQuery ($Sql)
 

Public Attributes

 $Debug
 

Protected Attributes

 $pg_Error
 

Private Member Functions

 _docon ($options=NULL)
 

Private Attributes

 $_pg_conn
 
 $pg_rows
 
 $dbName
 
 $dbUser
 
 $dbPassword
 
 $dbHost
 

Detailed Description

Definition at line 28 of file db.php.

Member Function Documentation

◆ _docon()

db::_docon (   $options = NULL)
private

_docon

private function that creates a persistent connection to a data base. Uses class properties for the connect parameters or accepts them as a set of key value pairs terminated with a ;.

Sets _pg_conn and pg_Error

Definition at line 99 of file db.php.

◆ connect()

db::connect (   $options = NULL)

connect

public function to connect to the db, uses class properties or passed in options.

Parameters
string$optionse.g. "user=fonzy; password=thefonz;"
Returns
connection resource

Definition at line 79 of file db.php.

◆ dbQuery()

db::dbQuery (   $Sql)

dbQuery

perform a query, return results

Parameters
string$Sqlthe SQL Query to perform
Returns
array $rows can be empty array.

Definition at line 139 of file db.php.


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