mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-23 23:16:58 +01:00
Added examples of reading out tournament data
This commit is contained in:
parent
c6aedc8a90
commit
5a9c2f29fd
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user