| 1 | 101 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | |||||||||||
| 3 | package HTML::FormFu::Element::Fieldset; | ||||||||||
| 4 | 101 | $HTML::FormFu::Element::Fieldset::VERSION = '2.09'; | |||||||||
| 5 | # ABSTRACT: Fieldset element | ||||||||||
| 6 | |||||||||||
| 7 | 101 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 101 | extends 'HTML::FormFu::Element::Block'; | |||||||||
| 9 | |||||||||||
| 10 | 101 | ▶ | use HTML::FormFu::Util qw( xml_escape ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 101 | __PACKAGE__->mk_output_accessors(qw( legend )); | |||||||||
| 13 | |||||||||||
| 14 | 101 | __PACKAGE__->mk_attrs(qw( legend_attributes )); | |||||||||
| 15 | |||||||||||
| 16 | 110 | ▶ | after BUILD => sub { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 110 | my $self = shift; | |||||||||
| 18 | |||||||||||
| 19 | 110 | $self->tag('fieldset'); | |||||||||
| 20 | |||||||||||
| 21 | 110 | return; | |||||||||
| 22 | 101 | }; | |||||||||
| 23 | |||||||||||
| 24 | 77 | ▶ | sub render_data_non_recursive { | ||||||||
|
Subroutine
render_data_non_recursive: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 25 | 77 | my ( $self, $args ) = @_; | |||||||||
| 26 | |||||||||||
| 27 | 77 | ▶ | my $render = $self->SUPER::render_data_non_recursive( | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | { legend => $self->legend, | ||||||||||
| 29 | legend_attributes => xml_escape( $self->legend_attributes ), | ||||||||||
| 30 | $args ? %$args : (), | ||||||||||
| 31 | } ); | ||||||||||
| 32 | |||||||||||
| 33 | 77 | return $render; | |||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | 101 | __PACKAGE__->meta->make_immutable; | |||||||||
| 37 | |||||||||||
| 38 | 101 | 1; | |||||||||
| 39 | |||||||||||
| 40 | __END__ | ||||||||||