src/TeamSpeak3/Node/Server.php
public function clientList(array $filter = array())
  {
    if($this->clientList === null)
    {
      $clients = $this->request("clientlist -uid -away -badges -voice -info -times -groups -icon -country -ip")->toAssocArray("clid");

      $this->clientList = array();

      foreach($clients as $clid => $client)
      {
        if($this->getParent()->getExcludeQueryClients() && $client["client_type"]) continue;

        $this->clientList[$clid] = new Client($this, $client);
      }

      uasort($this->clientList, array(__CLASS__, "sortClientList"));

      $this->resetNodeList();
    }

    return $this->filterList($this->clientList, $filter);
  }
public function clientList(array $filter = array())
  {
    if($this->clientList === null)
    {
      $clients = $this->request("clientlist -uid -away -badges -voice -info -times -groups -icon -country -ip")->toAssocArray("clid");

      $this->clientList = array();

      foreach($clients as $clid => $client)
      {
        if($this->getParent()->getExcludeQueryClients() && $client["client_type"]) continue;

        $this->clientList[$clid] = new Client($this, $client);
      }

      uasort($this->clientList, array(__CLASS__, "sortClientList"));

      $this->resetNodeList();
    }

    return $this->filterList($this->clientList, $filter);
  }
public function clientList ( array $ filter = array ( ) ) { if ( $ this -> clientList === null ) { $ clients = $ this -> request ( "clientlist -uid -away -badges -voice -info -times -groups -icon -country -ip" ) -> toAssocArray ( "clid" ) ; $ this -> clientList = array ( ) ; foreach ( $ clients as $ clid => $ client ) { if ( $ this -> getParent ( ) -> getExcludeQueryClients ( ) && $ client [ "client_type" ] ) continue ; $ this -> clientList [ $ clid ] = new Client ( $ this , $ client ) ; } uasort ( $ this -> clientList , array ( __CLASS__ , "sortClientList" ) ) ; $ this -> resetNodeList ( ) ; } return $ this -> filterList ( $ this -> clientList , $ filter ) ; }
Returns an array filled with Client objects.

@param  array $filter
@return array|Client[]
Returns an array filled with Client objects .