Added examples of reading out tournament data

This commit is contained in:
Jeroen De Meerleer 2019-01-18 14:19:12 +01:00
parent c6aedc8a90
commit 5a9c2f29fd
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -28,4 +28,10 @@ Use JeroenED\Libpairtwo\Sws;
require_once '../vendor/autoload.php'; require_once '../vendor/autoload.php';
$sws = Sws::readSws('../res/testsws.sws'); $sws = Sws::readSws('../res/testsws.sws');
echo $sws->getRelease(); echo "Name: " . $sws->getTournament()->getName() . "\n";
echo "Organiser: " . $sws->getTournament()->getOrganiser(). "\n";
echo "Tempo: " . $sws->getTournament()->getTempo() . "\n";
echo "Country: " . $sws->getTournament()->getOrganiserCountry() . "\n";
echo "Arbiter: " . $sws->getTournament()->getArbiter() . "\n";
//echo $sws->getBinaryData("Tournament");
//echo $sws->getBinaryData("Players");