| 1 | package App::ZofCMS::Plugin::QueryToTemplate; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | our $VERSION = '1.001010'; # VERSION | |||||||||
| 7 | |||||||||||
| 8 | 0 | ▶ | sub new { bless {}, shift; } | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | sub process { | ||||||||
|
Subroutine
process: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 11 | 0 | my ( $self, $template, $query, $config ) = @_; | |||||||||
| 12 | |||||||||||
| 13 | 0 | keys %$query; | |||||||||
| 14 | 0 | ▶ | while ( my ( $key, $value ) = each %$query ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | $template->{t}{"query_$key"} = $value; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 0 | return; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 1 | 1; | |||||||||
| 22 | __END__ | ||||||||||