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 |
sub _Init { |
27 |
my $self = shift; |
28 |
|
29 |
$self->Table("authorised_values"); |
30 |
|
31 |
return $self->SUPER::_Init(@_); |
32 |
} |
33 |
|
34 |
# Tell Record what the primary keys are |
35 |
sub _PrimaryKeys { |
36 |
return ['id']; |
37 |
} |
38 |
|
39 |
sub _ClassAccessible { |
40 |
{ |
41 |
id => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
42 |
category => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
43 |
authorised_value => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
44 |
lib => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
45 |
lib_opac => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
46 |
mageurl => { 'read' => 1, 'auto' => 1, 'public' => 1, }, |
47 |
}; |
48 |
} |
49 |
|
50 |
|
51 |
=head1 AUTHOR |
52 |
|
53 |
Kyle M Hall, E<lt>khall@bywatersolutions.comE<gt> |
54 |
|
55 |
=cut |
56 |
|
57 |
1; |
58 |
|
59 |
__END__ |