MatchMakingLobby/Services/MatchMakingService.php
function getLiveMatchServersCount($lobbyLogin, $scriptName, $titleIdString)
	{
		return $this->db->execute(
				'SELECT COUNT(*) FROM MatchServers '.
				'WHERE DATE_ADD(lastLive, INTERVAL 15 MINUTE) > NOW() '.
				'AND lobbyLogin = %s AND scriptName = %s AND titleIdString = %s',
				$this->db->quote($lobbyLogin), $this->db->quote($scriptName), $this->db->quote($titleIdString)
			)->fetchSingleValue(0);
	}
function getLiveMatchServersCount($lobbyLogin, $scriptName, $titleIdString)
	{
		return $this->db->execute(
				'SELECT COUNT(*) FROM MatchServers '.
				'WHERE DATE_ADD(lastLive, INTERVAL 15 MINUTE) > NOW() '.
				'AND lobbyLogin = %s AND scriptName = %s AND titleIdString = %s',
				$this->db->quote($lobbyLogin), $this->db->quote($scriptName), $this->db->quote($titleIdString)
			)->fetchSingleValue(0);
	}
function getLiveMatchServersCount ( $ lobbyLogin , $ scriptName , $ titleIdString ) { return $ this -> db -> execute ( 'SELECT COUNT(*) FROM MatchServers ' . 'WHERE DATE_ADD(lastLive, INTERVAL 15 MINUTE) > NOW() ' . 'AND lobbyLogin = %s AND scriptName = %s AND titleIdString = %s' , $ this -> db -> quote ( $ lobbyLogin ) , $ this -> db -> quote ( $ scriptName ) , $ this -> db -> quote ( $ titleIdString ) ) -> fetchSingleValue ( 0 ) ; }
Get the number of server the lobby can use
@param string $lobbyLogin
@param string $scriptName
@param string $titleIdString
@return int
Get the number of server the lobby can use