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 Martin Polacik  >  Cup Scheduler  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example of use
Class: Cup Scheduler
Generate a schedule of games between teams
Author: By
Last change:
Date: 2009-05-27 15:33
Size: 1,038 bytes
 

Contents

Class file image Download
<?php
###################################################################################################
#  Cup Scheduler LITE v1.
#  Copyright (c) Martin "duno" Polacik <duncan@anachronyx.sk> 2009. All Rights Reserved.
#
#  Cup Scheduler LITE is free php script writen to generate soccer schadule for league cup.
#  Hope it will be usefull. This script is distributed in GNU GPL licence. 
#  See the GNU General Public License for more details http://www.gnu.org/licenses/.
###################################################################################################
 //charset setup
 
header("Content-type: text/html; charset=utf-8");
 
//include main class
 
include("class.cupScheduler.php");
 
//default array, you can also load data from db and store them into array
 
$array = Array("Arsenal""Liverpool""Everton""Tottenham""Nantes""Barcelona""Lokomotiv Moskva""Slovan Bratislava");
 
//load default class
 
$load = new CupScheduler();
 
//load default method
 
$load->generate_schedule($array);
?>