PHP Classes

Object Generator: Generate DAO classes from database table structure

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (10 years ago) RSS 2.0 feedStarStarStar 43%Total: 3,176 This week: 1All time: 1,056 This week: 1,076Down
Version License Categories  
objectgenerator 1.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
Age: 37
All time rank: 942 in Colombia Colombia
Week rank: 878 Down6 in Colombia Colombia Down
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,176All time:1,056
 This week:1This week:1,076Down
 User Ratings  
 All time