MatchMakingLobby/Services/MatchMakingService.php
function getPlayersPlayingCount($lobbyLogin)
	{
		return $this->db->execute(
				'SELECT COUNT(*) '.
				'FROM Players P '.
				'INNER JOIN Matches M ON P.matchId = M.id '.
				'INNER JOIN MatchServers MS ON MS.matchId = M.id '.
				'WHERE M.`state` >= %d AND P.state >= %d '.
				'AND MS.lobbyLogin = %s',
				Match::PREPARED, PlayerInfo::PLAYER_STATE_CONNECTED,
				$this->db->quote($lobbyLogin)
			)->fetchSingleValue(0);
	}
function getPlayersPlayingCount($lobbyLogin)
	{
		return $this->db->execute(
				'SELECT COUNT(*) '.
				'FROM Players P '.
				'INNER JOIN Matches M ON P.matchId = M.id '.
				'INNER JOIN MatchServers MS ON MS.matchId = M.id '.
				'WHERE M.`state` >= %d AND P.state >= %d '.
				'AND MS.lobbyLogin = %s',
				Match::PREPARED, PlayerInfo::PLAYER_STATE_CONNECTED,
				$this->db->quote($lobbyLogin)
			)->fetchSingleValue(0);
	}
function getPlayersPlayingCount ( $ lobbyLogin ) { return $ this -> db -> execute ( 'SELECT COUNT(*) ' . 'FROM Players P ' . 'INNER JOIN Matches M ON P.matchId = M.id ' . 'INNER JOIN MatchServers MS ON MS.matchId = M.id ' . 'WHERE M.`state` >= %d AND P.state >= %d ' . 'AND MS.lobbyLogin = %s' , Match :: PREPARED , PlayerInfo :: PLAYER_STATE_CONNECTED , $ this -> db -> quote ( $ lobbyLogin ) ) -> fetchSingleValue ( 0 ) ; }
Return the number of match currently played for the lobby
@param string $lobbyLogin
@return int
Return the number of match currently played for the lobby