fmII
Wed, Jul 09th home | browse | articles | contact | chat | submit | faq | newsletter | about | stats | scoop 13:52 UTC
in
Section
login «
register «
recover password «
[Project] add release | add branch | add screenshot | broken links | change owner | email subscribers | update project | update branch (urls) [Project]
Theme topics | Apps | Resources | Window Managers | Afterstep | Blackbox | Enlightenment | Fluxbox | GTK | IceWM | KDE | MetaCity | Sawfish | Window Maker

 DB_DataContainer - Default branch
Section: Unix

 

Added: Wed, Apr 2nd 2003 23:48 UTC (5 years, 3 months ago) Updated: Wed, Dec 21st 2005 07:58 UTC (2 years, 6 months ago)


About:
DB_DataContainer is a PEAR-compliant database persistence layer and data encapsulation class. It encapsulates the behavior required to make objects persistent, including loading, saving, and deleting objects in a persistent store. It currently supports relational databases and uses PEAR DB for database abstraction.

Author:
Mika Tuupola [contact developer]

Rating:
8.36/10.00 (1 vote)

Homepage:
http://www.appelsiini.net/~tuupola/php/DB_DataContainer/
Tar/GZ:
http://www.appelsiini.net/[..]pola/download/DB_DataContainer-1.3.1.tgz

Trove categories: [change]
[Intended Audience]  Developers
[License]  OSI Approved :: BSD License (revised)
[Operating System]  OS Independent
[Programming Language]  PHP
[Topic]  Database

Dependencies: [change]
No dependencies filed

 
Project admins: [change]
» Mika Tuupola (Owner)

» Rating: 8.36/10.00 (Rank N/A)
» Vitality: 0.01% (Rank 6944)
» Popularity: 0.53% (Rank 11032)

project statsdownload stats
(click to enlarge graphs)
   Record hits: 5,384
   URL hits: 1,752
   Subscribers: 14

Other projects from the same categories:
slurpd-stat
EMS PostgreSQL Import
phpLanParty
Injection Framework
Perl Database Admin

Users who subscribed to this project also subscribed to:
Grout
libpwmd
LlamaXML compact XML parsing library
Channel
SharpConstruct


Add comment · Rate this project · Subscribe to new releases · Ignore this project · Email this project to a friend · Project record in XML

 Branches

Branch Version Last release License URLs
Default 1.3.1 21-Dec-2005 BSD License (revised) Homepage Tar/GZ

 Comments

[»] Excellent for simple object persistence
by pearcec - Jan 18th 2005 18:14:52

I was in the middle of trying to write a web based investing application in perl when I was feed up with the complexity of mason. While I think the perl Finance::Quote module is great and fear it will duplicated in PHP, I couldn't bear to deal with mason.

I was using Class::DBI for perl to manage the object persistence in sqlite. It was great. I was trying to find the same type of project in PHP. Of course there is propel. But that thing is huge. And requires multiple projects and XML definitions of the data model. Clearly it would be overkill for my needs.

A good friend of mine turned me onto this project. But not before checking out a bunch of other half-baked projects. I had a little trouble getting started. Anytime I tried to access any of the variables it would segfault. I figured out the overload function in 4.3 was experimental and decided to upgrade to 5. It woulds like a champ. All you need to do is create your class like this.

<?PHP

require_once('DB/DataContainer.php');

class Account extends DB_DataContainer {

var $name;
var $number;
var $desc;

}
?>

Installing it only took this :

sudo pear install http://www.appelsiini.net/~tuupola/php/download/DB_DataContainer-1.3.0.tgz

The only thing it doesn't have compared to Class::DBI in perl is the 1-N relationships. I suppose it would not be to hard to implement.

[reply] [top]




© Copyright 2008 SourceForge, Inc., All Rights Reserved.
About freshmeat.net •  Privacy Statement •  Terms of Use •  Trademark Guidelines •  Advertise •  Contact Us • 
ThinkGeek •  Slashdot  •  ITMJ •  Linux.com •  NewsForge  •  SourceForge.net  •  Surveys •  Jobs •  PriceGrabber