Steve_Oaks
Gawd
- Joined
- Dec 17, 2002
- Messages
- 808
UML Model:
Background:
I am designing a. OO menu system in php5. Because this will be a web-based menu system the ability to do a heir navigation is a must.
As it is diagrammed above, there will be a menu object which contains an array of menuItem objects. The MenuItem class is abstract, menuItem object will either be instatiaded off the Text class or the ImageRollover class.
Here is the problem:
How should I go about allowing the menuItems to have sub menu items or a menu within them? I have drawn and redrawn on paper 10 different ways I *could* do it though none of the seem to follow proper OO design.
Background:
I am designing a. OO menu system in php5. Because this will be a web-based menu system the ability to do a heir navigation is a must.
As it is diagrammed above, there will be a menu object which contains an array of menuItem objects. The MenuItem class is abstract, menuItem object will either be instatiaded off the Text class or the ImageRollover class.
Here is the problem:
How should I go about allowing the menuItems to have sub menu items or a menu within them? I have drawn and redrawn on paper 10 different ways I *could* do it though none of the seem to follow proper OO design.