| 1 | package Rose::HTML::Label; | ||||||||||||||
| 2 | |||||||||||||||
| 3 | 36 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | |||||||||||||||
| 5 | 36 | ▶ | use Rose::HTML::Text; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 6 | |||||||||||||||
| 7 | 36 | ▶ | use base 'Rose::HTML::Object'; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 8 | |||||||||||||||
| 9 | 36 | our $VERSION = '0.606'; | |||||||||||||
| 10 | |||||||||||||||
| 11 | 36 | __PACKAGE__->add_valid_html_attrs | |||||||||||||
| 12 | ( | ||||||||||||||
| 13 | 'for', # IDREF #IMPLIED -- matches field ID value -- | ||||||||||||||
| 14 | 'accesskey', # %Character; #IMPLIED -- accessibility key character -- | ||||||||||||||
| 15 | 'onfocus', # %Script; #IMPLIED -- the element got the focus -- | ||||||||||||||
| 16 | 'onblur', # %Script; #IMPLIED -- the element lost the focus -- | ||||||||||||||
| 17 | ); | ||||||||||||||
| 18 | |||||||||||||||
| 19 | 0 | ▶ | sub element { 'label' } | ||||||||||||
|
Subroutine
element: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||
| 20 | 790 | ▶ | sub html_element { 'label' } | ||||||||||||
|
Subroutine
html_element: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||
| 21 | 48 | ▶ | sub xhtml_element { 'label' } | ||||||||||||
|
Subroutine
xhtml_element: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||
| 22 | |||||||||||||||
| 23 | sub contents | ||||||||||||||
| 24 | 416 | ▶ | { | ||||||||||||
|
Subroutine
contents: called CC=3 SCAR=11.3
Pod
undocumented
| |||||||||||||||
| 25 | 416 | my($self) = shift; | |||||||||||||
| 26 | 416 | ▶ | $self->children(map { UNIVERSAL::isa($_, 'Rose::HTML::Object') ? $_ : | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 27 | Rose::HTML::Text->new(html => $_) } @_) if(@_); | ||||||||||||||
| 28 | 416 | return join('', map { $_->html } $self->children) | |||||||||||||
| 29 | } | ||||||||||||||
| 30 | |||||||||||||||
| 31 | 36 | 1; | |||||||||||||
| 32 | |||||||||||||||
| 33 | __END__ | ||||||||||||||