allow fieldtype to be configure to set "type" in the fields
[bse.git] / site / cgi-bin / modules / BSE / TB / MetaEntry.pm
CommitLineData
f5b7b326 1package BSE::TB::MetaEntry;
6430ee52
TC
2use strict;
3use base 'Squirrel::Row';
4
f5b7b326 5our $VERSION = "1.001";
cb7fd78d 6
6430ee52
TC
7sub table {
8 "bse_article_file_meta";
9}
10
11sub columns {
f5b7b326 12 qw/id file_id name content_type value appdata owner_type/;
6430ee52
TC
13}
14
15sub defaults {
16 content_type => "text/plain",
c840f7f9 17 appdata => 1,
6430ee52
TC
18}
19
36e373a9
TC
20sub is_text {
21 $_[0]->content_type eq "text/plain"
22}
23
6430ee52 241;