![]() |
TeamSpeak 3 PHP Framework
1.1.16
Copyright © Planet TeamSpeak. All rights reserved.
|
Provides low-level methods for concrete adapters to communicate with a TeamSpeak 3 Server. More...
Inheritance diagram for TeamSpeak3_Adapter_Abstract:Public Member Functions | |
| __construct (array $options) | |
| The TeamSpeak3_Adapter_Abstract constructor. | |
| __destruct () | |
| The TeamSpeak3_Adapter_Abstract destructor. | |
| __sleep () | |
| Commit pending data. | |
| __wakeup () | |
| Reconnects to the remote server. | |
| getProfiler () | |
| Returns the profiler timer used for this connection adapter. | |
| getTransport () | |
| Returns the transport object used for this connection adapter. | |
| getTransportHost () | |
| Returns the hostname or IPv4 address the underlying TeamSpeak3_Transport_Abstract object is connected to. | |
| getTransportPort () | |
| Returns the port number of the server the underlying TeamSpeak3_Transport_Abstract object is connected to. | |
Protected Member Functions | |
| syn () | |
| Connects the TeamSpeak3_Transport_Abstract object and performs initial actions on the remote server. | |
| initTransport ($options, $transport="TeamSpeak3_Transport_TCP") | |
| Loads the transport object object used for the connection adapter and passes a given set of options. | |
Protected Attributes | |
| $options = null | |
| $transport = null | |
Provides low-level methods for concrete adapters to communicate with a TeamSpeak 3 Server.
Definition at line 32 of file Abstract.php.
| TeamSpeak3_Adapter_Abstract::__construct | ( | array | $options | ) |
The TeamSpeak3_Adapter_Abstract constructor.
| array | $options |
Definition at line 54 of file Abstract.php.
References syn().
|
abstract |
The TeamSpeak3_Adapter_Abstract destructor.
|
abstractprotected |
Connects the TeamSpeak3_Transport_Abstract object and performs initial actions on the remote server.
| TeamSpeak3_Adapter_Exception |
Referenced by __construct(), and __wakeup().
| TeamSpeak3_Adapter_Abstract::__sleep | ( | ) |
Commit pending data.
Definition at line 85 of file Abstract.php.
| TeamSpeak3_Adapter_Abstract::__wakeup | ( | ) |
Reconnects to the remote server.
Definition at line 95 of file Abstract.php.
References syn().
| TeamSpeak3_Adapter_Abstract::getProfiler | ( | ) |
Returns the profiler timer used for this connection adapter.
Definition at line 105 of file Abstract.php.
References TeamSpeak3_Helper_Profiler\get().
Referenced by TeamSpeak3_Adapter_FileTransfer\download(), TeamSpeak3_Adapter_ServerQuery\getQueryRuntime(), TeamSpeak3_Adapter_FileTransfer\init(), TeamSpeak3_Adapter_ServerQuery\request(), and TeamSpeak3_Adapter_FileTransfer\upload().
| TeamSpeak3_Adapter_Abstract::getTransport | ( | ) |
Returns the transport object used for this connection adapter.
Definition at line 115 of file Abstract.php.
Referenced by TeamSpeak3_Adapter_FileTransfer\__destruct(), TeamSpeak3_Adapter_TSDNS\__destruct(), TeamSpeak3_Adapter_Blacklist\__destruct(), TeamSpeak3_Adapter_ServerQuery\__destruct(), TeamSpeak3_Adapter_Update\__destruct(), TeamSpeak3_Adapter_FileTransfer\download(), getTransportHost(), getTransportPort(), TeamSpeak3_Adapter_FileTransfer\init(), TeamSpeak3_Adapter_Blacklist\isBlacklisted(), TeamSpeak3_Adapter_FileTransfer\passthru(), TeamSpeak3_Adapter_ServerQuery\request(), TeamSpeak3_Adapter_TSDNS\resolve(), TeamSpeak3_Adapter_ServerQuery\syn(), TeamSpeak3_Adapter_Update\syn(), TeamSpeak3_Adapter_FileTransfer\upload(), and TeamSpeak3_Adapter_ServerQuery\wait().
|
protected |
Loads the transport object object used for the connection adapter and passes a given set of options.
| array | $options | |
| string | $transport |
| TeamSpeak3_Adapter_Exception |
Definition at line 129 of file Abstract.php.
Referenced by TeamSpeak3_Adapter_FileTransfer\syn(), TeamSpeak3_Adapter_TSDNS\syn(), TeamSpeak3_Adapter_Blacklist\syn(), TeamSpeak3_Adapter_ServerQuery\syn(), and TeamSpeak3_Adapter_Update\syn().
| TeamSpeak3_Adapter_Abstract::getTransportHost | ( | ) |
Returns the hostname or IPv4 address the underlying TeamSpeak3_Transport_Abstract object is connected to.
Definition at line 145 of file Abstract.php.
References getTransport().
| TeamSpeak3_Adapter_Abstract::getTransportPort | ( | ) |
Returns the port number of the server the underlying TeamSpeak3_Transport_Abstract object is connected to.
Definition at line 156 of file Abstract.php.
References getTransport().