Login   Register  
PHP Classes
elePHPant
Icontem

ORM mapping class(like Hibernate), maps database table rows to objects: Store and retrieve objects in MySQL table records

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 (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-03-03 (2 years ago) RSS 2.0 feedStarStarStar 42%Total: 1,288 All time: 2,778 This week: 1,379Up
Version License PHP version Categories  
ormbaseobject 1.2GNU Lesser General Publ...5.0PHP 5, Databases
Description Author  

This class provides something similar of Hibernate in java world by letting you map table rows into entity objects and making all the fields escaping work for you automatically when saving object to mysql.

This class can be used as a base class to store and retrieve objects in MySQL databases.

It is a base class that should be extended by other classes that define the MySQL database table and the fields to store and retrieve the object variables.

It can execute SQL queries to retrieve objects and save them back to the database if any variable was changed.

The class provides getter and setter functions to retrieve or change the object variable values.

Objects remain cached in memory to avoid fetching the same objects from the database again.

It also provides an iterator class (BaseObjectIterator) to iterate over large result sets without hogging up the memory.

Picture of Indrek Altpere
Name: Indrek Altpere <contact>
Classes: 3 packages by
Country: Estonia Estonia
Age: 28
All time rank: 8012 in Estonia Estonia
Week rank: 1605 Down5 in Estonia Estonia Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file BaseObject.php Class the magical class that makes so many things possible
Accessible without login Plain text file example.php Example example file
Accessible without login Plain text file example2.php Example usage of advanced query builder
Accessible without login Plain text file example3.php Example iterator example
Accessible without login Plain text file ExampleObject.php Class example extending object
Accessible without login Plain text file ExampleObject2.php Class Another example object

Downloadormbaseobject-2012-03-03.zip 12KB
Downloadormbaseobject-2012-03-03.tar.gz 10KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Simple error handling class Download .zip .tar.gz To be able to log any mysql errors and erros that have occured in BaseObject class itself Recommended
Ultimate MySQL wrapper Download .zip .tar.gz Is used to perform queries that keep objects and database synchronized, also for charater escaping Required
 Version Control Unique User Downloads Download Rankings  
 0%Total:1,288All time:2,778
 This week:0This week:1,379Up
User Ratings User Comments (1)  
 All time
Utility:58%StarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:42%StarStarStar
Rank:2078
 
I've got some errors, e.
2 years ago (Marian)
10%Star