Login   Register  
PHP Classes
elePHPant
Icontem

Model: Map objects to table records using Active Record

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 556 All time: 4,943 This week: 1,547Up
Version License PHP version Categories  
model 1.0GNU General Public Lice...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: 33
All time rank: 130087 in Brazil Brazil
Week rank: 1821 Down153 in Brazil Brazil Down

  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:556All time:4,943
 This week:0This week:1,547Up