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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 590 All time: 5,258 This week: 206Up
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: 43
All time rank: 135787 in Brazil Brazil
Week rank: 321 Up24 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
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:590
This week:0
All time:5,258
This week:206Up