PHP Classes

File: ConnectionManagerExample.php

Recommend this page to a friend!
  Classes of Sujay Bhowmick   Connection Manager   ConnectionManagerExample.php   Download  
File: ConnectionManagerExample.php
Role: Example script
Content type: text/plain
Description: Example for ConnectionManager
Class: Connection Manager
Database connection abstraction
Author: By
Last change: removed unecessary $resultpage variable
Date: 19 years ago
Size: 677 bytes


Class file image Download

  * Get the corresponding ConnectionManager object w.r.t to database specified in DB_TYPE constant(DBTypes.php).
  * Factory Method.
$objConnectionClass = ConnectionManagerFactory::getInstanceOf(DB_TYPE);

 * Invoke the doConnection object to make a connection to the specified database

 * Get the connectionHandle (Base Class Method).
$conn = $objConnectionClass->getConnectionHandle();

 * Select the database.