ts3phpframework
|
Class describing a TeamSpeak 3 client and all it's parameters. More...
Public Member Functions | |
__construct (Server $server, array $info, string $index="clid") | |
modify (array $properties) | |
modifyDb (array $properties) | |
deleteDb () | |
infoDb () | |
message (string $msg) | |
move (int $cid, string $cpw=null) | |
kick (int $reasonid=TeamSpeak3::KICK_CHANNEL, string $reasonmsg=null) | |
poke (string $msg) | |
ban (int $timeseconds=null, string $reason=null) | |
customInfo () | |
customSet (string $ident, string $value) | |
customDelete (string $ident) | |
permOverview (int $cid) | |
permList (bool $permsid=false) | |
permAssign (int|array $permid, int|array $permvalue, array|bool $permskip=false) | |
permAssignByName ($permname, $permvalue, $permskip=false) | |
permRemove (int $permid) | |
permRemoveByName ($permname) | |
setChannelGroup (int $cid, int $cgid) | |
addServerGroup (int $sgid) | |
remServerGroup (int $sgid) | |
avatarGetName () | |
avatarDownload () | |
getClones () | |
hasOverwolf () | |
getBadges () | |
getRev () | |
memberOf () | |
iconDownload () | |
sendPluginCmd (string $plugin, string $data) | |
getUniqueId () | |
getIcon () | |
getSymbol () | |
__toString () | |
Public Member Functions inherited from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node | |
request (string $cmd, bool $throw=true) | |
prepare (string $cmd, array $params=[]) | |
execute ($cmd, array $params=[]) | |
getParent () | |
getId () | |
iconIsLocal (string $key) | |
iconGetName (string $key) | |
getClass (string $prefix="ts3_") | |
getViewer (ViewerInterface $viewer) | |
getInfo (bool $extend=true, bool $convert=false) | |
getProperty (string $property, mixed $default=null) | |
toString () | |
toArray () | |
__call (string $name, array $args) | |
__sleep () | |
count () | |
current () | |
getChildren () | |
hasChildren () | |
hasNext () | |
key () | |
valid () | |
next () | |
rewind () | |
offsetExists ($offset) | |
offsetGet ($offset) | |
offsetSet ($offset, $value) | |
offsetUnset ($offset) | |
__get ($offset) | |
__set ($offset, $value) |
Protected Member Functions | |
fetchNodeInfo () | |
Protected Member Functions inherited from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node | |
filterList (array $nodes=[], array $rules=[]) | |
setStorage (string $key, mixed $val) | |
getStorage (string $key, mixed $default=null) | |
delStorage (string $key) | |
fetchNodeList () | |
resetNodeInfo () | |
verifyNodeList () | |
resetNodeList () |
Additional Inherited Members | |
Protected Attributes inherited from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node | |
Node null ServerQuery | $parent = null |
array null | $server = null |
int | $nodeId = 0x00 |
array null | $nodeList = null |
array | $nodeInfo = [] |
array | $storage = [] |
Class describing a TeamSpeak 3 client and all it's parameters.
Definition at line 17 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::__construct | ( | Server | $server, |
array | $info, | ||
string | $index = "clid" ) |
Client constructor.
Server | $server | |
array | $info | |
string | $index |
ServerQueryException |
Definition at line 27 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::__toString | ( | ) |
Returns a string representation of this node.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 485 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::addServerGroup | ( | int | $sgid | ) |
Adds the client to the server group specified with $sgid.
integer | $sgid |
Definition at line 267 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::avatarDownload | ( | ) |
Downloads and returns the clients avatar file content.
AdapterException | |
HelperException | |
ServerQueryException |
Definition at line 301 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::avatarGetName | ( | ) |
Returns the possible name of the client's avatar.
Definition at line 288 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::ban | ( | int | $timeseconds = null, |
string | $reason = null ) |
Bans the client from the server. Please note that this will create two separate ban rules for the targeted clients IP address and his unique identifier.
integer | null | $timeseconds | |
string | null | $reason |
Definition at line 142 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::customDelete | ( | string | $ident | ) |
Removes a custom property from the client.
string | $ident |
Definition at line 175 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::customInfo | ( | ) |
Returns a list of custom properties for the client.
Definition at line 152 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::customSet | ( | string | $ident, |
string | $value ) |
Creates or updates a custom property for the client.
string | $ident | |
string | $value |
Definition at line 164 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::deleteDb | ( | ) |
Deletes the clients properties from the database.
Definition at line 71 of file Client.php.
|
protected |
AdapterException | @ignore |
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 425 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::getBadges | ( | ) |
Returns a list of equipped badges for this client.
Definition at line 340 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::getClones | ( | ) |
Returns a list of client connections using the same identity as this client.
AdapterException | |
ServerQueryException |
Definition at line 320 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::getIcon | ( | ) |
Returns the name of a possible icon to display the node object.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 449 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::getRev | ( | ) |
Returns the revision/build number from the clients version string.
Definition at line 358 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::getSymbol | ( | ) |
Returns a symbol representing the node.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 475 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::getUniqueId | ( | ) |
Returns a unique identifier for the node which can be used as an HTML property.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 439 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::hasOverwolf | ( | ) |
Returns TRUE if the client is using Overwolf.
Definition at line 330 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::iconDownload | ( | ) |
Downloads and returns the clients icon file content.
AdapterException | |
HelperException | |
ServerQueryException |
Definition at line 390 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::infoDb | ( | ) |
Returns a list of properties from the database for the client.
Definition at line 81 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::kick | ( | int | $reasonid = TeamSpeak3::KICK_CHANNEL, |
string | $reasonmsg = null ) |
Kicks the client from his currently joined channel or from the server.
integer | $reasonid | |
string | null | $reasonmsg |
Definition at line 118 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::memberOf | ( | ) |
Returns all server and channel groups the client is currently residing in.
Definition at line 368 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::message | ( | string | $msg | ) |
Sends a text message to the client.
string | $msg |
AdapterException | |
ServerQueryException |
Definition at line 94 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::modify | ( | array | $properties | ) |
Changes the clients properties using given properties.
array | $properties |
AdapterException | |
ServerQueryException |
Definition at line 47 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::modifyDb | ( | array | $properties | ) |
Changes the clients properties using given properties.
array | $properties |
Definition at line 61 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::move | ( | int | $cid, |
string | $cpw = null ) |
Moves the client to another channel.
integer | $cid | |
string | null | $cpw |
Definition at line 106 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::permAssign | ( | int|array | $permid, |
int|array | $permvalue, | ||
array|bool | $permskip = false ) |
Adds a set of specified permissions to the client. Multiple permissions can be added by providing the three parameters of each permission.
integer | integer[] | $permid | |
integer | integer[] | $permvalue | |
bool | bool[] | $permskip |
Definition at line 213 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::permAssignByName | ( | $permname, | |
$permvalue, | |||
$permskip = false ) |
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::permList | ( | bool | $permsid = false | ) |
Returns a list of permissions defined for the client.
boolean | $permsid |
Definition at line 199 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::permOverview | ( | int | $cid | ) |
Returns an array containing the permission overview of the client.
integer | $cid |
AdapterException | |
ServerQueryException |
Definition at line 188 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::permRemove | ( | int | $permid | ) |
Removes a set of specified permissions from a client. Multiple permissions can be removed at once.
integer | $permid |
Definition at line 234 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::permRemoveByName | ( | $permname | ) |
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::poke | ( | string | $msg | ) |
Sends a poke message to the client.
string | $msg |
Definition at line 129 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::remServerGroup | ( | int | $sgid | ) |
Removes the client from the server group specified with $sgid.
integer | $sgid |
Definition at line 278 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::sendPluginCmd | ( | string | $plugin, |
string | $data ) |
Sends a plugin command to the client.
string | $plugin | |
string | $data |
AdapterException | |
ServerQueryException |
Definition at line 416 of file Client.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\Client::setChannelGroup | ( | int | $cid, |
int | $cgid ) |
Sets the channel group of a client to the ID specified.
integer | $cid | |
integer | $cgid |
Definition at line 256 of file Client.php.