Forum Moderators: coopster

Message Too Old, No Replies

design pattern for this case ?

         

PHPycho

4:08 am on May 18, 2008 (gmt 0)

10+ Year Member



Hello forums!
I would like to know which design pattern would be useful in the following case:
There are many modules and each module consists of many actions(multi stage actions). for example:
Module A consists of action1.1, action1.2, action1.3 etc.
Module B consists of action2.1, action2.2, action2.3 etc.
The actions can be sequential(For example:action1.1-> action1.2-> action1.3) or can be altered as per preferences( For example:action1.1-> action1.3-> action1.2) within a module.

How this can be accomplished using OOP design pattern or else? Any ideas ?
Thanks in advance for the valueable help.

coopster

6:38 pm on May 20, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If the actions are the same across modules I would make them their own object and then an instance of the module.

can be altered as per preferences

If you mean user preferences, then it sounds like a session is in order.