/** * Public function runBackups */ public function runBackups() { $mysqlDBHandler = new MySQLHandler(); //$dbList = DB::getDBList($this -> color); $dbList = explode("|", MySQLBackupDB::DATABASES); foreach ($dbList as $db) { SR_Agent::Log(APPID, SystemReporter::MSG_MESSAGE, "Starting Backup for {$db}"); OutputHandler::displayOutput("[%lightblue%{$db}%lightgray%]\tStarting backup\n%white%============================================%lightgray%", $this->color); $mysqlDBHandler->runBackup($db, $this->simulation, $this->color); OutputHandler::displayOutput("%white%============================================%lightgray%\n", $this->color); } $this->completeRun(); }