Bug 17501: Introduce Koha::Object[s] classes for UploadedFile(s)
[koha.git] / Koha / UploadedFiles.pm
blob23bb52a9bb23181737562169854bc271e4c23a83
1 package Koha::UploadedFiles;
3 # Copyright Rijksmuseum 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
10 # version.
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.
20 use Modern::Perl;
22 #use Koha::Database;
23 use Koha::UploadedFile;
25 use parent qw(Koha::Objects);
27 =head1 NAME
29 Koha::UploadedFiles - Koha::Objects class for uploaded files
31 =head1 SYNOPSIS
33 use Koha::UploadedFiles;
35 =head1 DESCRIPTION
37 Description
39 =head1 METHODS
41 =head2 INSTANCE METHODS
43 =head3 delete
45 Delete uploaded files
47 =cut
49 sub delete {
50 my ( $self, $params ) = @_;
51 $self->SUPER::delete( $params );
54 =head2 CLASS METHODS
56 =head3 _type
58 Returns name of corresponding DBIC resultset
60 =cut
62 sub _type {
63 return 'UploadedFile';
66 =head3 object_class
68 Returns name of corresponding Koha object class
70 =cut
72 sub object_class {
73 return 'Koha::UploadedFile';
76 =head1 AUTHOR
78 Marcel de Rooy (Rijksmuseum)
80 Koha Development Team
82 =cut