mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-15 03:17:51 +01:00
Updated Showing the pairings of a specific round (markdown)
parent
2a72f7aa9e
commit
cf06eb0a58
@ -10,11 +10,12 @@ When you have the round object you can the `Round::GetPairings()` method to get
|
||||
````php
|
||||
<?php
|
||||
require_once('vendor/autoload.php');
|
||||
use JeroenED\Libpairtwo\Sws;
|
||||
use JeroenED\Libpairtwo\IOFactory;
|
||||
use JeroenED\Libpairtwo\Enums\Result;
|
||||
|
||||
$sws = Sws::readSws('mycompetition.sws');
|
||||
$tournament = $sws->getTournament();
|
||||
$reader = IOFactory::createReader('Pairtwo-6');
|
||||
$reader->read('mycompetition.sws');
|
||||
$tournament = $reader->getTournament();
|
||||
$pairings = $tournament->getRoundByNo($_GET['round'])->getPairings();
|
||||
|
||||
foreach($pairings as $pairing) {
|
||||
|
Loading…
Reference in New Issue
Block a user