PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Diogo Resende  >  Schedule  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Script to view test.xml
Class: Schedule
Render schedule time tables from XML definitions
Author: By
Last change:
Date: 12 years ago
Size: 563 bytes


Class file image Download
include 'class.schedule.php';
$sch = new Schedule();
// change size of image
$sch->width = 800;
$sch->height = 400;
// now draw ;)
     in this example I use dayspan,blockspan,dayoffset and blockoffset
     to show you how you can position a block anywhere on the schedule
     (it's a good way to create horizontal schedules instead of vert.)
     you can see also that the order of the days in the xml file counts
     for the z order :)