PHP Classes

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 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 584 All time: 5,077 This week: 763Up
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.

Name: João Mário Nedeff <contact>
Classes: 5 packages by
Country: Brazil Brazil
Age: 36
All time rank: 131889 in Brazil Brazil
Week rank: 1153 Up93 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 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  
This week:0
All time:5,077
This week:763Up