public function serverList(array $filter = array())
  {
    if($this->serverList === null)
    {
      $servers = $this->request("serverlist -uid")->toAssocArray("virtualserver_id");

      $this->serverList = array();

      foreach($servers as $sid => $server)
      {
        $this->serverList[$sid] = new TeamSpeak3_Node_Server($this, $server);
      }

      $this->resetNodeList();
    }

    return $this->filterList($this->serverList, $filter);
  }
public function serverList(array $filter = array())
  {
    if($this->serverList === null)
    {
      $servers = $this->request("serverlist -uid")->toAssocArray("virtualserver_id");

      $this->serverList = array();

      foreach($servers as $sid => $server)
      {
        $this->serverList[$sid] = new TeamSpeak3_Node_Server($this, $server);
      }

      $this->resetNodeList();
    }

    return $this->filterList($this->serverList, $filter);
  }
public function serverList ( array $ filter = array ( ) ) { if ( $ this -> serverList === null ) { $ servers = $ this -> request ( "serverlist -uid" ) -> toAssocArray ( "virtualserver_id" ) ; $ this -> serverList = array ( ) ; foreach ( $ servers as $ sid => $ server ) { $ this -> serverList [ $ sid ] = new TeamSpeak3_Node_Server ( $ this , $ server ) ; } $ this -> resetNodeList ( ) ; } return $ this -> filterList ( $ this -> serverList , $ filter ) ; }
Returns an array filled with TeamSpeak3_Node_Server objects.

@param  array $filter
@return array
Returns an array filled with TeamSpeak3_Node_Server objects .