mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-12-23 12:50:59 +01:00
Added examples of reading out tournament data
This commit is contained in:
parent
652b3a8d2c
commit
71d1f2e500
@ -28,4 +28,10 @@ Use JeroenED\Libpairtwo\Sws;
|
||||
require_once '../vendor/autoload.php';
|
||||
|
||||
$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");
|
||||
|
Loading…
Reference in New Issue
Block a user