Page 1 of 1

design pattern for this case ??

Posted: Sat May 17, 2008 11:08 pm
by PHPycho
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.

Re: design pattern for this case ??

Posted: Sun May 18, 2008 1:01 am
by PHPycho
knock knock !! any example please?

Re: design pattern for this case ??

Posted: Tue May 20, 2008 3:42 am
by PHPycho
- Are modules classes and actions methods?
-- yes
- Do they need additional Parameters?
-- may or may not
- Are there requirements to the module configuration?
-- Class runs the methods as sequence of methods(like i stated: action1.1-> action1.2-> action1.3) in a default but it can be configureable also

Hope this may help.

Re: design pattern for this case ??

Posted: Tue May 20, 2008 5:02 am
by Christopher
The words Modules and Actions already have meanings as the relate to dispatched controllers. What do the things you are talking about actually do? What are they?