line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
7
|
|
|
7
|
|
4084
|
use strict; |
|
7
|
|
|
|
|
18
|
|
|
7
|
|
|
|
|
360
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package HTML::FormFu::Model; |
4
|
|
|
|
|
|
|
$HTML::FormFu::Model::VERSION = '2.07'; |
5
|
|
|
|
|
|
|
# ABSTRACT: base class for models |
6
|
|
|
|
|
|
|
|
7
|
7
|
|
|
7
|
|
40
|
use Moose; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
51
|
|
8
|
7
|
|
|
7
|
|
48844
|
use MooseX::Attribute::Chained; |
|
7
|
|
|
|
|
17
|
|
|
7
|
|
|
|
|
452
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
with 'HTML::FormFu::Role::HasParent'; |
11
|
|
|
|
|
|
|
|
12
|
7
|
|
|
7
|
|
52
|
use HTML::FormFu::ObjectUtil qw( form parent ); |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
445
|
|
13
|
7
|
|
|
7
|
|
46
|
use Carp qw( croak ); |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
1712
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
has type => ( is => 'rw', traits => ['Chained'] ); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub default_values { |
18
|
0
|
|
|
0
|
0
|
|
croak "'default_values' method not implemented by Model class"; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub update { |
22
|
0
|
|
|
0
|
0
|
|
croak "'update' method not implemented by Model class"; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub create { |
26
|
0
|
|
|
0
|
0
|
|
croak "'create' method not implemented by Model class"; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub options_from_model { |
30
|
0
|
|
|
0
|
0
|
|
croak "'options_from_model' method not implemented by Model class"; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub clone { |
34
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
my %new = %$self; |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
return bless \%new, ref $self; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=pod |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=encoding UTF-8 |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 NAME |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
HTML::FormFu::Model - base class for models |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 VERSION |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
version 2.07 |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 SEE ALSO |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
L<HTML::FormFu::Model::DBIC> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
L<HTML::FormFu::Model::LDAP> |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 AUTHOR |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Carl Franks, C<cfranks@cpan.org> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 LICENSE |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This library is free software, you can redistribute it and/or modify it under |
72
|
|
|
|
|
|
|
the same terms as Perl itself. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 AUTHOR |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Carl Franks <cpan@fireartist.com> |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
This software is copyright (c) 2018 by Carl Franks. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
83
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |