blib/lib/CallBackery/GuiPlugin/AbstractHtml.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
getData
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package CallBackery::GuiPlugin::AbstractHtml;
2 use Carp qw(carp croak);
3 use CallBackery::Translate qw(trm);
4 use CallBackery::Exception qw(mkerror);
5  
6  
7 =head1 NAME
8  
9 CallBackery::GuiPlugin::AbstractHtml - render server generated HTML
10  
11 =head1 SYNOPSIS
12  
13 use Mojo::Base 'CallBackery::GuiPlugin::AbstractHtml';
14  
15 =head1 DESCRIPTION
16  
17 The base class for html generator plugins.
18  
19 =cut
20  
21 use Mojo::Base 'CallBackery::GuiPlugin::Abstract';
22  
23 =head1 ATTRIBUTES
24  
25 The attributes of the L<CallBackery::GuiPlugin::Abstract> class plus:
26  
27 =head2 screenCfg
28  
29 Tells the frontend that we are going to render some HTML.
30  
31 =cut
32  
33 has screenCfg => sub {
34 my $self = shift;
35 return {
36 type => 'html',
37 options => {},
38 }
39 };
40  
41  
42 =head1 METHODS
43  
44 All the methods of L<CallBackery::GuiPlugin::Abstact> plus:
45  
46 =cut
47  
48  
49 =head2 getData (parentFormData)
50  
51 Return the data to be shown in the HTML field
52  
53 =cut
54  
55 sub getData {
56 my $self = shift;
57 my $parentFormData = shift;
58 return '';
59 }
60  
61  
62 1;
63 __END__