| 1 | package HTML::Form::SubmitInput; | ||||||||||
| 2 | |||||||||||
| 3 | 11 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 11 | ▶ | use parent 'HTML::Form::Input'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 11 | our $VERSION = '6.13'; | |||||||||
| 7 | |||||||||||
| 8 | # ABSTRACT: An HTML form submit input element for use with HTML::Form | ||||||||||
| 9 | |||||||||||
| 10 | #input/image | ||||||||||
| 11 | #input/submit | ||||||||||
| 12 | |||||||||||
| 13 | 6 | ▶ | sub click { | ||||||||
|
Subroutine
click: called CC=4 SCAR=13.9
Pod
undocumented
| |||||||||||
| 14 | 6 | my ( $self, $form, $x, $y ) = @_; | |||||||||
| 15 | 6 | ▶ | for ( $x, $y ) { $_ = 1 unless defined; } | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 6 | local ( $self->{clicked} ) = [ $x, $y ]; | |||||||||
| 17 | 6 | ▶ | local ( $self->{value} ) = "" unless defined $self->value; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 6 | return $form->make_request; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 7 | ▶ | sub form_name_value { | ||||||||
|
Subroutine
form_name_value: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 22 | 7 | my $self = shift; | |||||||||
| 23 | 7 | ▶ | return unless $self->{clicked}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | 4 | return $self->SUPER::form_name_value(@_); | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 11 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||