mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-24 15:31:00 +01:00
Updated a.2 Showing the pairings of a specific round (markdown)
parent
a329bc3c10
commit
aa9d5ac221
@ -13,7 +13,7 @@ require_once('vendor/autoload.php');
|
|||||||
use JeroenED\Libpairtwo\IOFactory;
|
use JeroenED\Libpairtwo\IOFactory;
|
||||||
use JeroenED\Libpairtwo\Enums\Result;
|
use JeroenED\Libpairtwo\Enums\Result;
|
||||||
|
|
||||||
$reader = IOFactory::createReader('Pairtwo-6');
|
$reader = IOFactory::createReader('Swar-4');
|
||||||
$reader->read('mycompetition.sws');
|
$reader->read('mycompetition.sws');
|
||||||
$tournament = $reader->getTournament();
|
$tournament = $reader->getTournament();
|
||||||
$pairings = $tournament->getRoundByNo($_GET['round'])->getPairings();
|
$pairings = $tournament->getRoundByNo($_GET['round'])->getPairings();
|
||||||
|
Loading…
Reference in New Issue
Block a user