Re: Programming a state controller for page transitions

From: Date: Fri, 18 Jan 2002 23:55:50 +0000
Subject: Re: Programming a state controller for page transitions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81176@lists.php.net to get a copy of this message
Hello, Geoff Caplan wrote: > > Hi folks > > A bit OT - more a general programming issue than PHP - but here goes: > > I am trying to design a state controller to manage multi-page logical > transactions, such as, say, a three page checkout process, or a database > entry system. > > The idea is that I store all the states, transitions and actions in some > kind of table, and then run this data through a generic state rule > interpreter to determine the next page to generate. It will also handle > back-buttons, page-refreshes and out-of-sequence requests. > > But I'm finding it hard to find material on this on the web. The best source > I have identified is > http://www.uidesign.net/1999/papers/webmvc_part1.html . > This is a great resource, but it is based on a very abstract OOP approach, > while I am using procedural/relational. > > My main problem is working out how to encapsulate all the rules in a > persistent table. After that, designing the rule processor should be fairly > straightforward. > > Can anyone point me at any sources about this, or perhaps share their own > approaches? You may want to try this multi-page forms class that can be used as a Windows like wizard for sequencial access or like a tabbed notebook for random access to pages: http://phpclasses.upperdesign.com/browse.html/package/108 Regards, Manuel Lemos

« previous php.general (#81176) next »