| 1 | package Grimlock::Schema::ResultSet::Entry; | ||||||||||||
| 2 | { | ||||||||||||
| 3 | 6 | $Grimlock::Schema::ResultSet::Entry::VERSION = '0.11'; | |||||||||||
| 4 | } | ||||||||||||
| 5 | 6 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 6 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 6 | ▶ | use base 'DBIx::Class::ResultSet'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | |||||||||||||
| 9 | 0 | ▶ | sub front_page_entries { | ||||||||||
|
Subroutine
front_page_entries: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||
| 10 | 0 | my ($self, $limit) = @_; | |||||||||||
| 11 | 0 | ▶ | return $self->search( | ||||||||||
|
Condition0%0/2
$limit || 50
MC/DC0%0/1
$limit || 50
$limit
Truth table0%0/2
A
A= $limit
| |||||||||||||
| 12 | { | ||||||||||||
| 13 | parent => undef, | ||||||||||||
| 14 | published => 1 | ||||||||||||
| 15 | }, | ||||||||||||
| 16 | { | ||||||||||||
| 17 | rows => $limit || 50, | ||||||||||||
| 18 | order_by => { | ||||||||||||
| 19 | -desc => 'created_at' | ||||||||||||
| 20 | }, | ||||||||||||
| 21 | } | ||||||||||||
| 22 | ); | ||||||||||||
| 23 | } | ||||||||||||
| 24 | |||||||||||||
| 25 | 6 | 1; | |||||||||||
| 26 | |||||||||||||