root/branches/release-33/lib/MT/ObjectAsset.pm @ 1731

Revision 1731, 0.9 kB (checked in by bchoate, 20 months ago)

Adding embedded column to MT::ObjectAsset. BugId:71500. Thanks, Tim!

  • 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::ObjectAsset;
8
9use strict;
10use MT::Blog;
11use base qw( MT::Object );
12
13__PACKAGE__->install_properties({
14    column_defs => {
15        id => 'integer not null auto_increment',
16        blog_id => 'integer',
17        object_id => 'integer not null',
18        object_ds => 'string(50) not null',
19        asset_id => 'integer not null',
20        embedded => 'boolean',
21    },
22    indexes => {
23        blog_obj => {
24            columns => ['blog_id', 'object_ds', 'object_id'],
25        },
26        asset_id => 1,
27    },
28    defaults => {
29        embedded => 0,
30    },
31    child_of => 'MT::Blog',
32    datasource => 'objectasset',
33    primary_key => 'id',
34    cacheable => 0,
35});
36
37sub class_label {
38    MT->translate("Asset Placement");
39}
40
411;
Note: See TracBrowser for help on using the browser.