function aggStatsViaLoc($bActiveOnly)
 {
     //---------------------------------------------------------------------
     //
     //---------------------------------------------------------------------
     $cLoc = new mclient_locations();
     $cClient = new mclients();
     $this->lNumClients = 0;
     $cLoc->loadAllLocations();
     $lNumLocs = $this->lNumLocs = $cLoc->lNumLocations;
     if ($lNumLocs == 0) {
         return;
     }
     $this->locAggStats = array();
     $idx = 0;
     foreach ($cLoc->clientLocations as $loc) {
         $this->locAggStats[$idx] = new stdClass();
         $lagg =& $this->locAggStats[$idx];
         $lagg->lLocID = $lLocID = $loc->lKeyID;
         $lagg->strLocation = $loc->strLocation;
         $lagg->strCountry = $loc->strCountry;
         $lagg->lNumClients = $lNumClients = $cClient->lNumClientsViaLocID($lLocID, !$bActiveOnly);
         $this->lNumClients += $lNumClients;
         ++$idx;
     }
 }