From c05ab7973e00f5fec59ac577937f14e2c18d282f Mon Sep 17 00:00:00 2001 From: fukachan Date: Tue, 23 Jan 2001 12:45:12 +0000 Subject: remove Ticket:: to FML::Ticket:: --- fml/lib/FML/Ticket/System.pm | 79 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 fml/lib/FML/Ticket/System.pm (limited to 'fml/lib/FML/Ticket/System.pm') diff --git a/fml/lib/FML/Ticket/System.pm b/fml/lib/FML/Ticket/System.pm new file mode 100644 index 00000000..cee01771 --- /dev/null +++ b/fml/lib/FML/Ticket/System.pm @@ -0,0 +1,79 @@ +#-*- perl -*- +# +# Copyright (C) 2001 Ken'ichi Fukamachi +# All rights reserved. This program is free software; you can +# redistribute it and/or modify it under the same terms as Perl itself. +# +# $Id$ +# $FML$ +# + +package Ticket::System; +use strict; +use vars qw(@ISA @EXPORT @EXPORT_OK); +use Carp; + +require Exporter; +@ISA = qw(Exporter); + + +sub new +{ + my ($self) = @_; + my ($type) = ref($self) || $self; + my $me = {}; + return bless $me, $type; +} + + +sub increment_id +{ + my ($self, $file) = @_; + + use FML::SequenceFile; + my $sfh = new FML::SequenceFile { sequence_file => $seq_file }; + my $id = $sfh->increment_id; + $self->{ _error } = $sfh->error; + + $id; +} + + +sub error +{ + my ($self) = @_; + return $self->{ _error }; +} + + +=head1 NAME + +Ticket::System.pm - what is this + + +=head1 SYNOPSIS + +=head1 DESCRIPTION + +=head2 new + +=item Function() + + +=head1 AUTHOR + +=head1 COPYRIGHT + +Copyright (C) 2001 __YOUR_NAME__ + +All rights reserved. This program is free software; you can +redistribute it and/or modify it under the same terms as Perl itself. + +=head1 HISTORY + +FML::__MODULE_NAME__.pm appeared in fml5. + +=cut + + +1; -- cgit v1.2.1