Bug 17501: Introduce Koha::Object[s] classes for UploadedFile(s)
[koha.git] / Koha / UploadedFile.pm
1 package Koha::UploadedFile;
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
24 use parent qw(Koha::Object);
25
26 =head1 NAME
27
28 Koha::UploadedFile - Koha::Object class for single uploaded file
29
30 =head1 SYNOPSIS
31
32 use Koha::UploadedFile;
33
34 =head1 DESCRIPTION
35
36 Description
37
38 =head1 METHODS
39
40 =head2 INSTANCE METHODS
41
42 =head3 delete
43
44 Delete uploaded file (to be extended)
45
46 =cut
47
48 sub delete {
49     my ( $self, $params ) = @_;
50     $self->SUPER::delete( $params );
51 }
52
53 =head2 CLASS METHODS
54
55 =head3 _type
56
57 Returns name of corresponding DBIC resultset
58
59 =cut
60
61 sub _type {
62     return 'UploadedFile';
63 }
64
65 =head1 AUTHOR
66
67 Marcel de Rooy (Rijksmuseum)
68
69 Koha Development Team
70
71 =cut
72
73 1;