2
);
+ $this->verify();
+
if (isset($options['save'])) {
$this->save($file);
}
$this->logger->log('Saving config into file ' . $file, 2);
$cfg->writeConfig($file, 'inifile');
}
+
+
+
+ /**
+ * Verifies that all required options are set
+ *
+ * @return void
+ *
+ * @throw Exception When something is missing
+ */
+ protected function verify()
+ {
+ if ($this->host == '') {
+ throw new Exception('Hostname missing');
+ }
+ }
}
?>
\ No newline at end of file