MatchMakingLobby/Services/MatchMakingService.php
function registerLobby($lobbyLogin, $readyPlayersCount, $connectedPlayersCount, $serverName, $backLink)
	{
		$this->db->execute(
			'INSERT INTO LobbyServers VALUES (%s, %s, %s, %d, %d) '.
			'ON DUPLICATE KEY UPDATE '.
			'name = VALUES(name), '.
			'backLink = VALUES(backLink), '.
			'readyPlayers = VALUES(readyPlayers), '.
			'connectedPlayers = VALUES(connectedPlayers) ',
			$this->db->quote($lobbyLogin), $this->db->quote($serverName), $this->db->quote($backLink),
			$readyPlayersCount, $connectedPlayersCount
		);
	}
function registerLobby($lobbyLogin, $readyPlayersCount, $connectedPlayersCount, $serverName, $backLink)
	{
		$this->db->execute(
			'INSERT INTO LobbyServers VALUES (%s, %s, %s, %d, %d) '.
			'ON DUPLICATE KEY UPDATE '.
			'name = VALUES(name), '.
			'backLink = VALUES(backLink), '.
			'readyPlayers = VALUES(readyPlayers), '.
			'connectedPlayers = VALUES(connectedPlayers) ',
			$this->db->quote($lobbyLogin), $this->db->quote($serverName), $this->db->quote($backLink),
			$readyPlayersCount, $connectedPlayersCount
		);
	}
function registerLobby ( $ lobbyLogin , $ readyPlayersCount , $ connectedPlayersCount , $ serverName , $ backLink ) { $ this -> db -> execute ( 'INSERT INTO LobbyServers VALUES (%s, %s, %s, %d, %d) ' . 'ON DUPLICATE KEY UPDATE ' . 'name = VALUES(name), ' . 'backLink = VALUES(backLink), ' . 'readyPlayers = VALUES(readyPlayers), ' . 'connectedPlayers = VALUES(connectedPlayers) ' , $ this -> db -> quote ( $ lobbyLogin ) , $ this -> db -> quote ( $ serverName ) , $ this -> db -> quote ( $ backLink ) , $ readyPlayersCount , $ connectedPlayersCount ) ; }
Register a lobby server in the system
@param string $lobbyLogin
@param int $readyPlayersCount
@param int $connectedPlayersCount
@param string $serverName
@param string $backLink
Register a lobby server in the system