Public Method Details |
connect |
|
public bool connect( string $host, [ integer $tcpport, integer $timeout ] )
|
| |
Initializes a connection to a TeamSpeak server.
|
| Parameter |
|
| string |
$host |
|
|
The hostname or IP where the TeamSpeak server is running. |
|
|
| integer |
$tcpport |
= >>51234<< |
|
The TCP port for the TCP interface. |
|
|
| integer |
$timeout |
= >>5<< |
|
The connection timeout in seconds. |
|
| Returns |
bool Returns TRUE if the connection was established else FALSE is returned. |
| See Also |
$last_errno, $last_errstr, close() |
|
close |
|
public void close( )
|
| |
Finishes a connection to a TeamSpeak server - should be handled like a destructor.
|
| Returns |
void |
|
general_informations |
|
public array general_informations( )
|
| |
Retrieves an associated array with general informations about the TeamSpeak server at all.
|
| Returns |
array General server informations, returns FALSE if there was an error. |
| See Also |
$last_errno, $last_errstr |
|
server_list |
|
public array server_list( )
|
| |
Retrieves a list of running virtual servers at the TeamSpeak server.
|
| Returns |
array Array with the server ports, returns FALSE if there was an error. |
| See Also |
$last_errno, $last_errstr |
|
server_informations |
|
public array server_informations( integer $port )
|
| |
Retrieves an associated array with general informations about a TeamSpeak virtual server.
|
| Parameter |
|
| integer |
$port |
|
|
The port of the virtual server to query for. |
|
| Returns |
array General server informations, returns FALSE if there was an error. |
| See Also |
$last_errno, $last_errstr, server_list() |
|
player_list |
|
public array player_list( integer $port )
|
| |
Retrieves an associated array with the current player list. The channel_id could be used with the result array of
result array from the channel_list function.
|
| Parameter |
|
| integer |
$port |
|
|
The port of the virtual server to query for. |
|
| Returns |
array Array with the actual players, returns FALSE if there was an error. |
| See Also |
$last_errno, $last_errstr, channel_list() |
|
channel_list |
|
public array channel_list( integer $port )
|
| |
Retrieves an associated array of the current channel list.
|
| Parameter |
|
| integer |
$port |
|
|
The port of the virtual server to query for. |
|
| Returns |
array Array with the actual players, returns FALSE if there was an error. |
| See Also |
$last_errno, $last_errstr |
|
channel_flags_short |
|
public string channel_flags_short( integer $flag )
|
| |
Converts the integer representation of the channel flags from channel_list() into a space seperated string of flag abreviations.
|
| Parameter |
|
| integer |
$flag |
|
|
The integer representation of the channel flags. |
|
| Returns |
string A space seperated string of abreviations of the channel flags. |
| See Also |
channel_list() |
|
channel_flags_long |
|
public string channel_flags_long( integer $flag )
|
| |
Converts the integer representation of the channel flags from channel_list() into a comma seperated string of flag names.
|
| Parameter |
|
| integer |
$flag |
|
|
The integer representation of the channel flags. |
|
| Returns |
string A comma seperated string of names of the channel flags. |
| See Also |
channel_list() |
|
player_flags_short |
|
public string player_flags_short( integer $flag )
|
| |
Converts the integer representation of the player flags from player_list() into a space seperated string of flag abreviations.
|
| Parameter |
|
| integer |
$flag |
|
|
The integer representation of the player flags. |
|
| Returns |
string A space seperated string of abreviations of the player flags. |
| See Also |
player_list() |
|
player_flags_long |
|
public string player_flags_long( integer $flag )
|
| |
Converts the integer representation of the player flags from player_list() into a comma seperated string of flag names.
|
| Parameter |
|
| integer |
$flag |
|
|
The integer representation of the player flags. |
|
| Returns |
string A comma seperated string of names of the player flags. |
| See Also |
player_list() |
|
player_pprivs_short |
|
public string player_pprivs_short( integer $flag )
|
| |
Converts the integer representation of the player privileges from player_list() into a space seperated string of privilege abreviations.
|
| Parameter |
|
| integer |
$flag |
|
|
The integer representation of the player privileges. |
|
| Returns |
string A space seperated string of abreviations of the player privileges. |
| See Also |
player_list() |
|
player_pprivs_long |
|
public string player_pprivs_long( integer $flag )
|
| |
Converts the integer representation of the player privileges from player_list() into a comma seperated string of privilege names.
|
| Parameter |
|
| integer |
$flag |
|
|
The integer representation of the player privileges. |
|
| Returns |
string A comma seperated string of names of the player privileges. |
| See Also |
player_list() |
|
player_cprivs_short |
|
public string player_cprivs_short( integer $flag )
|
| |
Converts the integer representation of the current player privileges from player_list() into a space seperated string of privilege abreviations.
|
| Parameter |
|
| integer |
$flag |
|
|
The integer representation of the current player privileges. |
|
| Returns |
string A space seperated string of abreviations of the player privileges. |
| See Also |
player_list() |
|
player_cprivs_long |
|
public string player_cprivs_long( integer $flag )
|
| |
Converts the integer representation of the current player privileges from player_list() into a comma seperated string of privilege names.
|
| Parameter |
|
| integer |
$flag |
|
|
The integer representation of the current player privileges. |
|
| Returns |
string A comma seperated string of names of the player privileges. |
| See Also |
player_list() |
|