line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package RapidApp::CoreSchema::Result::NavtreeNodeToRole; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
609
|
use strict; |
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
30
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
7
|
1
|
|
|
1
|
|
5909
|
use MooseX::NonMoose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
8
|
1
|
|
|
1
|
|
4761
|
use namespace::autoclean; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
9
|
|
|
|
|
|
|
extends 'DBIx::Class::Core'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->table("navtree_node_to_role"); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
14
|
|
|
|
|
|
|
"node_id", |
15
|
|
|
|
|
|
|
{ |
16
|
|
|
|
|
|
|
data_type => "integer", |
17
|
|
|
|
|
|
|
extra => { unsigned => 1 }, |
18
|
|
|
|
|
|
|
is_foreign_key => 1, |
19
|
|
|
|
|
|
|
is_nullable => 0, |
20
|
|
|
|
|
|
|
}, |
21
|
|
|
|
|
|
|
"role", |
22
|
|
|
|
|
|
|
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 64 }, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("node_id", "role"); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
27
|
|
|
|
|
|
|
"node", |
28
|
|
|
|
|
|
|
"RapidApp::CoreSchema::Result::NavtreeNode", |
29
|
|
|
|
|
|
|
{ id => "node_id" }, |
30
|
|
|
|
|
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
35
|
|
|
|
|
|
|
"role", |
36
|
|
|
|
|
|
|
"RapidApp::CoreSchema::Result::Role", |
37
|
|
|
|
|
|
|
{ role => "role" }, |
38
|
|
|
|
|
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__PACKAGE__->load_components('+RapidApp::DBIC::Component::TableSpec'); |
43
|
|
|
|
|
|
|
__PACKAGE__->apply_TableSpec; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__PACKAGE__->TableSpec_set_conf( |
46
|
|
|
|
|
|
|
title => 'Nav Node to Role Link', |
47
|
|
|
|
|
|
|
title_multi => 'Nav Node to Role Links', |
48
|
|
|
|
|
|
|
#iconCls => 'ra-icon-arrow-sprocket', |
49
|
|
|
|
|
|
|
#multiIconCls => 'ra-icon-arrow-sprockets', |
50
|
|
|
|
|
|
|
display_column => 'node_id', |
51
|
|
|
|
|
|
|
priority_rel_columns => 1, |
52
|
|
|
|
|
|
|
); |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__PACKAGE__->TableSpec_set_conf('column_properties_ordered', |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
node_id => { no_column => \1, no_multifilter => \1, no_quick_search => \1 }, |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
node => { |
59
|
|
|
|
|
|
|
header => 'Node', |
60
|
|
|
|
|
|
|
width => 150, |
61
|
|
|
|
|
|
|
}, |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
role => { |
64
|
|
|
|
|
|
|
header => 'role', |
65
|
|
|
|
|
|
|
width => 150, |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
); |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
72
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
73
|
|
|
|
|
|
|
1; |