PHP Classes
elePHPant
Icontem

ZF DB Table Class Generator: Create Zend DB Table classes dynamically

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-08-19 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 195 All time: 8,321 This week: 363Up
Version License PHP version Categories
app_model_database 1.0.0GNU General Publi...5.3PHP 5, Databases, Libraries
Description Author

This class can create Zend Framework DB Table classes dynamically.

It dynamically generate code for a concrete class that extends the Zend_Db_Table_Abstract just from a few parameters that defined the table name, the name of the class to be generated and its namespace.

The class returns an object of the just created class.

Innovation Award
PHP Programming Innovation award nominee
August 2015
Number 9


Prize: One subscription to the PDF edition of the PHP Architect magazine
Zend Framework provides a database access table class that applications can use to query application database tables.

This database table class is abstract. Therefore applications need to create individual extension classes for each table they need to access.

This class provides a simpler solution by dynamically creating database table classes for the tables you need to access. This way you avoid having to create separate class files for all the tables you use in your application.

Manuel Lemos
  Performance   Level  
Name: martin barker <contact>
Classes: 14 packages by
Country: United Kingdom United Kingdom
Age: 30
All time rank: 29714 in United Kingdom United Kingdom
Week rank: 161 Up6 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 2x

 

  Files folder image Files  
File Role Description
Files folder imagecontrollers (1 file)
Files folder imagemodels (2 files)

  Files folder image Files  /  controllers  
File Role Description
  Plain text file IndexController.php Example Example of how to use Database table loader class

  Files folder image Files  /  models  
File Role Description
  Plain text file Database.php Class Main Class ZendFramework 1 Model
  Plain text file Singleton.php Class Singleton Base Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:195
This week:0
All time:8,321
This week:363Up