Index of /media/code/Andys_code

Icon  Name                    Last modified      Size  Description
[PARENTDIR] Parent Directory - [   ] RPIDisplay.php 2013-09-14 22:14 1.3K [DIR] css/ 2013-09-14 22:14 - [DIR] libs/ 2014-01-06 23:51 -
NCDA
National Collegiate Dodgeball Association
http://NCDAdodgeball.com - ncdadodgeball@gmail.com

#Ratings Percentage Index - RPI#
##PHP Application##

Location:	http://ncdadodgeball.com/media/code/Andys_code/

Main Output:	http://ncdadodgeball.com/media/code/Andys_code/RPIDisplay.php
PHP Library:	http://ncdadodgeball.com/media/code/Andys_code/libs/DBConn.php
		http://ncdadodgeball.com/media/code/Andys_code/libs/League.php
		http://ncdadodgeball.com/media/code/Andys_code/libs/teamClasses.php
		http://ncdadodgeball.com/media/code/Andys_code/libs/Rpi.php

DBConn
	Simple DB access class to make it easier for other classes.
	Accesses the NCDA Records MySQL Database (db453621215)
	More may be added to this in the future.

League
	Basic class. Holds an array of teamBase objects with getters and setters for class variables.

teamClasses
	All the team classes are in the libs/teamClasses.php file.
	I tried to write them so you can extend future rating systems off the teamRecord class, like i did for the teamForRPI class.
	All of the classes are pretty barebone with just setters and getters, feel free to add to them.

Rpi
	Handles RPI calculation

Other Elements
	Begin Season:	YYYY-08-01 (Aug 1)
	End Season:	YYYY-07-01 (Jul 1)
	Change current Season: libs/Rpi.php > $startYear

Other thoughts:
	- Change the dates from being hard coded in, to dynamically added from the database.



Notes from Andy Lieblich:
  I left the RPIDisplay.php page really bare, I wasn't sure if you wanted to leave it
  as a stand alone page, or integrate it into another page. I tried to make it easy to 
  be able to integrate it into another. Its just a few lines of PHP to calculate, 
  look at the top few lines RPIDisplay.php to see how to use it. And the rest of 
  my app is in the RPI_holder div. I separated my styles into 2 css files incase you wanted to 
  integrate into another page. The RPIDisplay_styles.css(whats a naming convention?) file is needed for my app where ever it is.
  The other css file is just for having my app on its own page.
  
  add team to league
  check is team is already in league
    if so, do nothing
    else, push team into league
	  get the teams index in the league array

update team
  add win or loss
  add pointer to team played in teamsPlayed array