diff options
| author | fukachan <fukachan> | 2001-01-23 12:45:12 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-01-23 12:45:12 +0000 |
| commit | c05ab7973e00f5fec59ac577937f14e2c18d282f (patch) | |
| tree | 44169bed0d36d720137c612d10f06216ee2793af | |
| parent | 0bde046945fa9d032e9b1b6d6329f1e5c96d194c (diff) | |
| download | fml8-snap-20010123.tar.gz fml8-snap-20010123.tar.bz2 fml8-snap-20010123.zip | |
remove Ticket:: to FML::Ticket::snap-20010123
| -rw-r--r-- | fml/lib/FML/Ticket/Model/toymodel.pm | 60 | ||||
| -rw-r--r-- | fml/lib/FML/Ticket/Subject.pm | 69 | ||||
| -rw-r--r-- | fml/lib/FML/Ticket/System.pm | 79 |
3 files changed, 208 insertions, 0 deletions
diff --git a/fml/lib/FML/Ticket/Model/toymodel.pm b/fml/lib/FML/Ticket/Model/toymodel.pm new file mode 100644 index 00000000..e777c6e9 --- /dev/null +++ b/fml/lib/FML/Ticket/Model/toymodel.pm @@ -0,0 +1,60 @@ +#-*- 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::Model::toymodel; + +use strict; +use vars qw(@ISA @EXPORT @EXPORT_OK); +use Carp; + +require Exporter; +@ISA = qw(Ticket::System Exporter); + + +sub new +{ + my ($self) = @_; + my ($type) = ref($self) || $self; + my $me = {}; + return bless $me, $type; +} + + +=head1 NAME + +FML::__HERE_IS_YOUR_MODULE_NAME__.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; diff --git a/fml/lib/FML/Ticket/Subject.pm b/fml/lib/FML/Ticket/Subject.pm new file mode 100644 index 00000000..b1afb284 --- /dev/null +++ b/fml/lib/FML/Ticket/Subject.pm @@ -0,0 +1,69 @@ +#-*- 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::Subject; +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; +} + + +# ticket number generate +sub generate +{ + my ($self, $args) = @_; + + ; +} + + +=head1 NAME + +Ticket::Subject.pm - what is this + + +=head1 SYNOPSIS + +=head1 DESCRIPTION + +=head2 new + +=item Function() + + +=head1 AUTHOR + +Ken'ichi Fukamachi + +=head1 COPYRIGHT + +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. + +=head1 HISTORY + +Ticket::Subject.pm appeared in fml5. + +=cut + +1; 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; |
