1 package PluginManager::Installed;
5 use base qw( MT::Object );
6 @PluginManager::Installed::ISA = qw( MT::Object );
7 __PACKAGE__->install_properties({
9 'id' => 'integer not null auto_increment',
10 'signature' => 'string(255) not null',
11 'version' => 'string(255) not null',
12 'files' => 'text not null',
13 'control' => 'text not null',
14 'script' => 'blob not null',
21 datasource => 'pm_installed',
26 sub make_control_locale {
31 my $yaml = YAML::Tiny->read_string($self->control);
33 $yaml->[0]{$locale} || $yaml->[0]{'en-us'};