1 package Koha
::Illrequests
;
3 # Copyright PTFS Europe 2016
5 # This file is part of Koha.
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
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.
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.
24 use Koha
::Illrequest
::Config
;
26 use base
qw(Koha::Objects);
30 Koha::Illrequests - Koha Illrequests Object class
49 return 'Koha::Illrequest';
52 ##### To be implemented Facade
56 my $illRequests = Koha::Illrequests->new();
58 Create an ILLREQUESTS object, a singleton through which we can interact with
59 ILLREQUEST objects stored in the database or search for ILL candidates at API
65 my ( $class, $attributes ) = @_;
67 my $self = $class->SUPER::new
($class, $attributes);
69 my $config = Koha
::Illrequest
::Config
->new; # <- Necessary
70 $self->{_config
} = $config; # <- Necessary
75 =head3 search_incomplete
77 my $requests = $illRequests->search_incomplete;
79 A specialised version of `search`, returning all requests currently
80 not considered completed.
84 sub search_incomplete
{
88 -and => { '!=', 'COMP' }, { '!=', 'GENCOMP' }
95 Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com>