| 1 | package OpusVL::AppKit::Controller::Search; | ||
| 2 | |||
| 3 | 9 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 9 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 9 | ▶ | BEGIN { extends 'Catalyst::Controller'; }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 9 | with 'OpusVL::AppKit::RolesFor::Controller::GUI'; | |
| 8 | |||
| 9 | 9 | __PACKAGE__->config( | |
| 10 | appkit_name => 'Search', | ||
| 11 | ); | ||
| 12 | |||
| 13 | sub auto | ||
| 14 | : Action | ||
| 15 | : AppKitFeature('Search box') | ||
| 16 | { | ||
| 17 | 0 | ▶ | my ($self, $c) = @_; |
|
Subroutine
auto: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 18 | |||
| 19 | 0 | push @{$c->stash->{breadcrumbs}},{ | |
| 20 | name => 'Search', | ||
| 21 | url => $c->uri_for($c->controller->action_for('index')), | ||
| 22 | }; | ||
| 23 | 9 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | |||
| 26 | sub index :Path | ||
| 27 | : AppKitFeature('Search box') | ||
| 28 | { | ||
| 29 | 0 | ▶ | my ($self, $c) = @_; |
|
Subroutine
index: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 30 | |||
| 31 | 0 | $c->_appkit_stash_searches($c->req->param('q')); | |
| 32 | 0 | $c->stash->{query} = $c->req->param('q'); | |
| 33 | 9 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 34 | |||
| 35 | __END__ | ||
| 36 | |||
| 37 | =pod | ||
| 38 | |||
| 39 | =encoding UTF-8 | ||
| 40 | |||
| 41 | =head1 NAME | ||
| 42 | |||
| 43 | OpusVL::AppKit::Controller::Search | ||
| 44 | |||
| 45 | =head1 VERSION | ||
| 46 | |||
| 47 | version 2.24 | ||
| 48 | |||
| 49 | =head1 AUTHOR | ||
| 50 | |||
| 51 | OpusVL - www.opusvl.com | ||
| 52 | |||
| 53 | =head1 COPYRIGHT AND LICENSE | ||
| 54 | |||
| 55 | This software is copyright (c) 2010 by OpusVL - www.opusvl.com. | ||
| 56 | |||
| 57 | This is free software; you can redistribute it and/or modify it under | ||
| 58 | the same terms as the Perl 5 programming language system itself. | ||
| 59 | |||
| 60 | =cut | ||