Ejemplo n.º 1
0
 /**
  * updates battles with the same stats as the current related kills
  */
 protected function updateBattles()
 {
     if (!isset($this->battlesToUpdate) || empty($this->battlesToUpdate)) {
         return;
     }
     $killIsk = $this->summaryTable->getTotalKillISK();
     $lossIsk = $this->summaryTable->getTotalLossISK();
     $kills = $this->summaryTable->getTotalKills();
     $losses = $this->summaryTable->getTotalLosses();
     $involved = count($this->pilots["a"]) + count($this->pilots["e"]);
     foreach ($this->battlesToUpdate as $battleId) {
         Battle::updateCacheForBattle($battleId, $killIsk, $lossIsk, $kills, $losses, $involved, $this->firstts, $this->lastts, $this->numberOfInvolvedOwners, $this->involvedOwners);
     }
 }