[PHP] OOP Design Question

2009-12-20 Thread Daniel Kolbo
Hello PHPers, I have a collection of about 60 objects (class definitions). They are all very similar. They all share a substantial % of the same core. But they all have slight variations as well. The approach I took was to make an abstract core class, and each of the 60 objects extends that

Re: [PHP] OOP Design Question

2009-12-20 Thread Robert Cummings
Set up autoloading: http://php.net/manual/en/language.oop5.autoload.php Cheers, Rob. Daniel Kolbo wrote: Hello PHPers, I have a collection of about 60 objects (class definitions). They are all very similar. They all share a substantial % of the same core. But they all have slight

Re: [PHP] OOP Design Question

2009-12-20 Thread Larry Garfield
On Sunday 20 December 2009 10:35:56 am Daniel Kolbo wrote: Hello PHPers, I have a collection of about 60 objects (class definitions). They are all very similar. They all share a substantial % of the same core. But they all have slight variations as well. The approach I took was to make

Re: [PHP] OOP Design Question

2009-12-20 Thread Larry Garfield
On Sunday 20 December 2009 1:08:46 pm you wrote: Maybe this would be the perfect opportunity for the php autoload functions...? Thanks for your help/thoughts/comments, dK ` Yep, this is a textbook case for a proper autoload setup. And no, cramming all of the functionality into

[PHP] OOP design question

2004-01-05 Thread Mike Smith
I am starting to get a handle (I think) on OOP. I was wondering if anyone would care to comment on what I think I understand: For simplicity's sake class.php contains AddItem() and DisplayItems(). Since submitting form data ?php include('class.php'); If(!$_POST['submit']){ //Do I need to

[PHP] PHP OOP design question

2003-03-04 Thread Joseph Szobody
I have several web projects that are all database driven. I have recently been diving into OOP, and rewriting a lot of procedural code in OOP. I have a design question about handling the MySQL connection. I have a mysql() class which handles all my queries, automatic inserts/updates, etc. Just

[PHP] Re: PHP OOP design question

2003-03-04 Thread neko
Answer - use PEAR for both your database connection and as a data modeling layer: http://pear.php.net check the documentation for more info. neko Joseph Szobody [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have several web projects that are all database driven. I have recently

Re: [PHP] PHP OOP design question

2003-03-04 Thread Ernest E Vogelsinger
At 14:24 04.03.2003, Joseph Szobody spoke out and said: [snip] I have several web projects that are all database driven. I have recently been diving into OOP, and rewriting a lot of procedural code in OOP. I have a design question about handling the MySQL