Login   Register  
PHP Classes
elePHPant
Icontem

My Active Record: Map objects to MySQL database table rows

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 (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-11-18 (8 years ago) RSS 2.0 feedStarStarStarStar 73%Total: 6,539 This week: 4All time: 293 This week: 468Down
Version License Categories  
myactiverecord 1.0.0BSD LicenseDatabases, Design Patterns
Description Author  

This class can be used to map objects to MySQL database rows using Martin Fowler's Active Record design pattern as popularised by Ruby on Rails.

It can store and retrieve objects in MySQL tables with minimal configuration.

Applications can use sub-classes of this base class to create application domain objects that support relationships, data validation, compound properties, clean ups and transactions.

This base class looks up the columns in a MySQL database tables automatically, and translates these to object properties.

Picture of Jake Grimley
Name: Jake Grimley <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: 39
All time rank: 38817 in United Kingdom United Kingdom
Week rank: 517 Down22 in United Kingdom United Kingdom Down

  Files folder image Files  
File Role Description
Files folder imagedoc (3 files)
Accessible without login Plain text file example.php Example example script featuring various methods
Plain text file MyActiveRecord.0.4.php Class Source Code

  Files folder image Files  /  doc  
File Role Description
  Accessible without login HTML file api.html Doc. API documentation
  Accessible without login HTML file background.html Doc. Discussion of where MyActiveRecord comes from, and how it differs from other ActiveRecord interpretations in PHP and Ruby on Rails
  Accessible without login HTML file howto.html Doc. Detailed exploration of class features and functionality

 Version Control Unique User Downloads Download Rankings  
 0%Total:6,539All time:293
 This week:4This week:468Down
User Ratings User Comments (1)  
 All time
Utility:92%StarStarStarStarStar
Consistency:88%StarStarStarStarStar
Documentation:94%StarStarStarStarStar
Examples:86%StarStarStarStarStar
Tests:-
Videos:-
Overall:73%StarStarStarStar
Rank:108
 
I have not used this class yet, in anger so to speak.
6 years ago (Chris Rigg-Milner)
77%StarStarStarStar