|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Howdy,
I'm trying to write a PHP OOP, but the problem is that I don't know how to solve my problem without multiple inheritance. Basically I have a class that defines the root behavior for other classes, a parent class (baseView). From this, I have several child classes that may or may not inherit various behavior from baseView, which can be summed up as baseSingle, baseMultiple, and baseHome. Know the kicker, is that I'd like to be able to create an inherited class, such as "NewLookSingle", that would inherit its behavior both from a "NewLookView" and from the "baseSingle". I realize I can't do this via multiple inheritance if I hope to support PHP4, but is there a way to get this to work? Thanks! Jeb |
|
#2
|
|||
|
|||
|
I was reading a site about someone's solution to this the other day but can't remember where it was. Try googling the problem and I'm sure something will turn up since its definitely out there.
-KM- |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP Development Puzzler! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|