PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old August 27th, 2004, 02:06 PM
jebby jebby is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 jebby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation PHP Development Puzzler!

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

Reply With Quote
  #2  
Old August 28th, 2004, 04:53 AM
kode_monkey kode_monkey is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 367 kode_monkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 21 sec
Reputation Power: 6
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-

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > PHP Development Puzzler!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway