/** * Returns the spec objects with all ships (stand-by-fleets) * * @param mixed spectypeid(s) * @return array */ protected function getRealBySpecType($specTypeID) { Spec::storeData($this->getTargetPlanet(), $this->getOfiara); $specs = Spec::getBySpecType($specTypeID, false); // now add the standby fleets foreach ($this->estandByFleets as $fleetID => $fleet) { Spec::storeData(false, false, $fleet); Spec::cleanObjCache(); $fleetSpecs = Spec::getBySpecType($specTypeID, false); $specs = Spec::add($specs, $fleetSpecs); } return $specs; }