protected function _outputUpdateInformation(array $needsUpdate)
{
$output = $this->_output;
foreach ($needsUpdate as $name => $setupResource) {
$dbVersion = $this->_getDbVersionFromName($name);
$dbDataVersion = $this->_getDbDataVersionFromName($name);
$configVersion = $this->_getConfiguredVersionFromResourceObject($setupResource);
$moduleConfig = $this->_getProtectedPropertyFromObject('_moduleConfig', $setupResource);
$output->writeln(array('+--------------------------------------------------+', 'Resource Name: ' . $name, 'For Module: ' . $moduleConfig->getName(), 'Class: ' . get_class($setupResource), 'Current Structure Version: ' . $dbVersion, 'Current Data Version: ' . $dbDataVersion, 'Configured Version: ' . $configVersion));
$args = array('', (string) $dbVersion, (string) $configVersion);
$args[0] = $dbVersion ? \Mage_Core_Model_Resource_Setup::TYPE_DB_UPGRADE : \Mage_Core_Model_Resource_Setup::TYPE_DB_INSTALL;
$output->writeln('Structure Files to Run: ');
$filesStructure = $this->_getAvaiableDbFilesFromResource($setupResource, $args);
$this->_outputFileArray($filesStructure, $output);
$output->writeln("");
$args[0] = $dbVersion ? \Mage_Core_Model_Resource_Setup::TYPE_DATA_UPGRADE : \Mage_Core_Model_Resource_Setup::TYPE_DATA_INSTALL;
$output->writeln('Data Files to Run: ');
$filesData = $this->_getAvaiableDataFilesFromResource($setupResource, $args);
$this->_outputFileArray($filesData, $output);
$output->writeln('+--------------------------------------------------+');
$output->writeln('');
}
}