This class will take the data which it is supplied with and then generate the linkbox for us.
Essentially, a multi-part array is parsd to the linkbox. This means the array will consist of each piece of
data, which is made up of two parts - the bit you want the user to see and the bit which is the actual URL.
<?php
class linkbox extends genericinfo {
/*
Set up the Object. You will notice, we have not reserved
memory space for variables. In this circumstance it is not necessary.
*/
/*
This is the constructor for the linkbox. The only thing this does
is to call the constructor of the parent class. Why? Well, whilst
PHP manages a certain part of OO, one of the bits it falls down on
(at the moment) is constructors within sub-classes. So, to
be sure that the sub-class is instantiated with the constructor of
the parent class, I simply call the parent constructor. Of course,
if I then wanted to override any of the values, I could easily do so.
*/
function linkbox() {
$this->genericinfo();
}
/*
This is the only method within the class. Quite simply, as you can see
it draws the table(s), placing the required data in the appropriate place.
*/
function drawlinkbox() {