Login   Register  
PHP Classes
elePHPant
Icontem

PDO Singleton: Database access singleton using the PDO extension

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 (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-08-22 (5 years ago) RSS 2.0 feedStarStarStar 44%Total: 1,645 This week: 3All time: 2,208 This week: 572Up
Version License PHP version Categories  
dbconnectpdo 1.0GNU General Public Lice...5.2PHP 5, Databases, Design Patterns
Description Author  

This class implements database access singleton using the PDO extension.

It creates a instance of the PDO object that acts as a singleton.

The class provides functions to access a database using the PDO object for executing queries, retrieving the results and managing transactions.

Picture of Wilson Gomes
Name: Wilson Gomes <contact>
Classes: 3 packages by
Country: Canada Canada
Age: ???
All time rank: 31114 in Canada Canada
Week rank: 461 Down14 in Canada Canada Equal

  Files folder image Files  
File Role Description
Accessible without login Plain text file DBConnect Class DBConnect: uses the Singleton patter to connect to mysql and perform queries
Plain text file Quiz.php Example this Quiz Object uses the PDO Singleton, it's an use example.

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,645All time:2,208
 This week:3This week:572Up
User Ratings User Comments (1)  
 All time
Utility:68%StarStarStarStar
Consistency:43%StarStarStar
Documentation:-
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:1981
 
__constructor() cannot return values
3 years ago (Marko)
30%StarStar