| 1 | package Net::Hotline::FileInfoItem; | ||||||||||
| 2 | |||||||||||
| 3 | ## Copyright(c) 1998-2002 by John C. Siracusa. All rights reserved. This | ||||||||||
| 4 | ## program is free software; you can redistribute it and/or modify it under | ||||||||||
| 5 | ## the same terms as Perl itself. | ||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | $VERSION = '0.80'; | |||||||||
| 12 | |||||||||||
| 13 | sub new | ||||||||||
| 14 | 0 | ▶ | { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 15 | 0 | my($class) = shift; | |||||||||
| 16 | |||||||||||
| 17 | 0 | my($self) = | |||||||||
| 18 | { | ||||||||||
| 19 | 'ICON' => undef, | ||||||||||
| 20 | 'TYPE' => undef, | ||||||||||
| 21 | 'CREATOR' => undef, | ||||||||||
| 22 | 'SIZE' => undef, | ||||||||||
| 23 | 'NAME' => undef, | ||||||||||
| 24 | 'COMMENT' => undef, | ||||||||||
| 25 | 'CTIME' => undef, | ||||||||||
| 26 | 'MTIME' => undef | ||||||||||
| 27 | }; | ||||||||||
| 28 | |||||||||||
| 29 | 0 | bless $self, $class; | |||||||||
| 30 | 0 | return $self; | |||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | sub icon | ||||||||||
| 34 | 0 | ▶ | { | ||||||||
|
Subroutine
icon: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 35 | 0 | ▶ | $_[0]->{'TYPE'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | 0 | return $_[0]->{'TYPE'}; | |||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | sub type | ||||||||||
| 40 | 0 | ▶ | { | ||||||||
|
Subroutine
type: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 41 | 0 | ▶ | $_[0]->{'TYPE'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 42 | 0 | return $_[0]->{'TYPE'}; | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | sub creator | ||||||||||
| 46 | 0 | ▶ | { | ||||||||
|
Subroutine
creator: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 47 | 0 | ▶ | $_[0]->{'CREATOR'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 48 | 0 | return $_[0]->{'CREATOR'}; | |||||||||
| 49 | } | ||||||||||
| 50 | |||||||||||
| 51 | sub size | ||||||||||
| 52 | 0 | ▶ | { | ||||||||
|
Subroutine
size: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 53 | 0 | ▶ | $_[0]->{'SIZE'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 54 | 0 | return $_[0]->{'SIZE'}; | |||||||||
| 55 | } | ||||||||||
| 56 | |||||||||||
| 57 | sub name | ||||||||||
| 58 | 0 | ▶ | { | ||||||||
|
Subroutine
name: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 59 | 0 | ▶ | $_[0]->{'NAME'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 60 | 0 | return $_[0]->{'NAME'}; | |||||||||
| 61 | } | ||||||||||
| 62 | |||||||||||
| 63 | sub comment | ||||||||||
| 64 | 0 | ▶ | { | ||||||||
|
Subroutine
comment: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 65 | 0 | ▶ | $_[0]->{'COMMENT'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 66 | 0 | return $_[0]->{'COMMENT'}; | |||||||||
| 67 | } | ||||||||||
| 68 | |||||||||||
| 69 | sub ctime | ||||||||||
| 70 | 0 | ▶ | { | ||||||||
|
Subroutine
ctime: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 71 | 0 | ▶ | $_[0]->{'CTIME'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 72 | 0 | return $_[0]->{'CTIME'}; | |||||||||
| 73 | } | ||||||||||
| 74 | |||||||||||
| 75 | sub mtime | ||||||||||
| 76 | 0 | ▶ | { | ||||||||
|
Subroutine
mtime: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 77 | 0 | ▶ | $_[0]->{'MTIME'} = $_[1] if(@_ == 2); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 78 | 0 | return $_[0]->{'MTIME'}; | |||||||||
| 79 | } | ||||||||||
| 80 | |||||||||||
| 81 | 1 | 1; | |||||||||