Refactorific

I've refactored my site. ~Yay!~
You can't tell because it was all backend stuff. ~Boo~
I've OOP'd it all. Basically.
L'arsienne Georges Bizet

I've refactored my site. ~Yay!~
You can't tell because it was all backend stuff. ~Boo~
I've OOP'd it all. Basically.

I'm slowly finding out that putting together a shopping cart is a bit more complicated than I thought. I originally intended to slap one together to see if I could sell off random junk lying about the house. Being that this junk is random though, it ends up widening the range of considerations in putting together the database. At one point I had to resolve, in my head, whether or not a publisher could be considered a manufacturer or not, I mean, they do 'manufacture' the book, don't they?
Still going at it, but it's slow. and tedious. But I'm still too lazy to glance at the documentation for OS Commerce.
I'm comforted by the fact that it could be even slower.
Somehow.

This is something simple that I don't see explained in too many texts. I guess it's just so simple that people should get it right away. This is for the ones that don't...
Basically, use '$this' to get the method (function) working if you want to use it inside another method, but within the same class.
$obj = new Fruitcake;
$obj->Bread();
The resulting output will be: "hello cashews!"
| books here |