TeamSpeak 3 PHP Framework
Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
|
Provides low-level methods for file transfer communication with a TeamSpeak 3 Server. More...
Public Member Functions | |
__destruct () | |
The TeamSpeak3_Adapter_FileTransfer destructor. More... | |
download ($ftkey, $size, $passthru=FALSE) | |
Returns the content of a downloaded file as a TeamSpeak3_Helper_String object. More... | |
syn () | |
Connects the TeamSpeak3_Transport_Abstract object and performs initial actions on the remote server. More... | |
upload ($ftkey, $seek, $data) | |
Sends the content of a file to the server. More... | |
Public Member Functions inherited from TeamSpeak3_Adapter_Abstract | |
__construct (array $options) | |
The TeamSpeak3_Adapter_Abstract constructor. More... | |
__destruct () | |
The TeamSpeak3_Adapter_Abstract destructor. More... | |
__sleep () | |
Commit pending data. More... | |
__wakeup () | |
Reconnects to the remote server. More... | |
getProfiler () | |
Returns the profiler timer used for this connection adapter. More... | |
getTransport () | |
Returns the transport object used for this connection adapter. More... | |
getTransportHost () | |
Returns the hostname or IPv4 address the underlying TeamSpeak3_Transport_Abstract object is connected to. More... | |
getTransportPort () | |
Returns the port number of the server the underlying TeamSpeak3_Transport_Abstract object is connected to. More... | |
Protected Member Functions | |
init ($ftkey) | |
Sends a valid file transfer key to the server to initialize the file transfer. More... | |
passthru ($size) | |
Outputs all remaining data on a TeamSpeak 3 file transfer stream using PHP's fpassthru() function. More... | |
Protected Member Functions inherited from TeamSpeak3_Adapter_Abstract | |
initTransport ($options, $transport="TeamSpeak3_Transport_TCP") | |
Loads the transport object object used for the connection adapter and passes a given set of options. More... | |
syn () | |
Connects the TeamSpeak3_Transport_Abstract object and performs initial actions on the remote server. More... | |
Provides low-level methods for file transfer communication with a TeamSpeak 3 Server.
__destruct | ( | ) |
The TeamSpeak3_Adapter_FileTransfer destructor.
download | ( | $ftkey, | |
$size, | |||
$passthru = FALSE |
|||
) |
Returns the content of a downloaded file as a TeamSpeak3_Helper_String object.
string | $ftkey | |
integer | $size | |
boolean | $passthru |
TeamSpeak3_Adapter_FileTransfer_Exception |
|
protected |
Sends a valid file transfer key to the server to initialize the file transfer.
string | $ftkey |
TeamSpeak3_Adapter_FileTransfer_Exception |
|
protected |
Outputs all remaining data on a TeamSpeak 3 file transfer stream using PHP's fpassthru() function.
integer | $size |
TeamSpeak3_Adapter_FileTransfer_Exception |
syn | ( | ) |
Connects the TeamSpeak3_Transport_Abstract object and performs initial actions on the remote server.
TeamSpeak3_Adapter_Exception |
upload | ( | $ftkey, | |
$seek, | |||
$data | |||
) |
Sends the content of a file to the server.
string | $ftkey | |
integer | $seek | |
string | $data |
TeamSpeak3_Adapter_FileTransfer_Exception |