Im using the TS Framework to read out some data through the Teamspeak Query in PHP. But the documentation is horrible!
To display all IPs from all clients I use this code:
foreach($ts3_VirtualServer->clientList() as $client)
{
// skip query clients
if($client["client_type"]) continue;
$clientInfo = $client->getInfo();
echo $clientInfo['connection_client_ip'] . "<br>";
}
(it's not the full code)
Where is the part in the documentation which says what getInfo()
returns?
It's not in the documentation since it's abstract / generalized for all node objects.
As you can see from TeamSpeak3_Node_Abstract::getInfo():
The data returned (formatted or directly) is
TeamSpeak3_Node_Abstract::$nodeInfo
.Searching GitHub repo for
nodeInfo =
shows how several of the (child) Nodes set their inheritednodeInfo
property.For example, we have TeamSpeak3_Node_Host::fetchNodeInfo() which uses properties returned by TeamSpeak3 Server Query commands
hostinfo
,instanceinfo
:Also, for example, TeamSpeak3_Node_Server::fetchNodeInfo() which uses properties returned by
serverinfo
command:As you can imagine, several TeamSpeak3 objects have a corresponding
*info
command which returns that object's properties.You can view several example results of these commands, along with properties returned, in the TeamSpeak3 Server Query manual. Here for example, the serverinfo command.
Also, at the end of the manual, you can find several list of object properties. For example, the virtual server properties.