« blib/lib/Tapper/Reports/Web/Controller/Tapper/Start.pm
↑ Summary
blib/lib/Tapper/Reports/Web/Controller/Tapper/Schedule.pm »
| 1 | package Tapper::Reports::Web::Controller::Tapper::Reports::Info; | ||
| 2 | 13 | our $AUTHORITY = 'cpan:TAPPER'; | |
| 3 | 13 | $Tapper::Reports::Web::Controller::Tapper::Reports::Info::VERSION = '5.0.17'; | |
| 4 | 13 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 13 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 13 | ▶ | use Data::Dumper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 13 | ▶ | use parent 'Tapper::Reports::Web::Controller::Base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | ▶ | sub firstid :Path('firstid') :Args(0) { |
|
Subroutine
firstid: called CC=1 SCAR=0.0
| |||
| 12 | 1 | my ( $self, $c ) = @_; | |
| 13 | |||
| 14 | # SELECT MIN(id) FROM report; | ||
| 15 | 1 | my $first_id = $c->model('TestrunDB')->resultset('Report')->get_column("id")->min; | |
| 16 | 1 | $c->response->body($first_id); | |
| 17 | 13 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 2 | ▶ | sub lastid :Path('lastid') :Args(0) { |
|
Subroutine
lastid: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 20 | 2 | my ( $self, $c ) = @_; | |
| 21 | |||
| 22 | # SELECT MAX(id) FROM report; | ||
| 23 | 2 | my $last_id = $c->model('TestrunDB')->resultset('Report')->get_column("id")->max; | |
| 24 | 2 | $c->response->body($last_id); | |
| 25 | 13 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | 13 | 1; | |
| 28 | |||
| 29 | __END__ | ||