| 1 | package CGI::Application::Plugin::HTMLPrototype; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 2 | ▶ | use HTML::Prototype; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 2 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | 2 | ▶ | use vars qw($VERSION @EXPORT $PROTOTYPE); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 2 | require Exporter; | |||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 2 | @EXPORT = qw( | |||||||||||||||||||
| 11 | prototype | ||||||||||||||||||||
| 12 | ); | ||||||||||||||||||||
| 13 | 2 | ▶ | sub import { goto &Exporter::import } | ||||||||||||||||||
|
Subroutine
import: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 2 | $VERSION = '0.20'; | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | ############################################## | ||||||||||||||||||||
| 19 | ### | ||||||||||||||||||||
| 20 | ### prototype | ||||||||||||||||||||
| 21 | ### | ||||||||||||||||||||
| 22 | ############################################## | ||||||||||||||||||||
| 23 | # | ||||||||||||||||||||
| 24 | # Get an HTML::Prototype object. The same object | ||||||||||||||||||||
| 25 | # will be returned everytime this method is called. | ||||||||||||||||||||
| 26 | # | ||||||||||||||||||||
| 27 | 1 | ▶ | sub prototype { | ||||||||||||||||||
|
Subroutine
prototype: called CC=2 SCAR=7.6
Pod
documented
| |||||||||||||||||||||
| 28 | 1 | my $class = shift; | |||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | 1 | ▶ | $PROTOTYPE ||= HTML::Prototype->new; | ||||||||||||||||||
|
Condition33%1/3
$CGI::Application::Plugin::HTMLPrototype::PROTOTYPE ||= "HTML::Prototype"->new
MC/DC0%0/2
$CGI::Application::Plugin::HTMLPrototype::PROTOTYPE ||= "HTML::Prototype"->new
$CGI::Application::Plugin::HTMLPrototype::PROTOTYPE
"HTML::Prototype"->new
Truth table33%1/3
A ||= B
A= $CGI::Application::Plugin::HTMLPrototype::PROTOTYPEB= "HTML::Prototype"->new
| |||||||||||||||||||||
| 31 | 1 | return $PROTOTYPE; | |||||||||||||||||||
| 32 | } | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | 2 | 1; | |||||||||||||||||||
| 35 | __END__ | ||||||||||||||||||||