Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of lior  >  Team schedule maker  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file of using the schedule
Class: Team schedule maker
Generate season schedules of games played by teams
Author: By
Last change:
Date: 2007-07-22 06:31
Size: 280 bytes
 

Contents

Class file image Download
<?php
include("schedule.php");

$s=new schedule();
//number of teams
$s->num=8;
//makes the teams
$s->make_teams();
//makes the history-all the possibilities of the teams(team1 can play against all and so on)
$s->make_history();

//prints the schedule
$s->run();

?>