// Run all filters for the City activation
$controllerInstance->executeActivationFilters($requestInstance, $responseInstance);
+ // Make sure the city's state is 'virigin'
+ assert($this->getStateInstance()->validateCityStateIsVirgin() === TRUE);
+
// ----------------------- Last step from here ------------------------
// Activate the City. This is ALWAYS the last step in this method
+ /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CITY[' . __METHOD__ . ':' . __LINE__ . ']: state=' . $this->getStateInstance()->__toString());
$this->getStateInstance()->citySimulationIsActivated();
// ---------------------- Last step until here ------------------------
}
$dataSetInstance->addCriteria($element, $cityData[$element]);
} else {
// Output warning message
- /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('City[' . __METHOD__ . ':' . __LINE__ . ']: addArrayToDataSet(): Element ' . $element . ' not found in CityData array.');
+ /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CITY[' . __METHOD__ . ':' . __LINE__ . ']: addArrayToDataSet(): Element ' . $element . ' not found in CityData array.');
}
} // END - foreac
}