public function serverGroupList(array $filter = array())
  {
    if($this->sgroupList === null)
    {
      $this->sgroupList = $this->request("servergrouplist")->toAssocArray("sgid");

      foreach($this->sgroupList as $sgid => $group)
      {
        $this->sgroupList[$sgid] = new TeamSpeak3_Node_Servergroup($this, $group);
      }

      uasort($this->sgroupList, array(__CLASS__, "sortGroupList"));
    }

    return $this->filterList($this->sgroupList, $filter);
  }
public function serverGroupList(array $filter = array())
  {
    if($this->sgroupList === null)
    {
      $this->sgroupList = $this->request("servergrouplist")->toAssocArray("sgid");

      foreach($this->sgroupList as $sgid => $group)
      {
        $this->sgroupList[$sgid] = new TeamSpeak3_Node_Servergroup($this, $group);
      }

      uasort($this->sgroupList, array(__CLASS__, "sortGroupList"));
    }

    return $this->filterList($this->sgroupList, $filter);
  }
public function serverGroupList ( array $ filter = array ( ) ) { if ( $ this -> sgroupList === null ) { $ this -> sgroupList = $ this -> request ( "servergrouplist" ) -> toAssocArray ( "sgid" ) ; foreach ( $ this -> sgroupList as $ sgid => $ group ) { $ this -> sgroupList [ $ sgid ] = new TeamSpeak3_Node_Servergroup ( $ this , $ group ) ; } uasort ( $ this -> sgroupList , array ( __CLASS__ , "sortGroupList" ) ) ; } return $ this -> filterList ( $ this -> sgroupList , $ filter ) ; }
Returns a list of server groups available.

@param  filter $filter
@return array|TeamSpeak3_Node_Servergroup[]
Returns a list of server groups available .