line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package LUGS::Events::Parser::Event; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
41
|
use strict; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
185
|
|
4
|
5
|
|
|
5
|
|
33
|
use warnings; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
2309
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
9
|
|
|
|
|
|
|
{ |
10
|
21
|
|
|
21
|
0
|
56
|
my $class = shift; |
11
|
|
|
|
|
|
|
|
12
|
21
|
|
|
|
|
369
|
return bless { event => { @_ } }, $class; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub get_event_date |
16
|
|
|
|
|
|
|
{ |
17
|
16
|
|
|
16
|
0
|
70
|
my $self = shift; |
18
|
|
|
|
|
|
|
|
19
|
16
|
|
|
|
|
40
|
return $self->{event}->{event}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub get_event_year |
23
|
|
|
|
|
|
|
{ |
24
|
16
|
|
|
16
|
0
|
25
|
my $self = shift; |
25
|
|
|
|
|
|
|
|
26
|
16
|
|
|
|
|
60
|
return substr($self->{event}->{event}, 0, 4); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub get_event_month |
30
|
|
|
|
|
|
|
{ |
31
|
16
|
|
|
16
|
0
|
28
|
my $self = shift; |
32
|
|
|
|
|
|
|
|
33
|
16
|
|
|
|
|
54
|
return substr($self->{event}->{event}, 4, 2); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub get_event_day |
37
|
|
|
|
|
|
|
{ |
38
|
16
|
|
|
16
|
0
|
30
|
my $self = shift; |
39
|
|
|
|
|
|
|
|
40
|
16
|
|
|
|
|
41
|
return substr($self->{event}->{event}, 6, 2); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub get_event_simple_day |
44
|
|
|
|
|
|
|
{ |
45
|
16
|
|
|
16
|
0
|
23
|
my $self = shift; |
46
|
|
|
|
|
|
|
|
47
|
16
|
|
|
|
|
39
|
return $self->{event}->{day}; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub get_event_weekday |
51
|
|
|
|
|
|
|
{ |
52
|
16
|
|
|
16
|
0
|
40
|
my $self = shift; |
53
|
|
|
|
|
|
|
|
54
|
16
|
|
|
|
|
36
|
return $self->{event}->{weekday}; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub get_event_time |
58
|
|
|
|
|
|
|
{ |
59
|
16
|
|
|
16
|
0
|
27
|
my $self = shift; |
60
|
|
|
|
|
|
|
|
61
|
16
|
|
|
|
|
84
|
return $self->{event}->{time}; |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
sub get_event_title |
65
|
|
|
|
|
|
|
{ |
66
|
16
|
|
|
16
|
0
|
29
|
my $self = shift; |
67
|
|
|
|
|
|
|
|
68
|
16
|
|
|
|
|
39
|
return $self->{event}->{title}; |
69
|
|
|
|
|
|
|
} |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
sub get_event_color |
72
|
|
|
|
|
|
|
{ |
73
|
16
|
|
|
16
|
0
|
23
|
my $self = shift; |
74
|
|
|
|
|
|
|
|
75
|
16
|
|
|
|
|
38
|
return $self->{event}->{color}; |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
sub get_event_location |
79
|
|
|
|
|
|
|
{ |
80
|
18
|
|
|
18
|
0
|
35
|
my $self = shift; |
81
|
|
|
|
|
|
|
|
82
|
18
|
|
|
|
|
43
|
return $self->{event}->{location}; |
83
|
|
|
|
|
|
|
} |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
sub get_event_responsible |
86
|
|
|
|
|
|
|
{ |
87
|
18
|
|
|
18
|
0
|
32
|
my $self = shift; |
88
|
|
|
|
|
|
|
|
89
|
18
|
|
|
|
|
34
|
return $self->{event}->{responsible}; |
90
|
|
|
|
|
|
|
} |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
sub get_event_more |
93
|
|
|
|
|
|
|
{ |
94
|
21
|
|
|
21
|
0
|
42
|
my $self = shift; |
95
|
|
|
|
|
|
|
|
96
|
21
|
|
|
|
|
59
|
return $self->{event}->{more}; |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
sub get_event_anchor |
100
|
|
|
|
|
|
|
{ |
101
|
16
|
|
|
16
|
0
|
23
|
my $self = shift; |
102
|
|
|
|
|
|
|
|
103
|
16
|
|
|
|
|
137
|
return $self->{event}->{anchor}; |
104
|
|
|
|
|
|
|
} |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
1; |