Mat's Blog

Random Thumbnail
Random Image

MySQL objects

I was working on my blog objects organization paper this morning and I suddenly came to the realization that I was passing MySQL objects from the database class to the other classes in the program. I've been working rather hard to keep my classes as separate from each other as possible, so this came as a shock when I realized that I had been working completely counter to my goal.

So, I think I'll work on taking MySQL objects and transferring the data from the arrays that are returned and placing the data into a newly instantiated object. When I return a collection of items, I'll transfer them into an array of instantiated objects. Though, I need to insure that the data maintains its integrity. I wouldn't worry about Java doing such a thing, but PHP doesn't seem nearly as reliable...

Posted on January 20, 2010 at 08:09 am. Tags: php mysql objects


Leave a Comment:

Name:

E-Mail Address:

URL:

Comment:

Copyright 2009-2010 Kakomu + Mat T