Lines 1-19
Link Here
|
1 |
package Koha::Acquisition::Basket; |
1 |
package Koha::Acquisition::Basket; |
2 |
|
2 |
|
|
|
3 |
# Copyright 2017 Aleisha Amohia <aleisha@catalyst.net.nz> |
4 |
# |
5 |
# This file is part of Koha. |
6 |
# |
7 |
# Koha is free software; you can redistribute it and/or modify it under the |
8 |
# terms of the GNU General Public License as published by the Free Software |
9 |
# Foundation; either version 3 of the License, or (at your option) any later |
10 |
# version. |
11 |
# |
12 |
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY |
13 |
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
14 |
# A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
15 |
# |
16 |
# You should have received a copy of the GNU General Public License along |
17 |
# with Koha; if not, write to the Free Software Foundation, Inc., |
18 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
19 |
|
3 |
use Modern::Perl; |
20 |
use Modern::Perl; |
4 |
|
21 |
|
5 |
use Koha::Database; |
22 |
use Koha::Database; |
6 |
|
23 |
|
7 |
use base qw( Koha::Object ); |
24 |
use base qw( Koha::Object ); |
8 |
|
25 |
|
|
|
26 |
=head1 NAME |
27 |
|
28 |
Koha::Acquisition::Basket - Koha Basket Object class |
29 |
|
30 |
=head1 API |
31 |
|
32 |
=head2 Class Methods |
33 |
|
34 |
=cut |
35 |
|
36 |
=head3 bookseller |
37 |
|
38 |
Returns the vendor |
39 |
|
40 |
=cut |
41 |
|
9 |
sub bookseller { |
42 |
sub bookseller { |
10 |
my ($self) = @_; |
43 |
my ($self) = @_; |
11 |
my $bookseller_rs = $self->_result->booksellerid; |
44 |
my $bookseller_rs = $self->_result->booksellerid; |
12 |
return Koha::Acquisition::Bookseller->_new_from_dbic( $bookseller_rs ); |
45 |
return Koha::Acquisition::Bookseller->_new_from_dbic( $bookseller_rs ); |
13 |
} |
46 |
} |
14 |
|
47 |
|
|
|
48 |
=head3 type |
49 |
|
50 |
=cut |
51 |
|
15 |
sub _type { |
52 |
sub _type { |
16 |
return 'Aqbasket'; |
53 |
return 'Aqbasket'; |
17 |
} |
54 |
} |
18 |
|
55 |
|
|
|
56 |
=head1 AUTHOR |
57 |
|
58 |
Aleisha Amohia <aleisha@catalyst.net.nz> |
59 |
Catalyst IT |
60 |
|
61 |
=cut |
62 |
|
19 |
1; |
63 |
1; |