line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bootylicious::ArticleArchiveBase; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
41
|
use strict; |
|
5
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
220
|
|
4
|
5
|
|
|
5
|
|
23
|
use warnings; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
144
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
21
|
use base 'Mojo::Base'; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
1124
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->attr('articles'); |
9
|
|
|
|
|
|
|
__PACKAGE__->attr('year'); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my @months = ( |
12
|
|
|
|
|
|
|
qw/January February March April May July June August September October November December/ |
13
|
|
|
|
|
|
|
); |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
16
|
7
|
|
|
7
|
1
|
38
|
my $self = shift->SUPER::new(@_); |
17
|
|
|
|
|
|
|
|
18
|
7
|
|
|
|
|
79
|
return $self->build; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub month_name { |
22
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
23
|
|
|
|
|
|
|
|
24
|
0
|
0
|
|
|
|
0
|
return '' unless $self->month; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
0
|
return $months[$self->month - 1]; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
11
|
|
|
11
|
0
|
3430
|
sub next { shift->articles->next } |
30
|
3
|
|
|
3
|
0
|
11
|
sub size { shift->articles->size } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |