Projects / History links

History links

This class can be used to keep track of the pages navigated by a user, so it can generate back or next links providing a similar effect to the use of the Javascript history.go() function. It uses sessions to store an array variable that holds the URL of each page of a site that the user accesses. It can limit the number of pages that are kept in the history array. It may also ignore pages accessed with the POST method or with certain URLs based on options that define exclusion regular expressions. The class can generate links to go back to the last page or the first page that was recorded.

Operating Systems

Recent releases

  •  07 Dec 2005 15:41

    Release Notes: The following new functions were added: get_history_go($step), is_history_go($step), get_always_go($step), and is_always_go($step). If $step is greater than 0, then next_step is used, else back_step is used. The integer parameter, $is_back_next_param, was added in the constructor. If it is 1, then additional parameters in the URL are used (which is the default behavior). If it is 0, then additional parameters in the URL are not used, which only works correctly for one step.

    •  02 Oct 2005 19:26

      Release Notes: The class is completely changed. This release adds creation of several objects of a class, a predefined start page, an expanded list of exceptions, and the methods get_history_back, get_history_next, is_history_back (check back one page), is_history_next (check the next page), get_history_backs (go to the first page), get_history_nexts (go to the last page), and get_history_header (go to the previous and next pages using external parameters). It adds history "always", and has more compatibility with javascript:history.go() (no checking previous and next pages). New methods have been added for the manipulation of history "always".

      •  26 Sep 2005 20:21

        No changes have been submitted for this release.


        Project Spotlight


        A Fluent OpenStack client API for Java.


        Project Spotlight

        TurnKey TWiki Appliance

        A TWiki appliance that is easy to use and lightweight.