protected function _ensureHashes($rows)
{
foreach ($rows as $row) {
$style = unserialize($row['attribute_style']);
if (!$style instanceof Ansel_Style) {
$this->announce('ERROR: Not a valid Ansel_Style object for gallery_id: ' . $row['share_id'] . ': ' . print_r($style, true));
continue;
}
try {
$this->_ensureHash($style->getHash());
} catch (Exception $e) {
$this->announce('ERROR: ' . $e->getMessage());
}
}
}