cvs: pear /Net_GameServerQuery/GameServerQuery Config.php

From: Date: Mon, 05 Jul 2004 17:07:17 +0000
Subject: cvs: pear /Net_GameServerQuery/GameServerQuery Config.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-21527@lists.php.net to get a copy of this message
aidan Mon Jul 5 13:07:17 2004 EDT Modified files: /pear/Net_GameServerQuery/GameServerQuery Config.php Log: de-tabbed http://cvs.php.net/diff.php/pear/Net_GameServerQuery/GameServerQuery/Config.php?r1=1.3&r2=1.4&ty=u Index: pear/Net_GameServerQuery/GameServerQuery/Config.php diff -u pear/Net_GameServerQuery/GameServerQuery/Config.php:1.3 pear/Net_GameServerQuery/GameServerQuery/Config.php:1.4 --- pear/Net_GameServerQuery/GameServerQuery/Config.php:1.3 Sun Jul 4 07:37:58 2004 +++ pear/Net_GameServerQuery/GameServerQuery/Config.php Mon Jul 5 13:07:17 2004 @@ -16,7 +16,7 @@ // | Tom Buskens <ortega@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.3 2004/07/04 11:37:58 aidan Exp $ +// $Id: Config.php,v 1.4 2004/07/05 17:07:17 aidan Exp $ /** @@ -24,24 +24,24 @@ * * @category Net * @package Net_GameServerQuery - * @author Aidan Lister <aidan@php.net> - * @version $Revision: 1.3 $ + * @author Aidan Lister <aidan@php.net> + * @version $Revision: 1.4 $ */ class Net_GameServerQuery_Config { - /** - * An array of all protocol information - * - * @var array - */ - private static $_protocol; - - /** - * An array of all game information - * - * @var array - */ - private static $_game; + /** + * An array of all protocol information + * + * @var array + */ + private static $_protocol; + + /** + * An array of all game information + * + * @var array + */ + private static $_game; /** @@ -51,35 +51,35 @@ */ public function __construct() { - // Load the protocol config - require 'Protocols.php'; - $this->_protocol = $protocol; - - // Load the game config - require 'Games.php'; - $this->_game = $game; + // Load the protocol config + require 'Protocols.php'; + $this->_protocol = $protocol; + + // Load the game config + require 'Games.php'; + $this->_game = $game; } - /** - * Get the packet to be sent to server - * - * This should probably be moved somewhere else, I don't know where. - * - * @return string The packet - * @param string $game The game - * @param string $query The type of query - */ - public function packet($game, $query) - { - $protocol = $this->_game[$game]; - $packetformat = $this->_protocol[$protocol]['packet']; - $querystring = $this->_protocol[$protocol]['send'][$query]; + /** + * Get the packet to be sent to server + * + * This should probably be moved somewhere else, I don't know where. + * + * @return string The packet + * @param string $game The game + * @param string $query The type of query + */ + public function packet($game, $query) + { + $protocol = $this->_game[$game]; + $packetformat = $this->_protocol[$protocol]['packet']; + $querystring = $this->_protocol[$protocol]['send'][$query]; - $packet = sprintf($packetformat, $querystring); + $packet = sprintf($packetformat, $querystring); - return $packet; - } + return $packet; + } /**

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