Re: [PHP] Housing multiple classes under one class

2003-09-21 Thread Burhan Khalid
Gerard Samuel wrote: [ snip ] By having one class where they all can share each others data. Is it just a dream? The only way I know how is by making object/objects like $foo->bar->do_something() Have you tried using inheritence? class foo { /* class methods, objects */ } class bar extends foo

[PHP] Housing multiple classes under one class

2003-09-20 Thread Gerard Samuel
I got an application that uses Smarty, ADODB, and some other custom classes. So I have about about 5 objects floating around, and the Smarty object, and another class contains a reference copy of the ADODB object, and I just get that feeling that it can be better. By having one class where they al