| Goo documentation | Contained in the Goo distribution. |
Goo::DatabaseThing::Deleter - Delete a row from a database table
use Goo::DatabaseThing::Deleter;
edit a task
Nigel Hamilton <nigel@trexy.com>
| Goo documentation | Contained in the Goo distribution. |
package Goo::DatabaseThing::Deleter; ############################################################################### # Nigel Hamilton # # Copyright Nigel Hamilton 2005 # All Rights Reserved # # Author: Nigel Hamilton # Filename: Goo::DatabaseThing::Deleter.pm # Description: Delete a row from a table # # Date Change # ----------------------------------------------------------------------------- # 16/10/2005 Auto generated file # 16/10/2005 Need to create a Table # ############################################################################### use strict; use Goo::Object; use Goo::Prompter; use base qw(Goo::Object); ############################################################################### # # run - edit a task # ############################################################################### sub run { my ($this, $thing) = @_; # grab the task my $dbo = $thing->get_database_object(); if (Goo::Prompter::confirm("Delete " . $thing->get_filename())) { $dbo->delete(); # need to go somewhere else now - back to the Zone $thing->do_action("Z"); } } 1; __END__