Login   Register  
PHP Classes
elePHPant
Icontem

File: webring.api

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Robert Peake  >  webring 1.0  >  webring.api  >  Download  
File: webring.api
Role: Documentation
Content type: text/plain
Description: API for webring 1.0
Class: webring 1.0
webring provides an easy-to-configure solution
Author: By
Last change:
Date: 2000-11-28 19:00
Size: 535 bytes
 

Contents

Class file image Download
webring (C) 2000 Robert Peake
Released under GNU Lesser Public Licesne 

extends the loopedArray class
requires the file "loopedArray.inc"

        webring webring (string filename, string HTTP_REFERER) :
constructor for webring -- takes in a file of URLs,
one per line, and makes them into a webring

        void next() :
returns the url in the webring after the referrer url

        void prev() :
returns the url in the webring before the referrer url

        void random() :
returns a random URL from the webring