diff options
Diffstat (limited to 'fml/lib/FML/Ticket/System.pm')
| -rw-r--r-- | fml/lib/FML/Ticket/System.pm | 79 |
1 files changed, 79 insertions, 0 deletions
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; |
