PHP Classes
elePHPant
Icontem

Screen Stack: Implement stacked pages navigation

Recommend this page to a friend!
  Info   View files View files (16)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2005-07-31 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 452 All time: 5,848 This week: 1,043Up
Version License Categories
screenstack 1.0GNU General Publi...Content management
Description Author

Some sites that implement screen oriented tasks consist of a set of pages organized in the form of a tree hierarchy.

For instance, the user starts at screen A which has some buttons that may open screens B or C. When the screen B is opened, the associated task has to be completed or canceled before the user is allowed to return to screen A. Screen B in itself can also have buttons that open screens D and E, and so on.

In each situation, a stack describes the structure of screens that have to be completed. This class can be used to implement stacks of screens that define the navigation of pages that the users of a Web application must follow. The stack is defined by the URLs of the pages.

Picture of Wolter Kaper
Name: Wolter Kaper <contact>
Classes: 1 package by
Country: The Netherlands The Netherlands

Details
Installation of example:
- create a directory and copy the class to it
- create a subdirectory 'demo' and copy all example files to it

To run the example:
- go to http://.../demo/a.php?stack=i
Then use the available links and buttons.
Also try your browsers history (back and forward) and reload buttons.

What the class does is:
- Relieve subordinate screen-scripts from having to know the details
(GET options) of the screen that the user has to return to.
- Enforce screens to be processed in stack-order, while maintaining
compatibility to the browsers history and reload buttons.
(Two degrees of strictness can be chosen).

All explanation is in the main class file itself.
  Files folder image Files  
File Role Description
Accessible without login Plain text file a.php Example screen A
Accessible without login Plain text file b.php Example screen B
Accessible without login Plain text file c.php Example screen C
Accessible without login Plain text file c2.php Example screen C2
Accessible without login Plain text file c3.php Example screen C3
Accessible without login Plain text file d.php Example screen D
Accessible without login Plain text file default.php Example default screen, in case of stack error
Accessible without login Plain text file e.php Example screen E
Accessible without login Plain text file f.php Example screen F
Accessible without login Plain text file ok.php Example example form processor
Accessible without login Plain text file okbottom.inc.php Aux. bottom include for form processors
Accessible without login Plain text file oktop.inc.php Aux. top include for form processors
Accessible without login Plain text file pagetop.inc.php Aux. top include for screens
Accessible without login Plain text file README.TXT Doc. installation and tryout help
Plain text file screenstack.class Class main class
Accessible without login Plain text file top.inc.php Aux. top include for all scripts

 Version Control Unique User Downloads Download Rankings  
 0%
Total:452
This week:0
All time:5,848
This week:1,043Up