ts3phpframework
|
Provides low-level methods for ServerQuery communication with a TeamSpeak 3 Server. More...
Public Member Functions | |
__destruct () | |
request (string $cmd, bool $throw=true) | |
wait () | |
prepare (string $cmd, array $params=[]) | |
getQueryLastTimestamp () | |
getQueryCount () | |
getQueryRuntime () | |
getHost () | |
Public Member Functions inherited from PlanetTeamSpeak\TeamSpeak3Framework\Adapter\Adapter | |
__construct (array $options) | |
__sleep () | |
__wakeup () | |
getProfiler () | |
getTransport () | |
getTransportHost () | |
getTransportPort () |
Protected Member Functions | |
syn () | |
Protected Member Functions inherited from PlanetTeamSpeak\TeamSpeak3Framework\Adapter\Adapter | |
initTransport (array $options, string $transport=TCP::class) |
Protected Attributes | |
Host | $host = null |
int | $timer = null |
int | $count = 0 |
array | $block = ["help"] |
Protected Attributes inherited from PlanetTeamSpeak\TeamSpeak3Framework\Adapter\Adapter | |
array | $options = null |
Transport | $transport = null |
Provides low-level methods for ServerQuery communication with a TeamSpeak 3 Server.
Definition at line 21 of file ServerQuery.php.
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery::__destruct | ( | ) |
The ServerQuery destructor.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Adapter\Adapter.
Definition at line 79 of file ServerQuery.php.
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery::getHost | ( | ) |
Returns the Host object of the current connection.
Definition at line 256 of file ServerQuery.php.
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery::getQueryCount | ( | ) |
Returns the number of queries executed on the server.
Definition at line 236 of file ServerQuery.php.
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery::getQueryLastTimestamp | ( | ) |
Returns the timestamp of the last command.
Definition at line 226 of file ServerQuery.php.
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery::getQueryRuntime | ( | ) |
Returns the total runtime in microseconds of all queries.
Definition at line 246 of file ServerQuery.php.
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery::prepare | ( | string | $cmd, |
array | $params = [] ) |
Uses given parameters and returns a prepared ServerQuery command.
string | $cmd | |
array | $params |
Definition at line 168 of file ServerQuery.php.
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery::request | ( | string | $cmd, |
bool | $throw = true ) |
Sends a prepared command to the server and returns the result.
string | $cmd | |
boolean | $throw |
AdapterException|ServerQueryException |
Definition at line 103 of file ServerQuery.php.
|
protected |
Connects the Transport object and performs initial actions on the remote server.
AdapterException |
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Adapter\Adapter.
Reimplemented in PlanetTeamSpeak\TeamSpeak3Framework\Adapter\MockServerQuery.
Definition at line 58 of file ServerQuery.php.
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery::wait | ( | ) |
Waits for the server to send a notification message and returns the result.
AdapterException |
Definition at line 145 of file ServerQuery.php.
|
protected |
Definition at line 49 of file ServerQuery.php.
|
protected |
Definition at line 42 of file ServerQuery.php.
|
protected |
Definition at line 28 of file ServerQuery.php.
|
protected |
Definition at line 35 of file ServerQuery.php.