line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Template::Lace::Model::HasChildren; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
11380
|
use Moo::Role; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
9
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
my @children = (); |
6
|
|
|
|
|
|
|
|
7
|
0
|
|
|
0
|
1
|
0
|
sub children { @children } |
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
0
|
8
|
sub add_child { push @children, pop } |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
1; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 NAME |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Template::Lace::Model::HasChildren - Collection children components |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 SYNOPSIS |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
package MyApp::Template::List; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
with 'Template::Lace::ModelRole', |
22
|
|
|
|
|
|
|
'Template::Lace::Model::HasChildren'; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 DESCRIPTION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Collects any children components that might be added. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
Please note these are the children components added as part of the model to |
31
|
|
|
|
|
|
|
which this component is attached. This component might define its own component |
32
|
|
|
|
|
|
|
hierachy. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 METHODS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
This interface exposes the following public methods |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head2 children |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Returns an array of the child components under this component (as defined by |
41
|
|
|
|
|
|
|
the top model component hierachy). |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SEE ALSO |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
L<Template::Lace>. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHOR |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Please See L<Template::Lace> for authorship and contributor information. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Please see L<Template::Lace> for copyright and license information. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |