cvs: pear /Net_GameServerQuery/GameServerQuery Config.php

From: Date: Wed, 18 Aug 2004 13:13:01 +0000
Subject: cvs: pear /Net_GameServerQuery/GameServerQuery Config.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23072@lists.php.net to get a copy of this message
aidan Wed Aug 18 09:13:01 2004 EDT Modified files: /pear/Net_GameServerQuery/GameServerQuery Config.php Log: added validgame() method http://cvs.php.net/diff.php/pear/Net_GameServerQuery/GameServerQuery/Config.php?r1=1.8&r2=1.9&ty=u Index: pear/Net_GameServerQuery/GameServerQuery/Config.php diff -u pear/Net_GameServerQuery/GameServerQuery/Config.php:1.8 pear/Net_GameServerQuery/GameServerQuery/Config.php:1.9 --- pear/Net_GameServerQuery/GameServerQuery/Config.php:1.8 Sun Aug 8 13:01:46 2004 +++ pear/Net_GameServerQuery/GameServerQuery/Config.php Wed Aug 18 09:13:00 2004 @@ -16,7 +16,7 @@ // | Tom Buskens <ortega@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.8 2004/08/08 17:01:46 ortega Exp $ +// $Id: Config.php,v 1.9 2004/08/18 13:13:00 aidan Exp $ /** @@ -27,7 +27,7 @@ * @category Net * @package Net_GameServerQuery * @author Aidan Lister <aidan@php.net> - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ */ class Net_GameServerQuery_Config { @@ -67,10 +67,25 @@ * @return string The game used * @param string $game The game */ + public function validgame($game) + { + if (isset($this->_games[$game])) { + return true; + } + + return false; + } + + + /** + * Return protocol used by a certain game + * + * @return string The game used + * @param string $game The game + */ public function protocol($game) { return $this->_games[$game]['protocol']; - }

« previous php.pear.cvs (#23072) next »