TeamSpeak 3 PHP Framework
Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
|
Class describing a TeamSpeak 3 virtual server and all it's parameters. More...
Public Member Functions | |
__construct (TeamSpeak3_Node_Host $host, array $info, $index="virtualserver_id") | |
The TeamSpeak3_Node_Server constructor. More... | |
__toString () | |
Returns a string representation of this node. More... | |
banCreate (array $rules, $timeseconds=null, $reason=null) | |
Adds a new ban rule on the selected virtual server. More... | |
banDelete ($banid) | |
Deletes the specified ban rule from the server. More... | |
banList () | |
Returns a list of active bans on the selected virtual server. More... | |
banListClear () | |
Deletes all active ban rules from the server. More... | |
channelClientPermAssign ($cid, $cldbid, $permid, $permvalue) | |
Adds a set of specified permissions to a client in a specific channel. More... | |
channelClientPermList ($cid, $cldbid, $permsid=FALSE) | |
Returns a list of permissions defined for a client in a specific channel. More... | |
channelClientPermRemove ($cid, $cldbid, $permid) | |
Removes a set of specified permissions from a client in a specific channel. More... | |
channelCreate (array $properties) | |
Creates a new channel using given properties and returns the new ID. More... | |
channelDelete ($cid, $force=FALSE) | |
Deletes the channel specified by $cid. More... | |
channelDirCreate ($cid, $cpw="", $dirname="/") | |
Creates new directory in a channels file repository. More... | |
channelFileDelete ($cid, $cpw="", $name="/") | |
Deletes one or more files stored in a channels file repository. More... | |
channelFileInfo ($cid, $cpw="", $name="/") | |
Returns detailed information about the specified file stored in a channels file repository. More... | |
channelFileList ($cid, $cpw="", $path="/", $recursive=FALSE) | |
Returns a list of files and directories stored in the specified channels file repository. More... | |
channelFileRename ($cid, $cpw="", $oldname="/", $newname="/", $tcid=null, $tcpw=null) | |
Renames a file in a channels file repository. More... | |
channelGetById ($cid) | |
Returns the TeamSpeak3_Node_Channel object matching the given ID. More... | |
channelGetByName ($name) | |
Returns the TeamSpeak3_Node_Channel object matching the given name. More... | |
channelGetDefault () | |
Returns the TeamSpeak3_Node_Channel object representing the default channel. More... | |
channelGetLevel ($cid) | |
Returns the level of a channel. More... | |
channelGetPathway ($cid) | |
Returns the pathway of a channel which can be used as a clients default channel. More... | |
channelGroupClientList ($cgid=null, $cid=null, $cldbid=null, $resolve=FALSE) | |
Returns all the client and/or channel IDs currently assigned to channel groups. More... | |
channelGroupCopy ($scgid, $name=null, $tcgid=0, $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
Creates a copy of an existing channel group specified by $scgid and returns the new groups ID. More... | |
channelGroupCreate ($name, $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
Creates a new channel group using the name specified with $name and returns its ID. More... | |
channelGroupDelete ($cgid, $force=FALSE) | |
Deletes the channel group specified with $cgid. More... | |
channelGroupGetById ($cgid) | |
Returns the TeamSpeak3_Node_Channelgroup object matching the given ID. More... | |
channelGroupGetByName ($name, $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
Returns the TeamSpeak3_Node_Channelgroup object matching the given name. More... | |
channelGroupList (array $filter=array()) | |
Returns a list of channel groups available. More... | |
channelGroupListReset () | |
Resets the list of channel groups. More... | |
channelGroupPermAssign ($cgid, $permid, $permvalue) | |
Adds a set of specified permissions to the channel group specified. More... | |
channelGroupPermList ($cgid, $permsid=FALSE) | |
Returns a list of permissions assigned to the channel group specified. More... | |
channelGroupPermRemove ($cgid, $permid) | |
Removes a set of specified permissions from the channel group specified with $cgid. More... | |
channelGroupRename ($cgid, $name) | |
Renames the channel group specified with $cgid. More... | |
channelIsSpacer (TeamSpeak3_Node_Channel $channel) | |
Returns TRUE if the given TeamSpeak3_Node_Channel object is a spacer. More... | |
channelList (array $filter=array()) | |
Returns an array filled with TeamSpeak3_Node_Channel objects. More... | |
channelListReset () | |
Resets the list of channels online. More... | |
channelMove ($cid, $pid, $order=null) | |
Moves the channel specified by $cid to the parent channel specified with $pid. More... | |
channelPermAssign ($cid, $permid, $permvalue) | |
Adds a set of specified permissions to a channel. More... | |
channelPermList ($cid, $permsid=FALSE) | |
Returns a list of permissions defined for a specific channel. More... | |
channelPermRemove ($cid, $permid) | |
Removes a set of specified permissions from a channel. More... | |
channelSpacerCreate ($ident, $type=TeamSpeak3::SPACER_SOLIDLINE, $align=TeamSpeak3::SPACER_ALIGN_REPEAT, $order=null, $maxclients=0) | |
Creates a new channel spacer and returns the new ID. More... | |
channelSpacerGetAlign ($cid) | |
Returns the possible alignment of a channel spacer. More... | |
channelSpacerGetType ($cid) | |
Returns the possible type of a channel spacer. More... | |
clientBan ($clid, $timeseconds=null, $reason=null) | |
Bans the client specified with ID $clid from the server. More... | |
clientCount () | |
Returns the number of regular clients online. More... | |
clientCountDb () | |
Returns the number of client identities known by the virtual server. More... | |
clientDeleteDb ($cldbid) | |
Deletes a clients properties from the database. More... | |
clientFind ($pattern) | |
Returns a list of clients matching a given name pattern. More... | |
clientFindDb ($pattern, $uid=FALSE) | |
Returns a list of client database IDs matching a given pattern. More... | |
clientGetByDbid ($dbid) | |
Returns the TeamSpeak3_Node_Client object matching the given database ID. More... | |
clientGetById ($clid) | |
Returns the TeamSpeak3_Node_Client object matching the given ID. More... | |
clientGetByName ($name) | |
Returns the TeamSpeak3_Node_Client object matching the given name. More... | |
clientGetByUid ($uid) | |
Returns the TeamSpeak3_Node_Client object matching the given unique identifier. More... | |
clientGetIdsByUid ($cluid) | |
Returns an array containing a list of active client connections using the unique identifier specified with $cluid. More... | |
clientGetNameByDbid ($cldbid) | |
Returns an array containing the last known nickname and the unique identifier of the client matching the database ID specified with $cldbid. More... | |
clientGetNameByUid ($cluid) | |
Returns an array containing the last known nickname and the database ID of the client matching the unique identifier specified with $cluid. More... | |
clientGetServerGroupsByDbid ($cldbid) | |
Returns an array containing the names and IDs of all server groups the client specified with $cldbid is is currently residing in. More... | |
clientInfoDb ($cldbid) | |
Returns a list of properties from the database for the client specified by $cldbid. More... | |
clientKick ($clid, $reasonid=TeamSpeak3::KICK_CHANNEL, $reasonmsg=null) | |
Kicks one or more clients from their currently joined channel or from the server. More... | |
clientList (array $filter=array()) | |
Returns an array filled with TeamSpeak3_Node_Client objects. More... | |
clientListDb ($offset=null, $limit=null) | |
Returns a list of client identities known by the virtual server. More... | |
clientListReset () | |
Resets the list of clients online. More... | |
clientModifyDb ($cldbid, array $properties) | |
Changes the clients properties using given properties. More... | |
clientMove ($clid, $cid, $cpw=null) | |
Moves a client to another channel. More... | |
clientPermAssign ($cldbid, $permid, $permvalue, $permskip=FALSE) | |
Adds a set of specified permissions to a client. More... | |
clientPermList ($cldbid, $permsid=FALSE) | |
Returns a list of permissions defined for a client. More... | |
clientPermRemove ($cldbid, $permid) | |
Removes a set of specified permissions from a client. More... | |
clientPoke ($clid, $msg) | |
Sends a poke message to a client. More... | |
clientSetChannelGroup ($cldbid, $cid, $cgid) | |
Sets the channel group of a client to the ID specified. More... | |
complaintCreate ($tcldbid, $message) | |
Submits a complaint about the client with database ID $tcldbid to the server. More... | |
complaintDelete ($tcldbid, $fcldbid) | |
Deletes the complaint about the client with ID $tcldbid submitted by the client with ID $fcldbid from the server. More... | |
complaintList ($tcldbid=null) | |
Returns a list of complaints on the selected virtual server. More... | |
complaintListClear ($tcldbid) | |
Deletes all active complaints about the client with database ID $tcldbid from the server. More... | |
connectionInfo () | |
Returns detailed connection information of the virtual server. More... | |
customInfo ($cldbid) | |
Returns a list of custom properties for the client specified by $cldbid. More... | |
customSearch ($ident, $pattern="%") | |
Returns a list of custom client properties specified by $ident. More... | |
delete () | |
Deletes the virtual server. More... | |
getIcon () | |
Returns the name of a possible icon to display the node object. More... | |
getSymbol () | |
Returns a symbol representing the node. More... | |
getUniqueId () | |
Returns a unique identifier for the node which can be used as a HTML property. More... | |
iconDownload () | |
Downloads and returns the servers icon file content. More... | |
iconUpload ($data) | |
Uploads a given icon file content to the server and returns the ID of the icon. More... | |
isOffline () | |
Returns TRUE if the virtual server is offline. More... | |
isOnline () | |
Returns TRUE if the virtual server is online. More... | |
logAdd ($logmsg, $loglevel=TeamSpeak3::LOGLEVEL_INFO) | |
Writes a custom entry into the virtual server log. More... | |
logView ($lines=30, $begin_pos=null, $reverse=null, $instance=null) | |
Displays a specified number of entries (1-100) from the servers log. More... | |
message ($msg) | |
Sends a text message to all clients on the virtual server. More... | |
messageCreate ($cluid, $subject, $message) | |
Sends an offline message to the client specified by $cluid. More... | |
messageDelete ($msgid) | |
Deletes an existing offline message with ID $msgid from your inbox. More... | |
messageList () | |
Returns a list of offline messages you've received. More... | |
messageRead ($msgid, $flag_read=TRUE) | |
Returns an existing offline message with ID $msgid from your inbox. More... | |
modify (array $properties) | |
Changes the virtual server configuration using given properties. More... | |
notifyRegister ($event, $id=0) | |
Registers for a specified category of events on a virtual server to receive notification messages. More... | |
notifyUnregister () | |
Unregisters all events previously registered with servernotifyregister so you will no longer receive notification messages. More... | |
permRemoveAny ($permid) | |
Removes any assignment of the permission specified with $permid on the selected virtual server and returns the number of removed assignments on success. More... | |
permReset () | |
Restores the default permission settings on the virtual server and returns a new initial administrator privilege key. More... | |
privilegeKeyCreate ($type=TeamSpeak3::TOKEN_SERVERGROUP, $id1, $id2=0, $description=null, $customset=null) | |
Creates a new privilege key (token) and returns the key. More... | |
privilegeKeyDelete ($token) | |
Deletes a token specified by key $token. More... | |
privilegeKeyList ($resolve=FALSE) | |
Returns a list of privilege keys (tokens) available. More... | |
privilegeKeyUse ($token) | |
Use a token key gain access to a server or channel group. More... | |
request ($cmd, $throw=TRUE) | |
Sends a prepared command to the server and returns the result. More... | |
selfPermOverview () | |
Returns an array containing the permission overview of your own client. More... | |
selfUpdate (array $properties) | |
Changes the properties of your own client connection. More... | |
selfUpdateLogin ($username) | |
Updates your own ServerQuery login credentials using a specified username. More... | |
sendPluginCmd ($plugin, $data) | |
Sends a plugin command to all clients connected to the server. More... | |
serverGroupClientAdd ($sgid, $cldbid) | |
Adds a client to the server group specified. More... | |
serverGroupClientDel ($sgid, $cldbid) | |
Removes a client from the server group specified. More... | |
serverGroupClientList ($sgid) | |
Returns a list of clients assigned to the server group specified. More... | |
serverGroupCopy ($ssgid, $name=null, $tsgid=0, $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
Creates a copy of an existing server group specified by $ssgid and returns the new groups ID. More... | |
serverGroupCreate ($name, $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
Creates a new server group using the name specified with $name and returns its ID. More... | |
serverGroupDelete ($sgid, $force=FALSE) | |
Deletes the server group specified with $sgid. More... | |
serverGroupGetById ($sgid) | |
Returns the TeamSpeak3_Node_Servergroup object matching the given ID. More... | |
serverGroupGetByName ($name, $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
Returns the TeamSpeak3_Node_Servergroup object matching the given name. More... | |
serverGroupGetProfiles ($type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
Returns an ordered array of regular server groups available based on a pre-defined set of rules. More... | |
serverGroupIdentify ($mode=TeamSpeak3::GROUP_IDENTIFIY_STRONGEST, $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
Tries to identify the post powerful/weakest server group on the virtual server and returns the ID. More... | |
serverGroupList (array $filter=array()) | |
Returns a list of server groups available. More... | |
serverGroupListReset () | |
Resets the list of server groups. More... | |
serverGroupPermAssign ($sgid, $permid, $permvalue, $permnegated=FALSE, $permskip=FALSE) | |
Adds a set of specified permissions to the server group specified. More... | |
serverGroupPermList ($sgid, $permsid=FALSE) | |
Returns a list of permissions assigned to the server group specified. More... | |
serverGroupPermRemove ($sgid, $permid) | |
Removes a set of specified permissions from the server group specified with $sgid. More... | |
serverGroupRename ($sgid, $name) | |
Renames the server group specified with $sgid. More... | |
snapshotCreate ($mode=TeamSpeak3::SNAPSHOT_STRING) | |
Creates and returns snapshot data for the selected virtual server. More... | |
snapshotDeploy ($data, $mode=TeamSpeak3::SNAPSHOT_STRING) | |
Deploys snapshot data on the selected virtual server. More... | |
start () | |
Starts the virtual server. More... | |
stop () | |
Stops the virtual server. More... | |
tempPasswordCreate ($pw, $duration, $tcid=0, $tcpw="", $desc="") | |
Sets a new temporary server password specified with $pw. More... | |
tempPasswordDelete ($pw) | |
Deletes the temporary server password specified with $pw. More... | |
tempPasswordList ($resolve=FALSE) | |
Returns a list of temporary server passwords. More... | |
tokenCreate ($type=TeamSpeak3::TOKEN_SERVERGROUP, $id1, $id2=0, $description=null, $customset=null) | |
Alias for privilegeKeyCreate(). More... | |
tokenDelete ($token) | |
Alias for privilegeKeyDelete(). More... | |
tokenList ($translate=FALSE) | |
Alias for privilegeKeyList(). More... | |
tokenUse ($token) | |
Alias for privilegeKeyUse(). More... | |
transferInitDownload ($clientftfid, $cid, $name, $cpw="", $seekpos=0) | |
Initializes a file transfer download. More... | |
transferInitUpload ($clientftfid, $cid, $name, $size, $cpw="", $overwrite=FALSE, $resume=FALSE) | |
Initializes a file transfer upload. More... | |
transferList () | |
Displays a list of running file transfers on the selected virtual server. More... | |
transferStop ($serverftfid, $delete=FALSE) | |
Stops the running file transfer with server-side ID $serverftfid. More... | |
Public Member Functions inherited from TeamSpeak3_Node_Abstract | |
__call ($name, array $args) | |
Called whenever we're using an unknown method. More... | |
__get ($offset) | |
__set ($offset, $value) | |
__sleep () | |
Commit pending data. More... | |
__toString () | |
Returns a string representation of this node. More... | |
count () | |
current () | |
execute ($cmd, array $params=array()) | |
Prepares and executes a ServerQuery command and returns the result. More... | |
getChildren () | |
getClass ($prefix="ts3_") | |
Returns a possible classname for the node which can be used as a HTML property. More... | |
getIcon () | |
Returns the name of a possible icon to display the node object. More... | |
getId () | |
Returns the primary ID of the current node. More... | |
getInfo ($extend=TRUE, $convert=FALSE) | |
Returns all information available on this node. More... | |
getParent () | |
Returns the parent object of the current node. More... | |
getProperty ($property, $default=null) | |
Returns the specified property or a pre-defined default value from the node info array. More... | |
getSymbol () | |
Returns a symbol representing the node. More... | |
getUniqueId () | |
Returns a unique identifier for the node which can be used as a HTML property. More... | |
getViewer (TeamSpeak3_Viewer_Interface $viewer) | |
Returns the HTML code to display a TeamSpeak 3 viewer. More... | |
hasChildren () | |
hasNext () | |
iconGetName ($key) | |
Returns the internal path of the node icon. More... | |
iconIsLocal ($key) | |
Returns TRUE if the node icon has a local source. More... | |
key () | |
next () | |
offsetExists ($offset) | |
offsetGet ($offset) | |
offsetSet ($offset, $value) | |
offsetUnset ($offset) | |
prepare ($cmd, array $params=array()) | |
Uses given parameters and returns a prepared ServerQuery command. More... | |
request ($cmd, $throw=TRUE) | |
Sends a prepared command to the server and returns the result. More... | |
rewind () | |
toArray () | |
Returns an assoc array filled with current node info properties. More... | |
toString () | |
Returns a string representation of this node. More... | |
valid () | |
Protected Member Functions | |
fetchNodeInfo () | |
fetchNodeList () | |
Protected Member Functions inherited from TeamSpeak3_Node_Abstract | |
delStorage ($key) | |
Deletes data from the internal storage array. More... | |
fetchNodeInfo () | |
fetchNodeList () | |
filterList (array $nodes=array(), array $rules=array()) | |
Filters given node list array using specified filter rules. More... | |
getStorage ($key, $default=null) | |
Returns data from the internal storage array. More... | |
resetNodeInfo () | |
resetNodeList () | |
setStorage ($key, $val) | |
Writes data to the internal storage array. More... | |
verifyNodeList () | |
Static Protected Member Functions | |
static | sortClientList (TeamSpeak3_Node_Client $a, TeamSpeak3_Node_Client $b) |
Internal callback funtion for sorting of client objects. More... | |
static | sortFileList (array $a, array $b) |
Internal callback funtion for sorting of file list items. More... | |
static | sortGroupList (TeamSpeak3_Node_Abstract $a, TeamSpeak3_Node_Abstract $b) |
Internal callback funtion for sorting of group objects. More... | |
Protected Attributes | |
$cgroupList = null | |
$channelList = null | |
$clientList = null | |
$sgroupList = null | |
Protected Attributes inherited from TeamSpeak3_Node_Abstract | |
$nodeId = 0x00 | |
$nodeInfo = array() | |
$nodeList = null | |
$parent = null | |
$server = null | |
$storage = array() | |
Class describing a TeamSpeak 3 virtual server and all it's parameters.
__construct | ( | TeamSpeak3_Node_Host | $host, |
array | $info, | ||
$index = "virtualserver_id" |
|||
) |
The TeamSpeak3_Node_Server constructor.
TeamSpeak3_Node_Host | $host | |
array | $info | |
string | $index |
TeamSpeak3_Adapter_ServerQuery_Exception |
__toString | ( | ) |
banCreate | ( | array | $rules, |
$timeseconds = null , |
|||
$reason = null |
|||
) |
Adds a new ban rule on the selected virtual server.
All parameters are optional but at least one of the following rules must be set: ip, name, or uid.
array | $rules | |
integer | $timeseconds | |
string | $reason |
banDelete | ( | $banid | ) |
Deletes the specified ban rule from the server.
integer | $banid |
banList | ( | ) |
Returns a list of active bans on the selected virtual server.
banListClear | ( | ) |
Deletes all active ban rules from the server.
channelClientPermAssign | ( | $cid, | |
$cldbid, | |||
$permid, | |||
$permvalue | |||
) |
Adds a set of specified permissions to a client in a specific channel.
Multiple permissions can be added by providing the two parameters of each permission.
integer | $cid | |
integer | $cldbid | |
integer | $permid | |
integer | $permvalue |
channelClientPermList | ( | $cid, | |
$cldbid, | |||
$permsid = FALSE |
|||
) |
Returns a list of permissions defined for a client in a specific channel.
integer | $cid | |
integer | $cldbid | |
boolean | $permsid |
channelClientPermRemove | ( | $cid, | |
$cldbid, | |||
$permid | |||
) |
Removes a set of specified permissions from a client in a specific channel.
Multiple permissions can be removed at once.
integer | $cid | |
integer | $cldbid | |
integer | $permid |
channelCreate | ( | array | $properties | ) |
Creates a new channel using given properties and returns the new ID.
array | $properties |
channelDelete | ( | $cid, | |
$force = FALSE |
|||
) |
Deletes the channel specified by $cid.
integer | $cid | |
boolean | $force |
channelDirCreate | ( | $cid, | |
$cpw = "" , |
|||
$dirname = "/" |
|||
) |
Creates new directory in a channels file repository.
integer | $cid | |
string | $cpw | |
string | $dirname |
channelFileDelete | ( | $cid, | |
$cpw = "" , |
|||
$name = "/" |
|||
) |
Deletes one or more files stored in a channels file repository.
integer | $cid | |
string | $cpw | |
string | $name |
channelFileInfo | ( | $cid, | |
$cpw = "" , |
|||
$name = "/" |
|||
) |
Returns detailed information about the specified file stored in a channels file repository.
integer | $cid | |
string | $cpw | |
string | $name |
channelFileList | ( | $cid, | |
$cpw = "" , |
|||
$path = "/" , |
|||
$recursive = FALSE |
|||
) |
Returns a list of files and directories stored in the specified channels file repository.
integer | $cid | |
string | $cpw | |
string | $path | |
boolean | $recursive |
channelFileRename | ( | $cid, | |
$cpw = "" , |
|||
$oldname = "/" , |
|||
$newname = "/" , |
|||
$tcid = null , |
|||
$tcpw = null |
|||
) |
Renames a file in a channels file repository.
If the two parameters $tcid and $tcpw are specified, the file will be moved into another channels file repository.
integer | $cid | |
string | $cpw | |
string | $oldname | |
string | $newname | |
integer | $tcid | |
string | $tcpw |
channelGetById | ( | $cid | ) |
Returns the TeamSpeak3_Node_Channel object matching the given ID.
integer | $cid |
TeamSpeak3_Adapter_ServerQuery_Exception |
channelGetByName | ( | $name | ) |
Returns the TeamSpeak3_Node_Channel object matching the given name.
string | $name |
TeamSpeak3_Adapter_ServerQuery_Exception |
channelGetDefault | ( | ) |
Returns the TeamSpeak3_Node_Channel object representing the default channel.
TeamSpeak3_Adapter_ServerQuery_Exception |
channelGetLevel | ( | $cid | ) |
Returns the level of a channel.
integer | $cid |
channelGetPathway | ( | $cid | ) |
Returns the pathway of a channel which can be used as a clients default channel.
integer | $cid |
channelGroupClientList | ( | $cgid = null , |
|
$cid = null , |
|||
$cldbid = null , |
|||
$resolve = FALSE |
|||
) |
Returns all the client and/or channel IDs currently assigned to channel groups.
All three parameters are optional so you're free to choose the most suitable combination for your requirements.
integer | $cgid | |
integer | $cid | |
integer | $cldbid | |
boolean | $resolve |
channelGroupCopy | ( | $scgid, | |
$name = null , |
|||
$tcgid = 0 , |
|||
$type = TeamSpeak3::GROUP_DBTYPE_REGULAR |
|||
) |
Creates a copy of an existing channel group specified by $scgid and returns the new groups ID.
integer | $scgid | |
string | $name | |
integer | $tcgid | |
integer | $type |
channelGroupCreate | ( | $name, | |
$type = TeamSpeak3::GROUP_DBTYPE_REGULAR |
|||
) |
Creates a new channel group using the name specified with $name and returns its ID.
string | $name | |
integer | $type |
channelGroupDelete | ( | $cgid, | |
$force = FALSE |
|||
) |
Deletes the channel group specified with $cgid.
If $force is set to 1, the channel group will be deleted even if there are clients within.
integer | $sgid | |
boolean | $force |
channelGroupGetById | ( | $cgid | ) |
Returns the TeamSpeak3_Node_Channelgroup object matching the given ID.
integer | $cgid |
TeamSpeak3_Adapter_ServerQuery_Exception |
channelGroupGetByName | ( | $name, | |
$type = TeamSpeak3::GROUP_DBTYPE_REGULAR |
|||
) |
Returns the TeamSpeak3_Node_Channelgroup object matching the given name.
string | $name | |
integer | $type |
TeamSpeak3_Adapter_ServerQuery_Exception |
channelGroupList | ( | array | $filter = array() | ) |
Returns a list of channel groups available.
array | $filter |
channelGroupListReset | ( | ) |
channelGroupPermAssign | ( | $cgid, | |
$permid, | |||
$permvalue | |||
) |
Adds a set of specified permissions to the channel group specified.
Multiple permissions can be added by providing the two parameters of each permission in separate arrays.
integer | $cgid | |
integer | $permid | |
integer | $permvalue |
channelGroupPermList | ( | $cgid, | |
$permsid = FALSE |
|||
) |
Returns a list of permissions assigned to the channel group specified.
integer | $cgid | |
boolean | $permsid |
channelGroupPermRemove | ( | $cgid, | |
$permid | |||
) |
Removes a set of specified permissions from the channel group specified with $cgid.
Multiple permissions can be removed at once.
integer | $cgid | |
integer | $permid |
channelGroupRename | ( | $cgid, | |
$name | |||
) |
Renames the channel group specified with $cgid.
integer | $cgid | |
string | $name |
channelIsSpacer | ( | TeamSpeak3_Node_Channel | $channel | ) |
Returns TRUE if the given TeamSpeak3_Node_Channel object is a spacer.
TeamSpeak3_Node_Channel | $channel |
channelList | ( | array | $filter = array() | ) |
Returns an array filled with TeamSpeak3_Node_Channel objects.
array | $filter |
channelListReset | ( | ) |
Resets the list of channels online.
channelMove | ( | $cid, | |
$pid, | |||
$order = null |
|||
) |
Moves the channel specified by $cid to the parent channel specified with $pid.
integer | $cid | |
integer | $pid | |
integer | $order |
channelPermAssign | ( | $cid, | |
$permid, | |||
$permvalue | |||
) |
Adds a set of specified permissions to a channel.
Multiple permissions can be added by providing the two parameters of each permission.
integer | $cid | |
integer | $permid | |
integer | $permvalue |
channelPermList | ( | $cid, | |
$permsid = FALSE |
|||
) |
Returns a list of permissions defined for a specific channel.
integer | $cid | |
boolean | $permsid |
channelPermRemove | ( | $cid, | |
$permid | |||
) |
Removes a set of specified permissions from a channel.
Multiple permissions can be removed at once.
integer | $cid | |
integer | $permid |
channelSpacerCreate | ( | $ident, | |
$type = TeamSpeak3::SPACER_SOLIDLINE , |
|||
$align = TeamSpeak3::SPACER_ALIGN_REPEAT , |
|||
$order = null , |
|||
$maxclients = 0 |
|||
) |
Creates a new channel spacer and returns the new ID.
The first parameter $ident is used to create a unique spacer name on the virtual server.
string | $ident | |
mixed | $type | |
integer | $align | |
integer | $order | |
integer | $maxclients |
TeamSpeak3_Adapter_ServerQuery_Exception |
channelSpacerGetAlign | ( | $cid | ) |
Returns the possible alignment of a channel spacer.
integer | $cid |
TeamSpeak3_Adapter_ServerQuery_Exception |
channelSpacerGetType | ( | $cid | ) |
Returns the possible type of a channel spacer.
integer | $cid |
TeamSpeak3_Adapter_ServerQuery_Exception |
clientBan | ( | $clid, | |
$timeseconds = null , |
|||
$reason = null |
|||
) |
Bans the client specified with ID $clid from the server.
Please note that this will create two separate ban rules for the targeted clients IP address and his unique identifier.
integer | $clid | |
integer | $timeseconds | |
string | $reason |
clientCount | ( | ) |
Returns the number of regular clients online.
clientCountDb | ( | ) |
Returns the number of client identities known by the virtual server.
clientDeleteDb | ( | $cldbid | ) |
Deletes a clients properties from the database.
string | $cldbid |
clientFind | ( | $pattern | ) |
Returns a list of clients matching a given name pattern.
string | $pattern |
clientFindDb | ( | $pattern, | |
$uid = FALSE |
|||
) |
Returns a list of client database IDs matching a given pattern.
You can either search for a clients last known nickname or his unique identity by using the $uid option.
string | $pattern | |
boolean | $uid |
clientGetByDbid | ( | $dbid | ) |
Returns the TeamSpeak3_Node_Client object matching the given database ID.
integer | $dbid |
TeamSpeak3_Adapter_ServerQuery_Exception |
clientGetById | ( | $clid | ) |
Returns the TeamSpeak3_Node_Client object matching the given ID.
integer | $clid |
TeamSpeak3_Adapter_ServerQuery_Exception |
clientGetByName | ( | $name | ) |
Returns the TeamSpeak3_Node_Client object matching the given name.
string | $name |
TeamSpeak3_Adapter_ServerQuery_Exception |
clientGetByUid | ( | $uid | ) |
Returns the TeamSpeak3_Node_Client object matching the given unique identifier.
string | $uid |
TeamSpeak3_Adapter_ServerQuery_Exception |
clientGetIdsByUid | ( | $cluid | ) |
Returns an array containing a list of active client connections using the unique identifier specified with $cluid.
string | $cluid |
clientGetNameByDbid | ( | $cldbid | ) |
Returns an array containing the last known nickname and the unique identifier of the client matching the database ID specified with $cldbid.
string | $cldbid |
clientGetNameByUid | ( | $cluid | ) |
Returns an array containing the last known nickname and the database ID of the client matching the unique identifier specified with $cluid.
string | $cluid |
clientGetServerGroupsByDbid | ( | $cldbid | ) |
Returns an array containing the names and IDs of all server groups the client specified with $cldbid is is currently residing in.
string | $cldbid |
clientInfoDb | ( | $cldbid | ) |
Returns a list of properties from the database for the client specified by $cldbid.
integer | $cldbid |
clientKick | ( | $clid, | |
$reasonid = TeamSpeak3::KICK_CHANNEL , |
|||
$reasonmsg = null |
|||
) |
Kicks one or more clients from their currently joined channel or from the server.
integer | $clid | |
integer | $reasonid | |
string | $reasonmsg |
clientList | ( | array | $filter = array() | ) |
Returns an array filled with TeamSpeak3_Node_Client objects.
array | $filter |
clientListDb | ( | $offset = null , |
|
$limit = null |
|||
) |
Returns a list of client identities known by the virtual server.
By default, the server spits out 25 entries at once.
integer | $offset | |
integer | $limit |
clientListReset | ( | ) |
Resets the list of clients online.
clientModifyDb | ( | $cldbid, | |
array | $properties | ||
) |
Changes the clients properties using given properties.
string | $cldbid | |
array | $properties |
clientMove | ( | $clid, | |
$cid, | |||
$cpw = null |
|||
) |
Moves a client to another channel.
integer | $clid | |
integer | $cid | |
string | $cpw |
clientPermAssign | ( | $cldbid, | |
$permid, | |||
$permvalue, | |||
$permskip = FALSE |
|||
) |
Adds a set of specified permissions to a client.
Multiple permissions can be added by providing the three parameters of each permission.
integer | $cldbid | |
integer | $permid | |
integer | $permvalue | |
integer | $permskip |
clientPermList | ( | $cldbid, | |
$permsid = FALSE |
|||
) |
Returns a list of permissions defined for a client.
integer | $cldbid | |
boolean | $permsid |
clientPermRemove | ( | $cldbid, | |
$permid | |||
) |
Removes a set of specified permissions from a client.
Multiple permissions can be removed at once.
integer | $cldbid | |
integer | $permid |
clientPoke | ( | $clid, | |
$msg | |||
) |
Sends a poke message to a client.
integer | $clid | |
string | $msg |
clientSetChannelGroup | ( | $cldbid, | |
$cid, | |||
$cgid | |||
) |
Sets the channel group of a client to the ID specified.
integer | $cldbid | |
integer | $cid | |
integer | $cgid |
complaintCreate | ( | $tcldbid, | |
$message | |||
) |
Submits a complaint about the client with database ID $tcldbid to the server.
integer | $tcldbid | |
string | $message |
complaintDelete | ( | $tcldbid, | |
$fcldbid | |||
) |
Deletes the complaint about the client with ID $tcldbid submitted by the client with ID $fcldbid from the server.
integer | $tcldbid | |
integer | $fcldbid |
complaintList | ( | $tcldbid = null | ) |
Returns a list of complaints on the selected virtual server.
If $tcldbid is specified, only complaints about the targeted client will be shown.
integer | $tcldbid |
complaintListClear | ( | $tcldbid | ) |
Deletes all active complaints about the client with database ID $tcldbid from the server.
integer | $tcldbid |
connectionInfo | ( | ) |
Returns detailed connection information of the virtual server.
customInfo | ( | $cldbid | ) |
Returns a list of custom properties for the client specified by $cldbid.
integer | $cldbid |
customSearch | ( | $ident, | |
$pattern = "%" |
|||
) |
Returns a list of custom client properties specified by $ident.
string | $ident | |
string | $pattern |
delete | ( | ) |
Deletes the virtual server.
getIcon | ( | ) |
getUniqueId | ( | ) |
Returns a unique identifier for the node which can be used as a HTML property.
iconDownload | ( | ) |
Downloads and returns the servers icon file content.
iconUpload | ( | $data | ) |
Uploads a given icon file content to the server and returns the ID of the icon.
string | $data |
isOffline | ( | ) |
isOnline | ( | ) |
logAdd | ( | $logmsg, | |
$loglevel = TeamSpeak3::LOGLEVEL_INFO |
|||
) |
Writes a custom entry into the virtual server log.
string | $logmsg | |
integer | $loglevel |
logView | ( | $lines = 30 , |
|
$begin_pos = null , |
|||
$reverse = null , |
|||
$instance = null |
|||
) |
Displays a specified number of entries (1-100) from the servers log.
integer | $lines | |
integer | $begin_pos | |
boolean | $reverse | |
boolean | $instance |
message | ( | $msg | ) |
Sends a text message to all clients on the virtual server.
string | $msg |
messageCreate | ( | $cluid, | |
$subject, | |||
$message | |||
) |
Sends an offline message to the client specified by $cluid.
string | $cluid | |
string | $subject | |
string | $message |
messageDelete | ( | $msgid | ) |
Deletes an existing offline message with ID $msgid from your inbox.
integer | $msgid |
messageList | ( | ) |
Returns a list of offline messages you've received.
The output contains the senders unique identifier, the messages subject, etc.
messageRead | ( | $msgid, | |
$flag_read = TRUE |
|||
) |
Returns an existing offline message with ID $msgid from your inbox.
integer | $msgid | |
boolean | $flag_read |
modify | ( | array | $properties | ) |
Changes the virtual server configuration using given properties.
array | $properties |
notifyRegister | ( | $event, | |
$id = 0 |
|||
) |
Registers for a specified category of events on a virtual server to receive notification messages.
Depending on the notifications you've registered for, the server will send you a message on every event.
string | $event | |
integer | $id |
notifyUnregister | ( | ) |
Unregisters all events previously registered with servernotifyregister so you will no longer receive notification messages.
permRemoveAny | ( | $permid | ) |
Removes any assignment of the permission specified with $permid on the selected virtual server and returns the number of removed assignments on success.
integer | $permid |
permReset | ( | ) |
Restores the default permission settings on the virtual server and returns a new initial administrator privilege key.
privilegeKeyCreate | ( | $type = TeamSpeak3::TOKEN_SERVERGROUP , |
|
$id1, | |||
$id2 = 0 , |
|||
$description = null , |
|||
$customset = null |
|||
) |
Creates a new privilege key (token) and returns the key.
integer | $type | |
integer | $id1 | |
integer | $id2 | |
string | $description | |
string | $customset |
privilegeKeyDelete | ( | $token | ) |
Deletes a token specified by key $token.
string | $token |
privilegeKeyList | ( | $resolve = FALSE | ) |
Returns a list of privilege keys (tokens) available.
If $resolve is set to TRUE the values of token_id1 and token_id2 will be translated into the appropriate group and/or channel names.
boolean | $resolve |
privilegeKeyUse | ( | $token | ) |
Use a token key gain access to a server or channel group.
Please note that the server will automatically delete the token after it has been used.
string | $token |
request | ( | $cmd, | |
$throw = TRUE |
|||
) |
Sends a prepared command to the server and returns the result.
string | $cmd | |
boolean | $throw |
selfPermOverview | ( | ) |
Returns an array containing the permission overview of your own client.
selfUpdate | ( | array | $properties | ) |
Changes the properties of your own client connection.
array | $properties |
selfUpdateLogin | ( | $username | ) |
Updates your own ServerQuery login credentials using a specified username.
The password will be auto-generated.
string | $username |
sendPluginCmd | ( | $plugin, | |
$data | |||
) |
Sends a plugin command to all clients connected to the server.
string | $plugin | |
string | $data |
serverGroupClientAdd | ( | $sgid, | |
$cldbid | |||
) |
Adds a client to the server group specified.
Please note that a client cannot be added to default groups or template groups.
integer | $sgid | |
integer | $cldbid |
serverGroupClientDel | ( | $sgid, | |
$cldbid | |||
) |
Removes a client from the server group specified.
integer | $sgid | |
integer | $cldbid |
serverGroupClientList | ( | $sgid | ) |
Returns a list of clients assigned to the server group specified.
integer | $sgid |
serverGroupCopy | ( | $ssgid, | |
$name = null , |
|||
$tsgid = 0 , |
|||
$type = TeamSpeak3::GROUP_DBTYPE_REGULAR |
|||
) |
Creates a copy of an existing server group specified by $ssgid and returns the new groups ID.
integer | $ssgid | |
string | $name | |
integer | $tsgid | |
integer | $type |
serverGroupCreate | ( | $name, | |
$type = TeamSpeak3::GROUP_DBTYPE_REGULAR |
|||
) |
Creates a new server group using the name specified with $name and returns its ID.
string | $name | |
integer | $type |
serverGroupDelete | ( | $sgid, | |
$force = FALSE |
|||
) |
Deletes the server group specified with $sgid.
If $force is set to 1, the server group will be deleted even if there are clients within.
integer | $sgid | |
boolean | $force |
serverGroupGetById | ( | $sgid | ) |
Returns the TeamSpeak3_Node_Servergroup object matching the given ID.
integer | $sgid |
TeamSpeak3_Adapter_ServerQuery_Exception |
serverGroupGetByName | ( | $name, | |
$type = TeamSpeak3::GROUP_DBTYPE_REGULAR |
|||
) |
Returns the TeamSpeak3_Node_Servergroup object matching the given name.
string | $name | |
integer | $type |
TeamSpeak3_Adapter_ServerQuery_Exception |
serverGroupGetProfiles | ( | $type = TeamSpeak3::GROUP_DBTYPE_REGULAR | ) |
Returns an ordered array of regular server groups available based on a pre-defined set of rules.
integer | $type |
serverGroupIdentify | ( | $mode = TeamSpeak3::GROUP_IDENTIFIY_STRONGEST , |
|
$type = TeamSpeak3::GROUP_DBTYPE_REGULAR |
|||
) |
Tries to identify the post powerful/weakest server group on the virtual server and returns the ID.
integer | $mode | |
integer | $type |
serverGroupList | ( | array | $filter = array() | ) |
Returns a list of server groups available.
filter | $filter |
serverGroupListReset | ( | ) |
serverGroupPermAssign | ( | $sgid, | |
$permid, | |||
$permvalue, | |||
$permnegated = FALSE , |
|||
$permskip = FALSE |
|||
) |
Adds a set of specified permissions to the server group specified.
Multiple permissions can be added by providing the four parameters of each permission in separate arrays.
integer | $sgid | |
integer | $permid | |
integer | $permvalue | |
integer | $permnegated | |
integer | $permskip |
serverGroupPermList | ( | $sgid, | |
$permsid = FALSE |
|||
) |
Returns a list of permissions assigned to the server group specified.
integer | $sgid | |
boolean | $permsid |
serverGroupPermRemove | ( | $sgid, | |
$permid | |||
) |
Removes a set of specified permissions from the server group specified with $sgid.
Multiple permissions can be removed at once.
integer | $sgid | |
integer | $permid |
serverGroupRename | ( | $sgid, | |
$name | |||
) |
Renames the server group specified with $sgid.
integer | $sgid | |
string | $name |
snapshotCreate | ( | $mode = TeamSpeak3::SNAPSHOT_STRING | ) |
Creates and returns snapshot data for the selected virtual server.
string | $mode |
snapshotDeploy | ( | $data, | |
$mode = TeamSpeak3::SNAPSHOT_STRING |
|||
) |
Deploys snapshot data on the selected virtual server.
If no virtual server is selected (ID 0), the data will be used to create a new virtual server from scratch.
string | $data | |
string | $mode |
|
staticprotected |
Internal callback funtion for sorting of client objects.
TeamSpeak3_Node_Client | $a | |
TeamSpeak3_Node_Client | $b |
|
staticprotected |
Internal callback funtion for sorting of file list items.
array | $a | |
array | $b |
|
staticprotected |
Internal callback funtion for sorting of group objects.
TeamSpeak3_Node_Abstract | $a | |
TeamSpeak3_Node_Abstract | $b |
start | ( | ) |
Starts the virtual server.
stop | ( | ) |
Stops the virtual server.
tempPasswordCreate | ( | $pw, | |
$duration, | |||
$tcid = 0 , |
|||
$tcpw = "" , |
|||
$desc = "" |
|||
) |
Sets a new temporary server password specified with $pw.
The temporary password will be valid for the number of seconds specified with $duration. The client connecting with this password will automatically join the channel specified with $tcid. If tcid is set to 0, the client will join the default channel.
string | $pw | |
integer | $duration | |
integer | $tcid | |
string | $tcpw | |
string | $desc |
tempPasswordDelete | ( | $pw | ) |
Deletes the temporary server password specified with $pw.
string | $pw |
tempPasswordList | ( | $resolve = FALSE | ) |
Returns a list of temporary server passwords.
boolean | $resolve |
tokenCreate | ( | $type = TeamSpeak3::TOKEN_SERVERGROUP , |
|
$id1, | |||
$id2 = 0 , |
|||
$description = null , |
|||
$customset = null |
|||
) |
Alias for privilegeKeyCreate().
tokenDelete | ( | $token | ) |
Alias for privilegeKeyDelete().
tokenList | ( | $translate = FALSE | ) |
Alias for privilegeKeyList().
tokenUse | ( | $token | ) |
Alias for privilegeKeyUse().
transferInitDownload | ( | $clientftfid, | |
$cid, | |||
$name, | |||
$cpw = "" , |
|||
$seekpos = 0 |
|||
) |
Initializes a file transfer download.
$clientftfid is an arbitrary ID to identify the file transfer on client-side.
integer | $clientftfid | |
integer | $cid | |
string | $name | |
string | $cpw | |
integer | $seekpos |
TeamSpeak3_Adapter_ServerQuery_Exception |
transferInitUpload | ( | $clientftfid, | |
$cid, | |||
$name, | |||
$size, | |||
$cpw = "" , |
|||
$overwrite = FALSE , |
|||
$resume = FALSE |
|||
) |
Initializes a file transfer upload.
$clientftfid is an arbitrary ID to identify the file transfer on client-side.
integer | $clientftfid | |
integer | $cid | |
string | $name | |
integer | $size | |
string | $cpw | |
boolean | $overwrite | |
boolean | $resume |
TeamSpeak3_Adapter_ServerQuery_Exception |
transferList | ( | ) |
Displays a list of running file transfers on the selected virtual server.
The output contains the path to which a file is uploaded to, the current transfer rate in bytes per second, etc.
transferStop | ( | $serverftfid, | |
$delete = FALSE |
|||
) |
Stops the running file transfer with server-side ID $serverftfid.
integer | $serverftfid | |
boolean | $delete |