PHP Classes

Object Generator: Generate DAO classes from database table structure

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 37%Total: 3,219 All time: 1,096 This week: 488Up
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 (2)  
File Role Description
Accessible without login Plain text file Example Example Example of usage
Plain text file generadorobjetos.class.php Class ObjectGenerator

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,219
This week:0
All time:1,096
This week:488Up
 User Ratings  
 
 All time
Utility:54%StarStarStar
Consistency:54%StarStarStar
Documentation:-
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:37%StarStar
Rank:4053