Login   Register  
PHP Classes
elePHPant
Icontem

Connection Manager: Database connection abstraction

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-12-29 (10 years ago) RSS 2.0 feedStarStarStar 58%Total: 1,990 All time: 1,840 This week: 1,516Up
Version License Categories  
connectionmanager 1.0.0GNU General Public Lice...Databases
Description Author  
The ConnectionManager class is an example of providing abstraction to database connectivity using the factory design pattern.

The factory method in the ConnectionManagerFactory class returns the correct ConnectionManager object according to the chosen database type, i.e MySQL or MSSQL.

To add support to other databases one can extend the ConnectionManager class.
Picture of Sujay Bhowmick
Name: Sujay Bhowmick <contact>
Classes: 5 packages by
Country: India India
Age: 35
All time rank: 564 in India India
Week rank: 233 Down23 in India India Down

  Files folder image Files  
File Role Description
Plain text file ConnectionManager.php Class Base Class and SubClasses for the ConnectionManager
Accessible without login Plain text file ConnectionManagerExample.php Example Example for ConnectionManager
Plain text file ConnectionManagerFactory.php Class Factory Method Class
Accessible without login Plain text file constants.php Conf. Supporting include file
Accessible without login Plain text file DBTypes.php Conf. Supporting include file

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,990All time:1,840
 This week:0This week:1,516Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1009