46 $this->nodeInfo = $info;
48 if(!array_key_exists($index, $this->nodeInfo))
53 $this->nodeId = $this->nodeInfo[$index];
64 return $this->
getParent()->channelGroupRename($this->
getId(), $name);
74 public function delete($force = FALSE)
91 return $this->
getParent()->channelGroupCopy($this->
getId(), $name, $tcgid, $type);
102 return $this->
getParent()->channelGroupPermList($this->
getId(), $permsid);
115 return $this->
getParent()->channelGroupPermAssign($this->
getId(), $permid, $permvalue);
125 return $this->
permAssign($permname, $permvalue);
137 return $this->
getParent()->channelGroupPermRemove($this->
getId(), $permid);
157 return $this->
getParent()->channelGroupClientList($this->
getId());
165 public function tokenCreate($cid, $description = null, $customset = null)
191 foreach($this as $client)
200 if($e->getCode() != 0x0200)
throw $e;
212 if($this->
iconIsLocal(
"iconid") || $this[
"iconid"] == 0)
return;
214 $download = $this->
getParent()->transferInitDownload(rand(0x0000, 0xFFFF), 0, $this->
iconGetName(
"iconid"));
215 $transfer =
TeamSpeak3::factory(
"filetransfer://" . $download[
"host"] .
":" . $download[
"port"]);
217 return $transfer->download($download[
"ftkey"], $download[
"size"]);
225 $this->nodeList = array();
229 if($client[
"client_channel_group_id"] == $this->
getId())
231 $this->nodeList[] = $client;
243 return $this->
getParent()->getUniqueId() .
"_cg" . $this->
getId();
253 return "group_channel";
273 return (
string) $this[
"name"];