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