3namespace PlanetTeamSpeak\TeamSpeak3Framework\Node;
5use PlanetTeamSpeak\TeamSpeak3Framework\Exception\ServerQueryException;
6use PlanetTeamSpeak\TeamSpeak3Framework\Helper\StringHelper;
7use PlanetTeamSpeak\TeamSpeak3Framework\TeamSpeak3;
28 $this->nodeInfo = $info;
30 if (!array_key_exists($index, $this->nodeInfo)) {
34 $this->nodeId = $this->nodeInfo[$index];
43 public function rename(
string $name): void
55 public function delete(
bool $force =
false): void
70 return $this->
getParent()->channelGroupCopy($this->
getId(), $name, $tcgid, $type);
79 public function permList(
bool $permsid =
false): array
81 return $this->
getParent()->channelGroupPermList($this->
getId(), $permsid);
92 public function permAssign(
int $permid,
int $permvalue): void
94 $this->
getParent()->channelGroupPermAssign($this->
getId(), $permid, $permvalue);
116 $this->
getParent()->channelGroupPermRemove($this->
getId(), $permid);
137 public function clientList(
int $cid =
null,
int $cldbid =
null,
bool $resolve =
false): array
139 return $this->
getParent()->channelGroupClientList($this->
getId(), $cid, $cldbid, $resolve);
170 $this->nodeList = [];
173 if ($client[
"client_channel_group_id"] == $this->
getId()) {
174 $this->nodeList[] = $client;
186 return $this->
getParent()->getUniqueId() .
"_cg" . $this->
getId();
196 return "group_channel";
Enhanced exception class for PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery objects.
Helper class for string handling.
Class describing a TeamSpeak 3 channel group and all it's parameters.
permList(bool $permsid=false)
copy(string $name=null, int $tcgid=0, int $type=TeamSpeak3::GROUP_DBTYPE_REGULAR)
permRemoveByName($permname)
tokenCreate($cid, $description=null, $customset=null)
permAssignByName($permname, $permvalue)
permAssign(int $permid, int $permvalue)
__construct(Server $server, array $info, string $index="cgid")
clientList(int $cid=null, int $cldbid=null, bool $resolve=false)
privilegeKeyCreate(int $cid, string $description=null, string $customset=null)
Class describing a TeamSpeak 3 virtual server and all it's parameters.
const TOKEN_CHANNELGROUP
1: channel group token (id1={groupID} id2={channelID})
const GROUP_DBTYPE_REGULAR
1: regular group (used for regular clients)