Added examples of reading out tournament data

This commit is contained in:
Jeroen De Meerleer 2019-01-18 14:19:12 +01:00
parent 652b3a8d2c
commit 71d1f2e500

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");