root/branches/release-31/lib/MT/TheSchwartz/Error.pm @ 1488

Revision 1488, 0.9 kB (checked in by auno, 21 months ago)

Added cacheable property for the object using cache or not.

  • Property svn:keywords set to Id Revision
Line 
1# Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd.
2# This program is distributed under the terms of the
3# GNU General Public License, version 2.
4#
5# $Id$
6
7package MT::TheSchwartz::Error;
8
9use strict;
10use base qw( MT::Object );
11
12__PACKAGE__->install_properties({
13    column_defs => {
14        jobid => 'integer not null', # bigint unsigned not null
15        funcid => 'integer not null', # int unsigned not null default 0
16        message => 'string(255) not null', # varchar(255) not null
17        error_time => 'integer not null', # integer unsigned not null
18    },
19    datasource  => 'ts_error',
20    indexes => {
21        error_time => 1,
22        jobid => 1,
23        funcid => 1,
24    },
25    defaults => {
26        funcid => 0,
27    },
28    cacheable => 0,
29    # not captured:
30    # index (funcid, error_time)
31});
32
33sub class_label {
34    MT->translate("Job Error");
35}
36
371;
Note: See TracBrowser for help on using the browser.