/** * @ignore */ protected function fetchNodeList() { $this->nodeList = new ArrayObject(); $cl = $this->server->getChannelList(); foreach ($cl as $val) { if ($val['parent'] == $this->id) { $this->nodeList[] = $val; } } $pl = $this->server->getClientList(); foreach ($pl as $val) { if ($val['c_id'] == $this->id) { $this->nodeList[] = $val; } } }
/** * Sets the privileges of one or more clients * * Values for $priv are: * - {@link Absurd_TeamSpeak2_Object::PRIV_SA} * - {@link Absurd_TeamSpeak2_Object::PRIV_ST} * - {@link Absurd_TeamSpeak2_Object::PRIV_AR} * * Values for $value are: * - {@link Absurd_TeamSpeak2_Object::GRANT} * - {@link Absurd_TeamSpeak2_Object::REVOKE} * * @param string $priv * @param integer $value * * @return void */ public function setPrivilege($priv, $value) { $this->server->request("sppriv {$this->id} {$priv} {$value}"); }