TeamSpeak 3 PHP Framework
Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
|
Abstract class describing a TeamSpeak 3 node and all it's parameters. More...
Public Member Functions | |
__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 | |
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 () | |
Protected Attributes | |
$nodeId = 0x00 | |
$nodeInfo = array() | |
$nodeList = null | |
$parent = null | |
$server = null | |
$storage = array() | |
Abstract class describing a TeamSpeak 3 node and all it's parameters.
__call | ( | $name, | |
array | $args | ||
) |
Called whenever we're using an unknown method.
string | $name | |
array | $args |
TeamSpeak3_Node_Exception |
__sleep | ( | ) |
__toString | ( | ) |
|
protected |
execute | ( | $cmd, | |
array | $params = array() |
||
) |
Prepares and executes a ServerQuery command and returns the result.
string | $cmd | |
array | $params |
|
protected |
Filters given node list array using specified filter rules.
array | $nodes | |
array | $rules |
getClass | ( | $prefix = "ts3_" | ) |
Returns a possible classname for the node which can be used as a HTML property.
string | $prefix |
|
abstract |
Returns the name of a possible icon to display the node object.
getId | ( | ) |
Returns the primary ID of the current node.
getInfo | ( | $extend = TRUE , |
|
$convert = FALSE |
|||
) |
Returns all information available on this node.
If $convert is enabled, some property values will be converted to human-readable values.
boolean | $extend | |
boolean | $convert |
getParent | ( | ) |
Returns the parent object of the current node.
getProperty | ( | $property, | |
$default = null |
|||
) |
Returns the specified property or a pre-defined default value from the node info array.
string | $property | |
mixed | $default |
|
protected |
|
abstract |
Returns a symbol representing the node.
|
abstract |
Returns a unique identifier for the node which can be used as a HTML property.
getViewer | ( | TeamSpeak3_Viewer_Interface | $viewer | ) |
Returns the HTML code to display a TeamSpeak 3 viewer.
TeamSpeak3_Viewer_Interface | $viewer |
iconGetName | ( | $key | ) |
iconIsLocal | ( | $key | ) |
prepare | ( | $cmd, | |
array | $params = array() |
||
) |
Uses given parameters and returns a prepared ServerQuery command.
string | $cmd | |
array | $params |
request | ( | $cmd, | |
$throw = TRUE |
|||
) |
Sends a prepared command to the server and returns the result.
string | $cmd | |
boolean | $throw |
|
protected |
toArray | ( | ) |
Returns an assoc array filled with current node info properties.
toString | ( | ) |
Returns a string representation of this node.