diff options
| author | fukachan <fukachan> | 2001-11-20 07:28:50 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-11-20 07:28:50 +0000 |
| commit | 26b18b5429cb8408c214e2656446517fd82bb821 (patch) | |
| tree | 5471f7bb25ee7c0cd09ed059845d27a7cec2bb26 /fml/lib/Mail/ThreadTrack | |
| parent | 221a60cb3b6403ed919734fd5c45572fd5afafaf (diff) | |
| download | fml8-26b18b5429cb8408c214e2656446517fd82bb821.tar.gz fml8-26b18b5429cb8408c214e2656446517fd82bb821.tar.bz2 fml8-26b18b5429cb8408c214e2656446517fd82bb821.zip | |
db_hash( $type ) to return hash reference for $type
Diffstat (limited to 'fml/lib/Mail/ThreadTrack')
| -rw-r--r-- | fml/lib/Mail/ThreadTrack/DB.pm | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/fml/lib/Mail/ThreadTrack/DB.pm b/fml/lib/Mail/ThreadTrack/DB.pm index 3a427c84..3dac4258 100644 --- a/fml/lib/Mail/ThreadTrack/DB.pm +++ b/fml/lib/Mail/ThreadTrack/DB.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: DB.pm,v 1.12 2001/11/16 10:09:14 fukachan Exp $ +# $FML: DB.pm,v 1.13 2001/11/18 08:57:30 fukachan Exp $ # package Mail::ThreadTrack::DB; @@ -218,6 +218,27 @@ sub db_dump } +=head2 db_hash( $type ) + +return HASH REFERENCE for specified $type. + +=cut + + +sub db_hash +{ + my ($self, $db_type) = @_; + my $type = "_" . $db_type; + + if (defined $self->{ _hash_table }->{ $type }) { + return $self->{ _hash_table }->{ $type }; + } + else { + return undef; + } +} + + =head1 AUTHOR Ken'ichi Fukamachi |
