TeamSpeak 3 PHP Framework
Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
|
Provides methods to analyze and format a ServerQuery reply. More...
Public Member Functions | |
__construct (array $rpl, $cmd=null, TeamSpeak3_Node_Host $con=null, $exp=TRUE) | |
Creates a new TeamSpeak3_Adapter_ServerQuery_Reply object. More... | |
getCommandString () | |
Returns the command used to get this reply. More... | |
getErrorProperty ($ident, $default=null) | |
Returns the value for a specified error property. More... | |
getNotifyEvents () | |
Returns an array of events that occured before or during this reply. More... | |
toArray () | |
Returns a multi-dimensional array containing the reply splitted in multiple rows and columns. More... | |
toAssocArray ($ident) | |
Returns a multi-dimensional assoc array containing the reply splitted in multiple rows and columns. More... | |
toLines () | |
Returns the reply as a standard PHP array where each element represents one item. More... | |
toList () | |
Returns an array containing the reply splitted in multiple rows and columns. More... | |
toObjectArray () | |
Returns an array containing stdClass objects. More... | |
toString () | |
Returns the reply as an TeamSpeak3_Helper_String object. More... | |
toTable () | |
Returns the reply as a standard PHP array where each element represents one item in table format. More... | |
Protected Member Functions | |
fetchError ($err) | |
Parses a ServerQuery error and throws a TeamSpeak3_Adapter_ServerQuery_Exception object if there's an error. More... | |
fetchReply ($rpl) | |
Parses a ServerQuery reply and creates a TeamSpeak3_Helper_String object. More... | |
Provides methods to analyze and format a ServerQuery reply.
__construct | ( | array | $rpl, |
$cmd = null , |
|||
TeamSpeak3_Node_Host | $con = null , |
||
$exp = TRUE |
|||
) |
Creates a new TeamSpeak3_Adapter_ServerQuery_Reply object.
array | $rpl | |
string | $cmd | |
boolean | $exp | |
TeamSpeak3_Node_Host | $con |
|
protected |
Parses a ServerQuery error and throws a TeamSpeak3_Adapter_ServerQuery_Exception object if there's an error.
string | $err |
TeamSpeak3_Adapter_ServerQuery_Exception |
|
protected |
Parses a ServerQuery reply and creates a TeamSpeak3_Helper_String object.
string | $rpl |
getCommandString | ( | ) |
getErrorProperty | ( | $ident, | |
$default = null |
|||
) |
getNotifyEvents | ( | ) |
toArray | ( | ) |
Returns a multi-dimensional array containing the reply splitted in multiple rows and columns.
toAssocArray | ( | $ident | ) |
Returns a multi-dimensional assoc array containing the reply splitted in multiple rows and columns.
The identifier specified by key will be used while indexing the array.
$key |
toLines | ( | ) |
Returns the reply as a standard PHP array where each element represents one item.
toList | ( | ) |
Returns an array containing the reply splitted in multiple rows and columns.
toObjectArray | ( | ) |
Returns an array containing stdClass objects.
toString | ( | ) |
Returns the reply as an TeamSpeak3_Helper_String object.
toTable | ( | ) |
Returns the reply as a standard PHP array where each element represents one item in table format.