Tournament Generator

WithGames

Trait WithGames

Tags
author

Tomá? Vojík vojik@wboy.cz

since
0.4

Table of Contents

$games  : GameContainer
addGameContainer()  : WithGames
Add a child container for games
getGameContainer()  : GameContainer
Get the container for games
getGames()  : array<string|int, Game>
Get all tournament games
setGameAutoincrementId()  : WithGames
Sets a new autoincrement value (start) for the generated games

Properties

Methods

getGames()

Get all tournament games

public getGames() : array<string|int, Game>
Return values
array<string|int, Game>

setGameAutoincrementId()

Sets a new autoincrement value (start) for the generated games

public setGameAutoincrementId(int $id) : WithGames
Parameters
$id : int

Id - probably from the database

Tags
warning

Do this on the top-level hierarchy element (Tournament class) or else, it might be reset later

post

Propagates the value to all child hierarchy objects

see
GameContainer::setAutoIncrement()
since
0.5
Return values
WithGames

Search results