Goo::DatabaseThing::Deleter - Delete a row from a database table


Goo documentation Contained in the Goo distribution.

Index


Code Index:

NAME

Top

Goo::DatabaseThing::Deleter - Delete a row from a database table

SYNOPSIS

Top

use Goo::DatabaseThing::Deleter;

DESCRIPTION

Top

METHODS

Top

run

edit a task

AUTHOR

Top

Nigel Hamilton <nigel@trexy.com>

SEE ALSO

Top


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__