Login   Register  
PHP Classes
elePHPant
Icontem

ORM mapping class(like Hibernate), maps database table rows to objects

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Indrek Altpere
Name: Indrek Altpere <e-mail contact>
Packages: 3 Browse all classes by Indrek Altpere Browse all classes by
Country: Estonia Estonia - PHP jobs in Estonia
Age: 27
All time rank: 8183 in Estonia Estonia
Week rank: 546 Up2 in Estonia Estonia Up


  Detailed description   Download .zip .tar.gz  
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.

  Classes of Indrek Altpere  >  ORM mapping class(like Hibernate), maps database table rows to objects  >  Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: ORM mapping class(like Hibernate), maps database table rows to objects
Base name: ormbaseobject
Description: Store and retrieve objects in MySQL table records
Version: 1.2
PHP version: 5.0
License: GNU Lesser General Public License (LGPL)
All time users: 1208 users
All time rank: 2751
Week users: 1 user
Week rank: 1988 Up
 
  Groups   Rate classes User ratings   Dependencies   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Databases Database management, accessing and searching View top rated classes


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Not sure (58.3%)
Sufficient (75.0%)
-
Not sure (58.3%)
-
-
Not sure (42.5%)
1953
Month:
Not yet rated by the users

  Packages needed by this class  
Class Dependency Why it is needed
Simple error handling class
Recommended
To be able to log any mysql errors and erros that have occured in BaseObject class itself
Ultimate MySQL wrapper
Required
Is used to perform queries that keep objects and database synchronized, also for charater escaping

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  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

Download all files: ormbaseobject.tar.gz ormbaseobject.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.