Line 0
Link Here
|
|
|
1 |
package Koha::DataObject::AuthorisedValue; |
2 |
|
3 |
# This file is part of Koha. |
4 |
# |
5 |
# Koha is free software; you can redistribute it and/or modify it under the |
6 |
# terms of the GNU General Public License as published by the Free Software |
7 |
# Foundation; either version 2 of the License, or (at your option) any later |
8 |
# version. |
9 |
# |
10 |
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY |
11 |
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
12 |
# A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
13 |
# |
14 |
# You should have received a copy of the GNU General Public License along |
15 |
# with Koha; if not, write to the Free Software Foundation, Inc., |
16 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
17 |
|
18 |
=head1 NAME |
19 |
|
20 |
Koha::DataObject::AuthorisedValue - Row-level class for the authorised_values table |
21 |
|
22 |
=cut |
23 |
|
24 |
use base qw/Koha::SearchBuilder::Record/; |
25 |
|
26 |
use Modern::Perl; |
27 |
|
28 |
sub _Init { |
29 |
my $self = shift; |
30 |
|
31 |
$self->Table("authorised_values"); |
32 |
|
33 |
return $self->SUPER::_Init(@_); |
34 |
} |
35 |
|
36 |
# Tell Record what the primary keys are |
37 |
sub _PrimaryKeys { |
38 |
return ['id']; |
39 |
} |
40 |
|
41 |
sub _ClassAccessible { |
42 |
{ |
43 |
id => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
44 |
category => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
45 |
authorised_value => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
46 |
lib => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
47 |
lib_opac => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
48 |
mageurl => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
49 |
}; |
50 |
} |
51 |
|
52 |
|
53 |
=head1 AUTHOR |
54 |
|
55 |
Kyle M Hall, E<lt>khall@bywatersolutions.comE<gt> |
56 |
|
57 |
=cut |
58 |
|
59 |
1; |
60 |
|
61 |
__END__ |