| 1 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 2 | ▶ | use mro 'c3'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | 2 | ▶ | use parent 'Interchange6::Schema::ResultSet'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | ▶ | return $_[0]->search( { -bool => $_[0]->me('approved') } ); |
|
Subroutine
approved: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | } | ||
| 34 | |||
| 35 | =head2 public | ||
| 36 | |||
| 37 | Messages where C<public> is true. | ||
| 38 | |||
| 39 | =cut | ||
| 40 | |||
| 41 | sub public { | ||
| 42 | 0 | ▶ | return $_[0]->search( { -bool => $_[0]->me('public') } ); |
|
Subroutine
public: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 43 | } | ||
| 44 | |||
| 45 | =head2 with_author | ||
| 46 | |||
| 47 | Prefetch C<author> relationship. | ||
| 48 | |||
| 49 | =cut | ||
| 50 | |||
| 51 | sub with_author { | ||
| 52 | 0 | ▶ | return $_[0]->prefetch('author'); |
|
Subroutine
with_author: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 53 | } | ||
| 54 | |||
| 55 | =head2 with_children | ||
| 56 | |||
| 57 | Prefetch C<children> relationship. | ||
| 58 | |||
| 59 | =cut | ||
| 60 | |||
| 61 | sub with_children { | ||
| 62 | 0 | ▶ | return $_[0]->prefetch('children'); |
|
Subroutine
with_children: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 63 | } | ||
| 64 | |||
| 65 | 2 | 1; | |