ts3phpframework
|
Public Member Functions | |
__construct (Server $server, array $info, string $index="sgid") | |
rename (string $name) | |
delete (bool $force=false) | |
copy (string $name=null, int $tsgid=0, int $type=TeamSpeak3::GROUP_DBTYPE_REGULAR) | |
permList (bool $permsid=false) | |
permAssign (int $permid, int $permvalue, int $permnegated=0, int $permskip=0) | |
permAssignByName ($permname, $permvalue, $permnegated=false, $permskip=false) | |
permRemove (int $permid) | |
permRemoveByName ($permname) | |
clientList () | |
clientAdd (int $cldbid) | |
clientDel (int $cldbid) | |
tokenCreate ($description=null, $customset=null) | |
privilegeKeyCreate (string $description=null, string $customset=null) | |
getUniqueId () | |
getIcon () | |
Public Member Functions inherited from PlanetTeamSpeak\TeamSpeak3Framework\Node\Group | |
message (string $msg) | |
iconDownload () | |
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 | |
fetchNodeList () | |
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) | |
fetchNodeInfo () | |
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 = [] |
Definition at line 13 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::__construct | ( | Server | $server, |
array | $info, | ||
string | $index = "sgid" ) |
The ServerGroup constructor.
Server | $server | |
array | $info | |
string | $index |
NodeException |
Definition at line 23 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::clientAdd | ( | int | $cldbid | ) |
Adds a client to the server group specified. Please note that a client cannot be added to default groups or template groups.
integer | $cldbid |
Definition at line 146 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::clientDel | ( | int | $cldbid | ) |
Removes a client from the server group.
integer | $cldbid |
Definition at line 157 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::clientList | ( | ) |
Returns a list of clients assigned to the server group specified.
Definition at line 134 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::copy | ( | string | $name = null, |
int | $tsgid = 0, | ||
int | $type = TeamSpeak3::GROUP_DBTYPE_REGULAR ) |
Creates a copy of the server group and returns the new groups ID.
string | null | $name | |
integer | $tsgid | |
integer | $type |
Definition at line 66 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::delete | ( | bool | $force = false | ) |
Deletes the server group. If $force is set to 1, the server group will be deleted even if there are clients within.
boolean | $force |
Definition at line 53 of file ServerGroup.php.
|
protected |
@ignore
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 188 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::getIcon | ( | ) |
Returns the name of a possible icon to display the node object.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 214 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::getUniqueId | ( | ) |
Returns a unique identifier for the node which can be used as a HTML property.
Reimplemented from PlanetTeamSpeak\TeamSpeak3Framework\Node\Node.
Definition at line 204 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::permAssign | ( | int | $permid, |
int | $permvalue, | ||
int | $permnegated = 0, | ||
int | $permskip = 0 ) |
Adds a set of specified permissions to the server group. Multiple permissions can be added by providing the four parameters of each permission in separate arrays.
integer | $permid | |
integer | $permvalue | |
integer | $permnegated | |
integer | $permskip |
Definition at line 92 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::permAssignByName | ( | $permname, | |
$permvalue, | |||
$permnegated = false, | |||
$permskip = false ) |
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::permList | ( | bool | $permsid = false | ) |
Returns a list of permissions assigned to the server group.
boolean | $permsid |
Definition at line 77 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::permRemove | ( | int | $permid | ) |
Removes a set of specified permissions from the server group. Multiple permissions can be removed at once.
integer | $permid |
Definition at line 114 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::permRemoveByName | ( | $permname | ) |
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::privilegeKeyCreate | ( | string | $description = null, |
string | $customset = null ) |
Creates a new privilege key (token) for the server group and returns the key.
string | null | $description | |
string | null | $customset |
Definition at line 179 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::rename | ( | string | $name | ) |
Renames the server group specified.
string | $name |
Definition at line 41 of file ServerGroup.php.
PlanetTeamSpeak\TeamSpeak3Framework\Node\ServerGroup::tokenCreate | ( | $description = null, | |
$customset = null ) |