1package Netdot::Model::SitePicture; 2 3use base 'Netdot::Model::Picture'; 4use warnings; 5use strict; 6 7=head1 NAME 8 9 Netdot::Model::Picture 10 11=head1 CLASS METHODS 12=cut 13 14=head2 insert 15 16=cut 17 18sub insert { 19 my ($self, $argv) = @_; 20 defined $argv->{site} || 21 $self->throw_fatal("Missing required arguments: site"); 22 23 return $self->SUPER::insert($argv); 24} 25 26=head1 AUTHOR 27 28Carlos Vicente, C<< <cvicente at ns.uoregon.edu> >> 29 30=head1 COPYRIGHT & LICENSE 31 32Copyright 2012 University of Oregon, all rights reserved. 33 34This program is free software; you can redistribute it and/or modify 35it under the terms of the GNU General Public License as published by 36the Free Software Foundation; either version 2 of the License, or 37(at your option) any later version. 38 39This program is distributed in the hope that it will be useful, but 40WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY 41or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 42License for more details. 43 44You should have received a copy of the GNU General Public License 45along with this program; if not, write to the Free Software Foundation, 46Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 47 48=cut 49 501; 51