ILIAS  release_4-4 Revision
ilDBConnections Class Reference

Administrates DB connections in setup. More...

+ Collaboration diagram for ilDBConnections:

Public Member Functions

 ilDBConnections ()
 
 connectHost ($a_dsn_host)
 
 connectDB ($a_dsn_db)
 

Data Fields

 $db
 
 $log
 

Detailed Description

Administrates DB connections in setup.

Manage DB Connections

Definition at line 31 of file class.ilDBConnections.php.

Member Function Documentation

◆ connectDB()

ilDBConnections::connectDB (   $a_dsn_db)

Definition at line 48 of file class.ilDBConnections.php.

References MDB2\connect().

49  {
50 //echo "<br>connectingDB:".$a_dsn_db;
51  return MDB2::connect($a_dsn_db);
52  }
& connect($dsn, $options=false)
Create a new MDB2 connection object and connect to the specified database.
Definition: MDB2.php:431
+ Here is the call graph for this function:

◆ connectHost()

ilDBConnections::connectHost (   $a_dsn_host)

Definition at line 41 of file class.ilDBConnections.php.

References $db, and MDB2\connect().

42  {
43 //echo "<br>connectingHost:".$a_dsn_host;
44  $db = MDB2::connect($a_dsn_host);
45  return $db;
46  }
& connect($dsn, $options=false)
Create a new MDB2 connection object and connect to the specified database.
Definition: MDB2.php:431
+ Here is the call graph for this function:

◆ ilDBConnections()

ilDBConnections::ilDBConnections ( )

Definition at line 36 of file class.ilDBConnections.php.

37  {
38  $this->connections = array();
39  }

Field Documentation

◆ $db

ilDBConnections::$db

Definition at line 33 of file class.ilDBConnections.php.

Referenced by connectHost().

◆ $log

ilDBConnections::$log

Definition at line 34 of file class.ilDBConnections.php.


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