PHP Classes
elePHPant
Icontem

Object Generator: Generate DAO classes from database table structure

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2004-08-31 (12 years ago) RSS 2.0 feedStarStar 38%Total: 3,200 This week: 1All time: 1,069 This week: 1,047Up
Version License Categories
objectgenerator 1.0.0GNU General Publi...Databases, Code Generation
Description Author

This class generates the Data Access Object (DAO) classes by retrieving the structure of database tables.

The generated DAO classes have:

- Set and Get functions for each table field.
- A function which can retrieve the data from a table record just passing the its id primary key value.

The class comments are in Spanish.

Innovation Award
PHP Programming Innovation award nominee
July 2004
Number 7
Data Access Objects (DAO) is nowadays a common design pattern that many PHP developers have been using to wrap the manipulation of information stored in databases or other types of storage, around and object oriented API.

Since it follows a well known design pattern, there are already several tools capable of automatically generating the code of DAO classes from an high level definition of the data model.

This class offers a slightly different solution by generating DAO classes from the definition of the table structure of an existing database. This approach makes it easier for developers to migrate existing applications to start using the DAO design pattern.

Manuel Lemos
Picture of Andres Dario Gutierrez Poveda
Name: Andres Dario Gutierrez ... <contact>
Classes: 7 packages by
Country: Colombia Colombia
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file Example Example Example of usage
Plain text file generadorobjetos.class.php Class ObjectGenerator

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,200
This week:1
All time:1,069
This week:1,047Up
 User Ratings  
 
 All time
Utility:55%StarStarStar
Consistency:55%StarStarStar
Documentation:-
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:38%StarStar
Rank:2745