public function getSnapshotConfig(DBFarmRole $dbFarmRole, DBServer $dbServer)
{
$r = new ReflectionClass($this);
if ($r->hasConstant("ROLE_SNAPSHOT_ID") && $dbFarmRole->GetSetting(static::ROLE_SNAPSHOT_ID)) {
try {
$snapshot = Scalr_Storage_Snapshot::init()->loadById($dbFarmRole->GetSetting(static::ROLE_SNAPSHOT_ID));
return $snapshot->getConfig();
} catch (Exception $e) {
}
}
return false;
}