« lib/OpusVL/AppKit/Action/AppKitForm.pm
↑ Summary
blib/lib/OpusVL/AppKit/FormFu/Constraint/AppKitUsername.pm »
| 1 | package OpusVL::AppKit::View::SimpleXML; | ||||||||||||
| 2 | |||||||||||||
| 3 | |||||||||||||
| 4 | |||||||||||||
| 5 | 9 | ▶ | use Moose; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 9 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | BEGIN | ||||||||||||
| 9 | 9 | ▶ | { | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | 9 | extends 'Catalyst::View'; | |||||||||||
| 11 | } | ||||||||||||
| 12 | 9 | ▶ | use XML::Simple; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 13 | |||||||||||||
| 14 | sub process | ||||||||||||
| 15 | 0 | ▶ | { | ||||||||||
|
Subroutine
process: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||
| 16 | 0 | my ( $self, $c ) = @_; | |||||||||||
| 17 | 0 | ▶ | $c->response->headers->content_type($c->stash->{content_type} || 'text/xml'); | ||||||||||
|
Condition0%0/2
$c->stash->{'content_type'} || 'text/xml'
MC/DC0%0/1
$c->stash->{'content_type'} || 'text/xml'
$c->stash->{'content_type'}
Truth table0%0/2
A
A= $c->stash->{'content_type'}
| |||||||||||||
| 18 | # FIXME: really ought to make the XML options optional too. | ||||||||||||
| 19 | $c->response->output( XMLout $c->stash->{xml}, | ||||||||||||
| 20 | NoAttr => 1, | ||||||||||||
| 21 | 0 | ▶ | RootName => $c->stash->{root_element} || 'root_element', | ||||||||||
|
Condition0%0/2
$c->stash->{'root_element'} || 'root_element'
MC/DC0%0/1
$c->stash->{'root_element'} || 'root_element'
$c->stash->{'root_element'}
Truth table0%0/2
A
A= $c->stash->{'root_element'}
| |||||||||||||
| 22 | XMLDecl => 1 ); | ||||||||||||
| 23 | 0 | return 1; | |||||||||||
| 24 | } | ||||||||||||
| 25 | |||||||||||||
| 26 | |||||||||||||
| 27 | 9 | 1; | |||||||||||
| 28 | |||||||||||||
| 29 | __END__ | ||||||||||||