PHP Classes

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    
Ratings Unique User Downloads Download Rankings
StarStar 37%Total: 3,218 All time: 1,095 This week: 162Up
Version License Categories
objectgenerator 1.0.0GNU General Publi...Databases, Code Generation


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: 45
All time rank: 972 in Colombia Colombia
Week rank: 346 Down2 in Colombia Colombia Equal
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  
This week:0
All time:1,095
This week:162Up
 User Ratings  
 All time