public function __construct(Database_Row $row)
 {
     $this->row = $row;
     $table = $row->get_table();
     $form_name = $table->get_name() . '_editing';
     parent::__construct($table, $form_name);
     $this->add_hidden_input('id', $this->row->get_id());
 }
 public function __construct($table_name)
 {
     $mysql_user_factory = Database_MySQLUserFactory::get_instance();
     $mysql_user = $mysql_user_factory->get_for_this_project();
     $database = $mysql_user->get_database();
     $table = $database->get_table($table_name);
     $form_name = $table_name . '_adding';
     parent::__construct($table, $form_name);
 }