release 1.3.19

This commit is contained in:
Newcomer1989
2021-12-21 20:40:13 +01:00
parent cf8b029a3f
commit 575e215e0b
244 changed files with 33467 additions and 171 deletions

View File

@@ -32,6 +32,7 @@ class TeamSpeak3_Node_Server extends TeamSpeak3_Node_Abstract
* @ignore
*/
protected $channelList = null;
protected $channelListtsn = null;
/**
* @ignore
@@ -135,6 +136,26 @@ class TeamSpeak3_Node_Server extends TeamSpeak3_Node_Abstract
return $this->filterList($this->channelList, $filter);
}
public function channelListtsn(array $filter = array(), $params = null)
{
if($this->channelListtsn === null)
{
# params: -topic -flags -voice -limits -icon -secondsempty
$channels = $this->request("channellist $params")->toAssocArray("cid");
$this->channelListtsn = array();
foreach($channels as $cid => $channel)
{
$this->channelListtsn[$cid] = new TeamSpeak3_Node_Channel($this, $channel);
}
$this->resetNodeList();
}
return $this->filterList($this->channelListtsn, $filter);
}
/**
* Resets the list of channels online.
*
@@ -145,6 +166,12 @@ class TeamSpeak3_Node_Server extends TeamSpeak3_Node_Abstract
$this->resetNodeList();
$this->channelList = null;
}
public function channelListResettsn()
{
$this->resetNodeList();
$this->channelListtsn = null;
}
/**
* Returns the TeamSpeak3_Node_Channel object representing the default channel.