PHP Classes

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!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 40%Total: 1,375 All time: 2,826 This week: 206Up
Version License PHP version Categories
ormbaseobject 1.3GNU Lesser Genera...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: 38
All time rank: 8032 in Estonia Estonia
Week rank: 200 Up2 in Estonia Estonia Equal

  Files folder image Files (6)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
Downloadormbaseobject-2016-06-18.zip 13KB
Downloadormbaseobject-2016-06-18.tar.gz 12KB
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,375
This week:0
All time:2,826
This week:206Up
User Ratings User Comments (1)
 All time
Utility:56%StarStarStar
Consistency:68%StarStarStarStar
Documentation:-
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:40%StarStarStar
Rank:3801
 
I've got some errors, e.
12 years ago (Marian)
10%Star