| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package MojoMojo::Schema::Result::Link; |
|
2
|
|
|
|
|
|
|
|
|
3
|
40
|
|
|
40
|
|
42022
|
use strict; |
|
|
40
|
|
|
|
|
105
|
|
|
|
40
|
|
|
|
|
1158
|
|
|
4
|
40
|
|
|
40
|
|
206
|
use warnings; |
|
|
40
|
|
|
|
|
96
|
|
|
|
40
|
|
|
|
|
1014
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
40
|
|
|
40
|
|
287
|
use parent 'MojoMojo::Schema::Base::Result'; |
|
|
40
|
|
|
|
|
86
|
|
|
|
40
|
|
|
|
|
236
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
MojoMojo::Schema::Result::Link - Links among pages |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head2 from_page |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
L<MojoMojo::Schema::Result::Page> object being the source of a link |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head2 to_page |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
L<MojoMojo::Schema::Result::Page> object being the target of a link |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__PACKAGE__->load_components( "Core" ); |
|
25
|
|
|
|
|
|
|
__PACKAGE__->table("link"); |
|
26
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
|
27
|
|
|
|
|
|
|
"id", |
|
28
|
|
|
|
|
|
|
{ data_type => "INTEGER", is_nullable => 0, size => undef, is_auto_increment => 1 }, |
|
29
|
|
|
|
|
|
|
"from_page", |
|
30
|
|
|
|
|
|
|
{ data_type => "INTEGER", is_nullable => 0, size => undef }, |
|
31
|
|
|
|
|
|
|
"to_page", |
|
32
|
|
|
|
|
|
|
{ data_type => "INTEGER", is_nullable => 0, size => undef }, |
|
33
|
|
|
|
|
|
|
); |
|
34
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("id"); |
|
35
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( "from_page", "MojoMojo::Schema::Result::Page", { id => "from_page" } ); |
|
36
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( "to_page", "MojoMojo::Schema::Result::Page", { id => "to_page" } ); |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 AUTHOR |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Marcus Ramberg <mramberg@cpan.org> |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 LICENSE |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This library is free software. You can redistribute it and/or modify |
|
45
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
1; |