| Methods |
public
|
__construct(null|string $address = null, null|int $queryport = null)
Constructor. Initializes the TeamSpeak 3 query instance.
Constructor. Initializes the TeamSpeak 3 query instance.
Parameters
| $address |
The server address to query
|
| $queryport |
The query port for the TeamSpeak 3 server (default 10011)
|
Overrides
|
#
|
public
|
query(ServerAddress $addr): ServerInfo
Performs a query on the specified TeamSpeak 3 server address. Connects to the query port, retrieves server information, and returns a ServerInfo object
containing the query results including channels and clients.
Performs a query on the specified TeamSpeak 3 server address. Connects to the query port, retrieves server information, and returns a ServerInfo object
containing the query results including channels and clients.
Parameters
| $addr |
The server address and query port to connect to
|
Returns
Server information including status, channels, and clients
Implements
|
#
|
public
|
getProtocolName(): string
Returns the protocol name for TeamSpeak 3.
Returns the protocol name for TeamSpeak 3.
Returns
The protocol identifier 'teamspeak3'
Implements
|
#
|
public
|
getVersion(ServerInfo $info): string
Extracts the TeamSpeak 3 server version from server information.
Extracts the TeamSpeak 3 server version from server information.
Parameters
| $info |
The server information object
|
Returns
The server version string, or 'unknown' if not available
Implements
|
#
|
public
|
query_server(bool $getPlayers = true, bool $getRules = true): bool
Queries the TeamSpeak 3 server and populates server information. Uses the query method to retrieve server data and updates internal state
with server details, channels, and client information.
Queries the TeamSpeak 3 server and populates server information. Uses the query method to retrieve server data and updates internal state
with server details, channels, and client information.
Parameters
| $getPlayers |
Whether to retrieve client information
|
| $getRules |
Whether to retrieve server rules/settings
|
Returns
True on successful query, false on failure
Overrides
|
#
|