line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# NEVER EDIT this file. It was generated and will be overwritten without |
2
|
|
|
|
|
|
|
# notice upon regeneration of this application. You have been warned. |
3
|
|
|
|
|
|
|
package Gantry::Control::Model::GEN::auth_group_members; |
4
|
4
|
|
|
4
|
|
26
|
use strict; use warnings; |
|
4
|
|
|
4
|
|
9
|
|
|
4
|
|
|
|
|
112
|
|
|
4
|
|
|
|
|
21
|
|
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
89
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
20
|
use base 'Gantry::Utils::Model::Auth'; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
295
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
21
|
use Carp; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
4138
|
|
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
0
|
1
|
|
sub get_table_name { return 'auth_group_members'; } |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
0
|
1
|
|
sub get_primary_col { return 'id'; } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub get_essential_cols { |
15
|
0
|
|
|
0
|
1
|
|
return 'id, user_id, group_id'; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub get_primary_key { |
19
|
0
|
|
|
0
|
1
|
|
goto &id; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub id { |
23
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
24
|
0
|
|
|
|
|
|
my $value = shift; |
25
|
|
|
|
|
|
|
|
26
|
0
|
0
|
|
|
|
|
if ( defined $value ) { |
27
|
0
|
|
|
|
|
|
return $self->set_id( $value ); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
return $self->get_id(); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub set_id { |
34
|
0
|
|
|
0
|
1
|
|
croak 'Can\'t change primary key of row'; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub get_id { |
38
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
39
|
0
|
|
|
|
|
|
return $self->{id}; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub quote_id { |
43
|
0
|
|
|
0
|
1
|
|
return $_[1]; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub group_id { |
47
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
48
|
0
|
|
|
|
|
|
my $value = shift; |
49
|
|
|
|
|
|
|
|
50
|
0
|
0
|
|
|
|
|
if ( defined $value ) { return $self->set_group_id( $value ); } |
|
0
|
|
|
|
|
|
|
51
|
0
|
|
|
|
|
|
else { return $self->get_group_id(); } |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
sub set_group_id { |
55
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
56
|
0
|
|
|
|
|
|
my $value = shift; |
57
|
|
|
|
|
|
|
|
58
|
0
|
0
|
|
|
|
|
if ( ref $value ) { |
|
|
0
|
|
|
|
|
|
59
|
0
|
|
|
|
|
|
$self->{group_id_REF} = $value; |
60
|
0
|
|
|
|
|
|
$self->{group_id} = $value->id; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
elsif ( defined $value ) { |
63
|
0
|
|
|
|
|
|
delete $self->{group_id_REF}; |
64
|
0
|
|
|
|
|
|
$self->{group_id} = $value; |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
else { |
67
|
0
|
|
|
|
|
|
croak 'set_group_id requires a value'; |
68
|
|
|
|
|
|
|
} |
69
|
|
|
|
|
|
|
|
70
|
0
|
|
|
|
|
|
$self->{__DIRTY__}{group_id}++; |
71
|
|
|
|
|
|
|
|
72
|
0
|
|
|
|
|
|
return $value; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub get_group_id { |
76
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
77
|
|
|
|
|
|
|
|
78
|
0
|
0
|
|
|
|
|
if ( not defined $self->{group_id_REF} ) { |
79
|
0
|
|
|
|
|
|
$self->{group_id_REF} |
80
|
|
|
|
|
|
|
= Gantry::Control::Model::auth_groups->retrieve_by_pk( |
81
|
|
|
|
|
|
|
$self->{group_id} |
82
|
|
|
|
|
|
|
); |
83
|
|
|
|
|
|
|
|
84
|
0
|
0
|
|
|
|
|
$self->{group_id} = $self->{group_id_REF}->get_primary_key() |
85
|
|
|
|
|
|
|
if ( defined $self->{group_id_REF} ); |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
|
88
|
0
|
|
|
|
|
|
return $self->{group_id_REF}; |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
sub get_group_id_raw { |
92
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
93
|
|
|
|
|
|
|
|
94
|
0
|
0
|
|
|
|
|
if ( @_ ) { |
95
|
0
|
|
|
|
|
|
croak 'get_group_id_raw is only a get accessor, pass it nothing'; |
96
|
|
|
|
|
|
|
} |
97
|
|
|
|
|
|
|
|
98
|
0
|
|
|
|
|
|
return $self->{group_id}; |
99
|
|
|
|
|
|
|
} |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
sub quote_group_id { |
102
|
0
|
0
|
|
0
|
1
|
|
return 'NULL' unless defined $_[1]; |
103
|
0
|
0
|
|
|
|
|
return ( ref( $_[1] ) ) ? "$_[1]" : $_[1]; |
104
|
|
|
|
|
|
|
} |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
sub user_id { |
107
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
108
|
0
|
|
|
|
|
|
my $value = shift; |
109
|
|
|
|
|
|
|
|
110
|
0
|
0
|
|
|
|
|
if ( defined $value ) { return $self->set_user_id( $value ); } |
|
0
|
|
|
|
|
|
|
111
|
0
|
|
|
|
|
|
else { return $self->get_user_id(); } |
112
|
|
|
|
|
|
|
} |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
sub set_user_id { |
115
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
116
|
0
|
|
|
|
|
|
my $value = shift; |
117
|
|
|
|
|
|
|
|
118
|
0
|
0
|
|
|
|
|
if ( ref $value ) { |
|
|
0
|
|
|
|
|
|
119
|
0
|
|
|
|
|
|
$self->{user_id_REF} = $value; |
120
|
0
|
|
|
|
|
|
$self->{user_id} = $value->id; |
121
|
|
|
|
|
|
|
} |
122
|
|
|
|
|
|
|
elsif ( defined $value ) { |
123
|
0
|
|
|
|
|
|
delete $self->{user_id_REF}; |
124
|
0
|
|
|
|
|
|
$self->{user_id} = $value; |
125
|
|
|
|
|
|
|
} |
126
|
|
|
|
|
|
|
else { |
127
|
0
|
|
|
|
|
|
croak 'set_user_id requires a value'; |
128
|
|
|
|
|
|
|
} |
129
|
|
|
|
|
|
|
|
130
|
0
|
|
|
|
|
|
$self->{__DIRTY__}{user_id}++; |
131
|
|
|
|
|
|
|
|
132
|
0
|
|
|
|
|
|
return $value; |
133
|
|
|
|
|
|
|
} |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
sub get_user_id { |
136
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
137
|
|
|
|
|
|
|
|
138
|
0
|
0
|
|
|
|
|
if ( not defined $self->{user_id_REF} ) { |
139
|
0
|
|
|
|
|
|
$self->{user_id_REF} |
140
|
|
|
|
|
|
|
= Gantry::Control::Model::auth_users->retrieve_by_pk( |
141
|
|
|
|
|
|
|
$self->{user_id} |
142
|
|
|
|
|
|
|
); |
143
|
|
|
|
|
|
|
|
144
|
0
|
0
|
|
|
|
|
$self->{user_id} = $self->{user_id_REF}->get_primary_key() |
145
|
|
|
|
|
|
|
if ( defined $self->{user_id_REF} ); |
146
|
|
|
|
|
|
|
} |
147
|
|
|
|
|
|
|
|
148
|
0
|
|
|
|
|
|
return $self->{user_id_REF}; |
149
|
|
|
|
|
|
|
} |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
sub get_user_id_raw { |
152
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
153
|
|
|
|
|
|
|
|
154
|
0
|
0
|
|
|
|
|
if ( @_ ) { |
155
|
0
|
|
|
|
|
|
croak 'get_user_id_raw is only a get accessor, pass it nothing'; |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
|
158
|
0
|
|
|
|
|
|
return $self->{user_id}; |
159
|
|
|
|
|
|
|
} |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
sub quote_user_id { |
162
|
0
|
0
|
|
0
|
1
|
|
return 'NULL' unless defined $_[1]; |
163
|
0
|
0
|
|
|
|
|
return ( ref( $_[1] ) ) ? "$_[1]" : $_[1]; |
164
|
|
|
|
|
|
|
} |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
sub get_foreign_display_fields { |
167
|
0
|
|
|
0
|
1
|
|
return [ qw( ) ]; |
168
|
|
|
|
|
|
|
} |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
sub get_foreign_tables { |
171
|
0
|
|
|
0
|
1
|
|
return qw( |
172
|
|
|
|
|
|
|
Gantry::Control::Model::auth_users |
173
|
|
|
|
|
|
|
Gantry::Control::Model::auth_groups |
174
|
|
|
|
|
|
|
); |
175
|
|
|
|
|
|
|
} |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
sub foreign_display { |
178
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
} |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
1; |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
=head1 NAME |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
Gantry::Control::Model::GEN::auth_group_members - model for auth_group_members table |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=head1 METHODS |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=over 4 |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=item foreign_display |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=item get_essential_cols |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=item get_foreign_display_fields |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
=item get_foreign_tables |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=item get_group_id |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=item get_group_id_raw |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
=item get_id |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
=item get_primary_col |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
=item get_primary_key |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
=item get_sequence_name |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
=item get_table_name |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
=item get_user_id |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
=item get_user_id_raw |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
=item group_id |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
=item id |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
=item quote_group_id |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
=item quote_id |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
=item quote_user_id |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
=item set_group_id |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
=item set_id |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
=item set_user_id |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
=item user_id |
235
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
=back |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
=head1 AUTHOR |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
Generated by Bigtop, please don't edit. |
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
=cut |