/
test.php
43 lines (33 loc) · 1.16 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Created by PhpStorm.
* User: Greg
* Date: 10/12/2015
* Time: 5:56 PM
*/
include "Database/db.php";
include "Database/Tables/PlayersTable.php";
include "Database/Tables/BatterStatsTable.php";
include "Database/Tables/PollsTable.php";
include "Database/Tables/AdminsTable.php";
include "Database/Tables/EventsTable.php";
include "Database/Tables/PitcherStatsTable.php";
$pitcherTable = new PitcherStatsTable();
$pitcherObject = new PitcherObject();
$pitcherObject->setWin(3);
$pitcherObject->setLoss(2);
$pitcherObject->setInningsPitched(22);
$pitcherObject->setRunsAllowed(12);
$pitcherObject->setEarnedRunsAllowed(10);
$pitcherObject->setWalksAllowed(4);
$pitcherObject->setStrikeOuts(12);
$pitcherObject->calcEra();
$pitcherTable->create($pitcherObject);
/*$eventsTable = new EventsTable();
$eventsObject = new EventsObject();
$eventsObject->setName("Bob");
$eventsObject->setDescription("Bob is a great man and I hope he has a great life.");
$eventsObject->setImage("ImageGoesHere");
$eventsObject->setDate("Today");
$eventsTable->create($eventsObject);
*/