mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-16 11:57:51 +01:00
Updated Showing the pairings of a specific player (markdown)
parent
6115d00821
commit
03c9500e3c
@ -16,7 +16,7 @@ $magnusses = Player::getPlayersByName("Magnus Carlsen", $sws->getTournament());
|
|||||||
|
|
||||||
$magnus = $magnusses[0];
|
$magnus = $magnusses[0];
|
||||||
|
|
||||||
foreach ($magnus->getPairings() as $game) {
|
foreach ($magnus->getPairings() as $pairing) {
|
||||||
$player = $pairing->getPlayer()->getName();
|
$player = $pairing->getPlayer()->getName();
|
||||||
if (!is_null($pairing->getOpponent())) {
|
if (!is_null($pairing->getOpponent())) {
|
||||||
$opponent = $pairing->getOpponent()->getName();
|
$opponent = $pairing->getOpponent()->getName();
|
||||||
|
Loading…
Reference in New Issue
Block a user