line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
3096
|
use utf8; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
13
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Interchange6::Schema::ResultSet::Message; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
Interchange6::Schema::ResultSet::Message |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=cut |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 SYNOPSIS |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Provides extra accessor methods for L<Interchange6::Schema::Result::Message> |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
16
|
|
|
|
|
|
|
|
17
|
2
|
|
|
2
|
|
91
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
47
|
|
18
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
57
|
|
19
|
2
|
|
|
2
|
|
12
|
use mro 'c3'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
12
|
|
20
|
|
|
|
|
|
|
|
21
|
2
|
|
|
2
|
|
71
|
use parent 'Interchange6::Schema::ResultSet'; |
|
2
|
|
|
|
|
16
|
|
|
2
|
|
|
|
|
15
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 METHODS |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head2 approved |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Messages where C<approved> is true. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=cut |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub approved { |
32
|
0
|
|
|
0
|
1
|
|
return $_[0]->search( { -bool => $_[0]->me('approved') } ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head2 public |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Messages where C<public> is true. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub public { |
42
|
0
|
|
|
0
|
1
|
|
return $_[0]->search( { -bool => $_[0]->me('public') } ); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 with_author |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Prefetch C<author> relationship. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub with_author { |
52
|
0
|
|
|
0
|
1
|
|
return $_[0]->prefetch('author'); |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 with_children |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Prefetch C<children> relationship. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
sub with_children { |
62
|
0
|
|
|
0
|
1
|
|
return $_[0]->prefetch('children'); |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
1; |