TeamSpeak 3 PHP Framework
Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
|
Class describing a TeamSpeak 3 channel and all it's parameters. More...
Public Member Functions | |
__construct (TeamSpeak3_Node_Server $server, array $info, $index="cid") | |
The TeamSpeak3_Node_Channel constructor. More... | |
__toString () | |
Returns a string representation of this node. 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... | |
clientList (array $filter=array()) | |
Returns an array filled with TeamSpeak3_Node_Client objects. More... | |
clientPermAssign ($cldbid, $permid, $permvalue) | |
Adds a set of specified permissions to a client in a specific channel. More... | |
clientPermAssignByName ($cldbid, $permname, $permvalue) | |
Alias for clientPermAssign(). More... | |
clientPermList ($cldbid, $permsid=FALSE) | |
Returns a list of permissions defined for a client in the channel. More... | |
clientPermRemove ($cldbid, $permid) | |
Removes a set of specified permissions from a client in the channel. More... | |
clientPermRemoveByName ($cldbid, $permname) | |
Alias for clientPermRemove(). More... | |
delete ($force=FALSE) | |
Deletes the channel. More... | |
dirCreate ($cpw="", $dirname="/") | |
Creates new directory in a channels file repository. More... | |
fileDelete ($cpw="", $name="/") | |
Deletes one or more files stored in the channels file repository. More... | |
fileInfo ($cpw="", $name="/") | |
Returns detailed information about the specified file stored in the channels file repository. More... | |
fileList ($cpw="", $path="/", $recursive=FALSE) | |
Returns a list of files and directories stored in the channels file repository. More... | |
fileRename ($cpw="", $oldname="/", $newname="/", $tcid=null, $tcpw=null) | |
Renames a file in the channels file repository. More... | |
getIcon () | |
Returns the name of a possible icon to display the node object. More... | |
getLevel () | |
Returns the level of the channel. More... | |
getPathway () | |
Returns the pathway of the channel which can be used as a clients default channel. 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 channels icon file content. More... | |
isSpacer () | |
Returns TRUE if the channel is a spacer. More... | |
message ($msg, $cpw=null) | |
Sends a text message to all clients in the channel. More... | |
modify (array $properties) | |
Changes the channel configuration using given properties. More... | |
move ($pid, $order=null) | |
Moves the channel to the parent channel specified with $pid. More... | |
permAssign ($permid, $permvalue) | |
Adds a set of specified permissions to the channel. More... | |
permAssignByName ($permname, $permvalue) | |
Alias for permAssign(). More... | |
permList ($permsid=FALSE) | |
Returns a list of permissions defined for the channel. More... | |
permRemove ($permid) | |
Removes a set of specified permissions from the channel. More... | |
permRemoveByName ($permname) | |
Alias for permRemove(). More... | |
sendPluginCmd ($plugin, $data, $cpw=null, $subscribed=FALSE) | |
Sends a plugin command to all clients in the channel. More... | |
spacerGetAlign () | |
Returns the possible spacer alignment of the channel. More... | |
spacerGetType () | |
Returns the possible spacer type of the channel. More... | |
subChannelGetById ($cid) | |
Returns the TeamSpeak3_Node_Channel object matching the given ID. More... | |
subChannelGetByName ($name) | |
Returns the TeamSpeak3_Node_Channel object matching the given name. More... | |
subChannelList (array $filter=array()) | |
Returns an array filled with TeamSpeak3_Node_Channel objects. 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 () | |
Additional Inherited Members | |
Protected Attributes inherited from TeamSpeak3_Node_Abstract | |
$nodeId = 0x00 | |
$nodeInfo = array() | |
$nodeList = null | |
$parent = null | |
$server = null | |
$storage = array() | |
Class describing a TeamSpeak 3 channel and all it's parameters.
__construct | ( | TeamSpeak3_Node_Server | $server, |
array | $info, | ||
$index = "cid" |
|||
) |
The TeamSpeak3_Node_Channel constructor.
TeamSpeak3_Node_Server | $server | |
array | $info | |
string | $index |
TeamSpeak3_Adapter_ServerQuery_Exception |
__toString | ( | ) |
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.
integer | $name |
TeamSpeak3_Adapter_ServerQuery_Exception |
clientList | ( | array | $filter = array() | ) |
Returns an array filled with TeamSpeak3_Node_Client objects.
array | $filter |
clientPermAssign | ( | $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 | $cldbid | |
integer | $permid | |
integer | $permvalue |
clientPermAssignByName | ( | $cldbid, | |
$permname, | |||
$permvalue | |||
) |
Alias for clientPermAssign().
clientPermList | ( | $cldbid, | |
$permsid = FALSE |
|||
) |
Returns a list of permissions defined for a client in the channel.
integer | $cldbid | |
boolean | $permsid |
clientPermRemove | ( | $cldbid, | |
$permid | |||
) |
Removes a set of specified permissions from a client in the channel.
Multiple permissions can be removed at once.
integer | $cldbid | |
integer | $permid |
clientPermRemoveByName | ( | $cldbid, | |
$permname | |||
) |
Alias for clientPermRemove().
delete | ( | $force = FALSE | ) |
Deletes the channel.
boolean | $force |
dirCreate | ( | $cpw = "" , |
|
$dirname = "/" |
|||
) |
Creates new directory in a channels file repository.
string | $cpw | |
string | $dirname |
fileDelete | ( | $cpw = "" , |
|
$name = "/" |
|||
) |
Deletes one or more files stored in the channels file repository.
string | $cpw | |
string | $path |
fileInfo | ( | $cpw = "" , |
|
$name = "/" |
|||
) |
Returns detailed information about the specified file stored in the channels file repository.
string | $cpw | |
string | $name |
fileList | ( | $cpw = "" , |
|
$path = "/" , |
|||
$recursive = FALSE |
|||
) |
Returns a list of files and directories stored in the channels file repository.
string | $cpw | |
string | $path | |
boolean | $recursive |
fileRename | ( | $cpw = "" , |
|
$oldname = "/" , |
|||
$newname = "/" , |
|||
$tcid = null , |
|||
$tcpw = null |
|||
) |
Renames a file in the channels file repository.
If the two parameters $tcid and $tcpw are specified, the file will be moved into another channels file repository.
string | $cpw | |
string | $oldname | |
string | $newname | |
integer | $tcid | |
string | $tcpw |
getIcon | ( | ) |
Returns the name of a possible icon to display the node object.
getLevel | ( | ) |
Returns the level of the channel.
getPathway | ( | ) |
Returns the pathway of the channel which can be used as a clients default channel.
getUniqueId | ( | ) |
Returns a unique identifier for the node which can be used as a HTML property.
iconDownload | ( | ) |
Downloads and returns the channels icon file content.
isSpacer | ( | ) |
Returns TRUE if the channel is a spacer.
message | ( | $msg, | |
$cpw = null |
|||
) |
Sends a text message to all clients in the channel.
string | $msg | |
string | $cpw |
modify | ( | array | $properties | ) |
Changes the channel configuration using given properties.
array | $properties |
move | ( | $pid, | |
$order = null |
|||
) |
Moves the channel to the parent channel specified with $pid.
integer | $pid | |
integer | $order |
permAssign | ( | $permid, | |
$permvalue | |||
) |
Adds a set of specified permissions to the channel.
Multiple permissions can be added by providing the two parameters of each permission.
integer | $permid | |
integer | $permvalue |
permAssignByName | ( | $permname, | |
$permvalue | |||
) |
Alias for permAssign().
permList | ( | $permsid = FALSE | ) |
Returns a list of permissions defined for the channel.
boolean | $permsid |
permRemove | ( | $permid | ) |
Removes a set of specified permissions from the channel.
Multiple permissions can be removed at once.
integer | $permid |
permRemoveByName | ( | $permname | ) |
Alias for permRemove().
sendPluginCmd | ( | $plugin, | |
$data, | |||
$cpw = null , |
|||
$subscribed = FALSE |
|||
) |
Sends a plugin command to all clients in the channel.
string | $plugin | |
string | $data | |
string | $cpw | |
boolean | $subscribed |
spacerGetAlign | ( | ) |
Returns the possible spacer alignment of the channel.
spacerGetType | ( | ) |
Returns the possible spacer type of the channel.
subChannelGetById | ( | $cid | ) |
Returns the TeamSpeak3_Node_Channel object matching the given ID.
integer | $cid |
TeamSpeak3_Adapter_ServerQuery_Exception |
subChannelGetByName | ( | $name | ) |
Returns the TeamSpeak3_Node_Channel object matching the given name.
integer | $name |
TeamSpeak3_Adapter_ServerQuery_Exception |
subChannelList | ( | array | $filter = array() | ) |
Returns an array filled with TeamSpeak3_Node_Channel objects.
array | $filter |