23bb52a9bb23181737562169854bc271e4c23a83
[koha-ffzg.git] / Koha / UploadedFiles.pm
1 package Koha::UploadedFiles;
2
3 # Copyright Rijksmuseum 2016
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
20 use Modern::Perl;
21
22 #use Koha::Database;
23 use Koha::UploadedFile;
24
25 use parent qw(Koha::Objects);
26
27 =head1 NAME
28
29 Koha::UploadedFiles - Koha::Objects class for uploaded files
30
31 =head1 SYNOPSIS
32
33 use Koha::UploadedFiles;
34
35 =head1 DESCRIPTION
36
37 Description
38
39 =head1 METHODS
40
41 =head2 INSTANCE METHODS
42
43 =head3 delete
44
45 Delete uploaded files
46
47 =cut
48
49 sub delete {
50     my ( $self, $params ) = @_;
51     $self->SUPER::delete( $params );
52 }
53
54 =head2 CLASS METHODS
55
56 =head3 _type
57
58 Returns name of corresponding DBIC resultset
59
60 =cut
61
62 sub _type {
63     return 'UploadedFile';
64 }
65
66 =head3 object_class
67
68 Returns name of corresponding Koha object class
69
70 =cut
71
72 sub object_class {
73     return 'Koha::UploadedFile';
74 }
75
76 =head1 AUTHOR
77
78 Marcel de Rooy (Rijksmuseum)
79
80 Koha Development Team
81
82 =cut
83
84 1;