Projekt

Allgemein

Profil

Herunterladen (609 Bytes) Statistiken
| Zweig: | Markierung: | Revision:
82515b2d Sven Schöling
package SL::DB::Printer;

use strict;

use SL::DB::MetaSetup::Printer;
8b34d295 Moritz Bunkus
use SL::DB::Manager::Printer;
use SL::DB::Helper::Util;
82515b2d Sven Schöling
2d7e4203 Sven Schöling
__PACKAGE__->meta->initialize;

f6a762c9 Sven Schöling
sub description {
goto &printer_description;
}

8b34d295 Moritz Bunkus
sub validate {
my ($self) = @_;

my @errors;
push @errors, $::locale->text('The description is missing.') if !$self->printer_description;
push @errors, $::locale->text('The command is missing.') if !$self->printer_command;
push @errors, $::locale->text('The description is not unique.') if !SL::DB::Helper::Util::is_unique($self, 'printer_description');

return @errors;
}

82515b2d Sven Schöling
1;