&$v) { $obj->$k = $v; } return $obj; } // -------------------------------------------------------------------------- /** * Create info dialog to return an informational message * * @param string $message * @return void */ function alert($message) { return \wxMessageBox($message, 'Info', wxOK); } // -------------------------------------------------------------------------- /** * Create info dialog to retun an informational message * * @param string $message * @return void */ function error($message) { /*$dialog = new GTKMessageDialog( NULL, Gtk::DIALOG_MODAL, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, $message ); $dialog->set_position(Gtk::WIN_POS_CENTER); $dialog->run(); $dialog->destroy();*/ } // -------------------------------------------------------------------------- /** * Creates a binary confirmation dialog * * @param string $message * @return bool */ function confirm($message) { /*$dialog = new GTKMessageDialog( NULL, Gtk::DIALOG_MODAL, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_YES_NO, $message ); $dialog->set_position(Gtk::WIN_POS_CENTER); $answer = $dialog->run(); $dialog->destroy(); return ($answer === Gtk::RESPONSE_YES) ? TRUE : FALSE;*/ } // -------------------------------------------------------------------------- /** * Display About menu with version information * * @return void */ function about() { /*$dlg = new \wxAboutDialogInfo(); $dlg->SetName(PROGRAM_NAME); $dlg->SetVersion(VERSION); $dlg->SetCopyright("Copyright (c) ".date('Y')." Timothy J. Warren"); $dlg->SetWebSite('https://github.com/aviat4ion/OpenSQLManager','Fork on Github'); $dlg->SetLicense(file_get_contents(BASE_DIR . "/LICENSE")); $dlg->SetDevelopers(array( 'Timothy J. Warren', )); \wxGenericAboutBox($dlg);*/ } // End of functions.php