several corrections

This commit is contained in:
Jeroen De Meerleer 2019-01-18 18:10:56 +01:00
parent 5a9c2f29fd
commit 6341b7740b
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 76 additions and 59 deletions

View File

@ -38,6 +38,7 @@ class Tournament
private $OrganiserClub;
private $OrganiserPlace;
private $OrganiserCountry;
private $FideHomol;
private $StartDate;
private $EndDate;
private $Arbiter;
@ -48,7 +49,7 @@ class Tournament
private $System;
/**
* @return mixed
* @return string
*/
public function getName()
{
@ -56,7 +57,7 @@ class Tournament
}
/**
* @param mixed $Name
* @param string $Name
*/
public function setName($Name): void
{
@ -64,7 +65,7 @@ class Tournament
}
/**
* @return mixed
* @return string
*/
public function getOrganiser()
{
@ -72,7 +73,7 @@ class Tournament
}
/**
* @param mixed $Organiser
* @param string $Organiser
*/
public function setOrganiser($Organiser): void
{
@ -80,7 +81,7 @@ class Tournament
}
/**
* @return mixed
* @return integer
*/
public function getOrganiserClub()
{
@ -88,7 +89,7 @@ class Tournament
}
/**
* @param mixed $OrganiserClub
* @param integer $OrganiserClub
*/
public function setOrganiserClub($OrganiserClub): void
{
@ -96,7 +97,7 @@ class Tournament
}
/**
* @return mixed
* @return string
*/
public function getOrganiserPlace()
{
@ -104,7 +105,7 @@ class Tournament
}
/**
* @param mixed $OrganiserPlace
* @param string $OrganiserPlace
*/
public function setOrganiserPlace($OrganiserPlace): void
{
@ -112,7 +113,7 @@ class Tournament
}
/**
* @return mixed
* @return string
*/
public function getOrganiserCountry()
{
@ -120,7 +121,7 @@ class Tournament
}
/**
* @param mixed $OrganiserCountry
* @param string $OrganiserCountry
*/
public function setOrganiserCountry($OrganiserCountry): void
{
@ -128,7 +129,23 @@ class Tournament
}
/**
* @return mixed
* @return integer
*/
public function getFideHomol()
{
return $this->FideHomol;
}
/**
* @param integer $FideHomol
*/
public function setFideHomol($FideHomol): void
{
$this->FideHomol = $FideHomol;
}
/**
* @return integer
*/
public function getStartDate()
{
@ -136,7 +153,7 @@ class Tournament
}
/**
* @param mixed $StartDate
* @param integer $StartDate
*/
public function setStartDate($StartDate): void
{
@ -144,7 +161,7 @@ class Tournament
}
/**
* @return mixed
* @return integer
*/
public function getEndDate()
{
@ -152,7 +169,7 @@ class Tournament
}
/**
* @param mixed $EndDate
* @param integer$EndDate
*/
public function setEndDate($EndDate): void
{
@ -160,7 +177,7 @@ class Tournament
}
/**
* @return mixed
* @return string
*/
public function getArbiter()
{
@ -168,7 +185,7 @@ class Tournament
}
/**
* @param mixed $Arbiter
* @param string $Arbiter
*/
public function setArbiter($Arbiter): void
{
@ -176,7 +193,7 @@ class Tournament
}
/**
* @return mixed
* @return integer
*/
public function getRounds()
{
@ -184,7 +201,7 @@ class Tournament
}
/**
* @param mixed $Rounds
* @param integer $Rounds
*/
public function setRounds($Rounds): void
{
@ -192,7 +209,7 @@ class Tournament
}
/**
* @return mixed
* @return integer
*/
public function getParticipants()
{
@ -200,7 +217,7 @@ class Tournament
}
/**
* @param mixed $Participants
* @param integer $Participants
*/
public function setParticipants($Participants): void
{
@ -208,7 +225,7 @@ class Tournament
}
/**
* @return mixed
* @return string
*/
public function getTempo()
{
@ -216,7 +233,7 @@ class Tournament
}
/**
* @param mixed $Tempo
* @param string $Tempo
*/
public function setTempo($Tempo): void
{
@ -224,7 +241,7 @@ class Tournament
}
/**
* @return mixed
* @return integer
*/
public function getNonRatedElo()
{
@ -232,7 +249,7 @@ class Tournament
}
/**
* @param mixed $NonRatedElo
* @param integer $NonRatedElo
*/
public function setNonRatedElo($NonRatedElo): void
{
@ -240,7 +257,7 @@ class Tournament
}
/**
* @return mixed
* @return integer
*/
public function getSystem()
{
@ -248,7 +265,7 @@ class Tournament
}
/**
* @param mixed $System
* @param integer $System
*/
public function setSystem($System): void
{

View File

@ -51,169 +51,169 @@ class Sws
$length = 4;
$sws->setRelease(Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setRelease(self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
$sws->setTournament(new Tournament());
// UserCountry
$length = 4;
$sws->setBinaryData("UserCountry", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("UserCountry", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// SavedOffset
$length = 4;
$sws->setBinaryData("SavedOffset", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("SavedOffset", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// NewPlayer
$length = 4;
$sws->setBinaryData("NewPlayer", hexdec(Self::ReadHexData(substr($swscontents, $offset, $length))));
$sws->setBinaryData("NewPlayer", hexdec(self::ReadHexData(substr($swscontents, $offset, $length))));
$offset += $length;
// AmericanHandicap
$length = 4;
$sws->setBinaryData("AmericanHandicap", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("AmericanHandicap", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// LowOrder
$length = 4;
$sws->setBinaryData("LowOrder", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("LowOrder", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// PairingMethod
$length = 4;
$sws->setBinaryData("PairingMethod", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("PairingMethod", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// AmericanPresence
$length = 4;
$sws->setBinaryData("AmericanPresence", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("AmericanPresence", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// CheckSameClub
$length = 4;
$sws->setBinaryData("CheckSameClub", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("CheckSameClub", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// NoColorCheck
$length = 4;
$sws->setBinaryData("NoColorCheck", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("NoColorCheck", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// SeparateCategories
$length = 4;
$sws->setBinaryData("SeparateCategories", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("SeparateCategories", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// EloUsed
$length = 4;
$sws->setBinaryData("EloUsed", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("EloUsed", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// AlternateColors
$length = 4;
$sws->setBinaryData("AlternateColors", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("AlternateColors", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// MaxMeetings
$length = 4;
$sws->setBinaryData("MaxMeetings", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("MaxMeetings", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// MaxDistance
$length = 4;
$sws->setBinaryData("MaxDistance", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("MaxDistance", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// MinimizeKeizer
$length = 4;
$sws->setBinaryData("MinimizeKeizer", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("MinimizeKeizer", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// MinRoundsMeetings
$length = 4;
$sws->setBinaryData("MinRoundsMeetings", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("MinRoundsMeetings", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// MaxRoundsAbsent
$length = 4;
$sws->setBinaryData("MaxRoundsAbsent", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("MaxRoundsAbsent", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// SpecialPoints
$length = 4 * 6;
$sws->setBinaryData("SpecialPoints", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("SpecialPoints", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// NewNamePos
$length = 4;
$sws->setBinaryData("NewNamePos", hexdec(Self::ReadHexData(substr($swscontents, $offset, $length))));
$sws->setBinaryData("NewNamePos", hexdec(self::ReadHexData(substr($swscontents, $offset, $length))));
$offset += $length;
// CurrentRound
$length = 4;
$sws->setBinaryData("CurrentRound", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("CurrentRound", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// CreatedRounds
$length = 4;
$sws->setBinaryData("CreatedRounds", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("CreatedRounds", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// CreatedPlayers
$length = 4;
$sws->setBinaryData("CreatedPlayers", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("CreatedPlayers", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// MaxSelection
$length = 4;
$sws->setBinaryData("MaxSelection", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("MaxSelection", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// NumberOfRounds
$length = 4;
$sws->setBinaryData("NumberOfRounds", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("NumberOfRounds", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// NumberOfPairings
$length = 4;
$sws->setBinaryData("NumberOfPairings", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("NumberOfPairings", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// CreatedPairings
$length = 4;
$sws->setBinaryData("CreatedPairings", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("CreatedPairings", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// PairingElems
$length = 4;
$sws->setBinaryData("PairingElems", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("PairingElems", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// RandomSeed
$length = 4;
$sws->setBinaryData("RandomSeed", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("RandomSeed", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// TieOrder
$length = 4 * 5;
$sws->setBinaryData("TieOrder", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("TieOrder", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// Categorie
$length = 4 * 10;
$sws->setBinaryData("Categorie", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("Categorie", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// ExtraPoints
$length = 4 * 20;
$sws->setBinaryData("ExtraPoints", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("ExtraPoints", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// SelectP
$length = 4 * 20;
$sws->setBinaryData("SelectP", Self::ReadHexData(substr($swscontents, $offset, $length)));
$sws->setBinaryData("SelectP", self::ReadHexData(substr($swscontents, $offset, $length)));
$offset += $length;
// Players