| 1 | package # hide from PAUSE | ||
| 2 | Hopkins::Plugin::HMI::Catalyst::Controller::Work; | ||
| 3 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | $Hopkins::Plugin::HMI::Catalyst::Controller::Work::VERSION = '0.900'; | |
| 5 | } | ||
| 6 | |||
| 7 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | Hopkins::Plugin::HMI::Catalyst::Controller::Work | ||
| 13 | |||
| 14 | =head1 DESCRIPTION | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | 1 | ▶ | use base 'Hopkins::Plugin::HMI::Catalyst::Controller'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | =head1 METHODS | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | =over 4 | ||
| 25 | |||
| 26 | =item abort | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | 0 | ▶ | sub abort : Local |
|
Subroutine
abort: not called CC=1 SCAR=6.9
| |||
| 31 | { | ||
| 32 | 0 | my $self = shift; | |
| 33 | 0 | my $c = shift; | |
| 34 | 0 | my $queue = shift; | |
| 35 | 0 | my $id = shift; | |
| 36 | |||
| 37 | 0 | $c->config->{hopkins}->kernel->post(manager => abort => $queue => $id); | |
| 38 | |||
| 39 | 0 | $c->res->redirect($c->uri_for('/queue/details', $queue )); | |
| 40 | 1 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 41 | |||
| 42 | =back | ||
| 43 | |||
| 44 | =head1 AUTHOR | ||
| 45 | |||
| 46 | Mike Eldridge <diz@cpan.org> | ||
| 47 | |||
| 48 | =head1 LICENSE | ||
| 49 | |||
| 50 | This program is free software; you may redistribute it | ||
| 51 | and/or modify it under the same terms as Perl itself. | ||
| 52 | |||
| 53 | =cut | ||
| 54 | |||
| 55 | 1 | 1; | |