PHP Classes
elePHPant
Icontem

Model: Map objects to table records using Active Record

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2012-11-19 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 581 This week: 1All time: 5,035 This week: 931Up
Version License PHP version Categories
model 1.0GNU General Publi...5.0PHP 5, Databases, Design Patterns
Description Author

This class can map objects to database table records using Active Record design pattern.

It provides a base class that should be extended by implementation classes to store and retrieve objects in database table records.

The base class can execute insert queries into a table with the same name of the implementation class to insert records with values of the variables of the object set by the application.

It can also execute select queries retrieve a given database table records, storing the record values in class variables.

The variables of a retrieved object and can be changed and the class can update the respective table record when the object is saved.

Picture of João Mário Nedeff
Name: João Mário Nedeff <contact>
Classes: 5 packages by
Country: Brazil Brazil
Age: 35
All time rank: 131489 in Brazil Brazil
Week rank: 351 Up27 in Brazil Brazil Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file insert.php Example Example of an INSERT operation
Plain text file Model.php Class Model class file
Accessible without login Plain text file update.php Example Example of an UPDATE operation

Downloadmodel-2012-11-19.zip 4KB
Downloadmodel-2012-11-19.tar.gz 2KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Configs Download .zip .tar.gz To deliver the connection data. Required
DConnect Download .zip .tar.gz To get the PDO object. Required
 Version Control Unique User Downloads Download Rankings  
 0%
Total:581
This week:1
All time:5,035
This week:931Up