46 $this->nodeInfo = $info;
48 if(!array_key_exists($index, $this->nodeInfo))
53 $this->nodeId = $this->nodeInfo[$index];
64 return $this->
getParent()->serverGroupRename($this->
getId(), $name);
74 public function delete($force = FALSE)
91 return $this->
getParent()->serverGroupCopy($this->
getId(), $name, $tsgid, $type);
102 return $this->
getParent()->serverGroupPermList($this->
getId(), $permsid);
115 public function permAssign($permid, $permvalue, $permnegated = FALSE, $permskip = FALSE)
117 return $this->
getParent()->serverGroupPermAssign($this->
getId(), $permid, $permvalue, $permnegated, $permskip);
125 public function permAssignByName($permname, $permvalue, $permnegated = FALSE, $permskip = FALSE)
127 return $this->
permAssign($permname, $permvalue, $permnegated, $permskip);
139 return $this->
getParent()->serverGroupPermRemove($this->
getId(), $permid);
171 return $this->
getParent()->serverGroupClientAdd($this->
getId(), $cldbid);
182 return $this->
getParent()->serverGroupClientDel($this->
getId(), $cldbid);
190 public function tokenCreate($description = null, $customset = null)
215 foreach($this as $client)
224 if($e->getCode() != 0x0200)
throw $e;
236 if($this->
iconIsLocal(
"iconid") || $this[
"iconid"] == 0)
return;
238 $download = $this->
getParent()->transferInitDownload(rand(0x0000, 0xFFFF), 0, $this->
iconGetName(
"iconid"));
239 $transfer =
TeamSpeak3::factory(
"filetransfer://" . $download[
"host"] .
":" . $download[
"port"]);
241 return $transfer->download($download[
"ftkey"], $download[
"size"]);
249 $this->nodeList = array();
253 if(in_array($this->
getId(), explode(
",", $client[
"client_servergroups"])))
255 $this->nodeList[] = $client;
267 return $this->
getParent()->getUniqueId() .
"_sg" . $this->
getId();
277 return "group_server";
297 return (
string) $this[
"name"];