1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
package HaCi::Tables::templateEntry;
use base 'DBIEasy';
sub TABLE { #Table Name
'templateEntry'
}
sub SETUPTABLE { # Create Table unless it doesn't exists?
1
}
sub CREATETABLE { # Table Create Definition
q{
`ID` int(11) NOT NULL auto_increment,
`tmplID` int(11) NOT NULL default '0',
`type` integer NOT NULL default '0',
`position` integer NOT NULL default '0',
`description` varchar(255) NOT NULL default '',
`size` integer NOT NULL default '1',
`entries` varchar(255) NOT NULL default '',
`rows` integer NOT NULL default '1',
`cols` integer NOT NULL default '1',
PRIMARY KEY (`ID`)
}
}
sub _log {
my $self = shift;
my @msg = @_;
DBIEasy::_log($self, @msg);
}
sub _carp {
my $self = shift;
my ($message, %info) = @_;
DBIEasy::_carp($self, $message, %info);
}
sub _croak {
my $self = shift;
my ($message, %info) = @_;
DBIEasy::_croak($self, $message, %info);
}
1;
|