This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
OpenSQLManager/sys/windows/edit_db.php

47 lines
1014 B
PHP
Raw Normal View History

2012-03-28 11:23:08 -04:00
<?php
/**
* OpenSQLManager
*
* Free Database manager for Open Source Databases
*
2012-04-20 13:30:27 -04:00
* @package OpenSQLManager
2012-03-28 11:23:08 -04:00
* @author Timothy J. Warren
* @copyright Copyright (c) 2012
* @link https://github.com/aviat4ion/OpenSQLManager
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
/**
* Window controlling modifications of database connections
2012-04-20 13:30:27 -04:00
*
* @package OpenSQLManager
* @subpackage Windows
2012-03-28 11:23:08 -04:00
*/
class Edit_DB extends GtkWindow {
2012-03-29 16:26:50 -04:00
/**
* Connection editing window
*
* @param object $db_params
2012-03-29 16:26:50 -04:00
*/
public function __construct($db_params)
2012-03-28 11:23:08 -04:00
{
parent::__construct();
$this->set_position(Gtk::WIN_POS_CENTER);
$this->set_title("Edit Database Connection");
// Create the layout table
$connection_form = new DB_Info_Widget($db_params);
2012-03-28 11:23:08 -04:00
// Add the Vbox, and show the window
$this->add($connection_form);
$this->show_all();
2012-03-30 15:22:52 -04:00
// Hide fields
$connection_form->set_db();
2012-03-28 11:23:08 -04:00
}
}
// End of edit_db.php