Koha/C4/Labels/Template.pm
Chris Nighswonger 4a675bcaad [5/30] A rework of Label Creator code
This rework removes code held in common with the Patron Card Creator
and move is to the new C4::Creators module.
2010-01-11 18:16:52 -05:00

43 lines
801 B
Perl

package C4::Labels::Template;
use strict;
use warnings;
use base qw(C4::Creators::Template);
use autouse 'Data::Dumper' => qw(Dumper);
BEGIN {
use version; our $VERSION = qv('1.0.0_1');
}
use constant TEMPLATE_TABLE => 'creator_templates';
__PACKAGE__ =~ m/^C4::(.+)::.+$/;
my $me = $1;
sub new {
my $self = shift;
push @_, "creator", $me;
return $self->SUPER::new(@_);
}
sub retrieve {
my $self = shift;
push @_, "table_name", TEMPLATE_TABLE, "creator", $me;
return $self->SUPER::retrieve(@_);
}
sub delete {
my $self = shift;
push @_, "table_name", TEMPLATE_TABLE, "creator", $me;
return $self->SUPER::delete(@_);
}
sub save {
my $self = shift;
push @_, "table_name", TEMPLATE_TABLE, "creator", $me;
return $self->SUPER::save(@_);
}
1;