original_string: 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);
    }
code: 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);
    }
code_tokens: 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 ) ; }
docstring: Returns an array filled with Client objects.
  
  @param  array $filter
  @return array|Client[]
docstring_tokens: Returns an array filled with Client objects .