| 1 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | |||||||||||
| 3 | package HTML::FormFu::Element::Image; | ||||||||||
| 4 | 5 | $HTML::FormFu::Element::Image::VERSION = '2.09'; | |||||||||
| 5 | # ABSTRACT: Image button form field | ||||||||||
| 6 | |||||||||||
| 7 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 5 | extends 'HTML::FormFu::Element::Button'; | |||||||||
| 10 | |||||||||||
| 11 | 5 | __PACKAGE__->mk_attr_accessors(qw( src width height )); | |||||||||
| 12 | |||||||||||
| 13 | 4 | ▶ | after BUILD => sub { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.0
| |||||||||||
| 14 | 4 | my $self = shift; | |||||||||
| 15 | |||||||||||
| 16 | 4 | $self->field_type('image'); | |||||||||
| 17 | |||||||||||
| 18 | 4 | ▶ | if ( !defined $self->src ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 4 | $self->src(''); | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 4 | return; | |||||||||
| 23 | 5 | }; | |||||||||
| 24 | |||||||||||
| 25 | 5 | __PACKAGE__->meta->make_immutable; | |||||||||
| 26 | |||||||||||
| 27 | 5 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||