/** * Set a server as actvive or clear the active server * @param serverId mixed numeric server id or null to clear active server * @return boolian was operation successful */ public static function setActive($serverId) { $result = false; if (is_null($serverId)) { self::$__activeServer = null; $result = true; } if (isset(self::$__serverList[$serverId])) { self::$__activeServer =& self::$__serverList[$serverId]; $result = true; } return $result; }