« Preferences/Schema/Result/CustomDataUniqueValues.pm
↑ Summary
Preferences/Schema/Result/PrfOwnerType.pm »
| 1 | package OpusVL::Preferences::Schema::Result::PrfDefaultValues; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use MooseX::NonMoose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | extends 'DBIx::Class::Core'; | |
| 8 | |||
| 9 | 1 | __PACKAGE__->table('prf_default_values'); | |
| 10 | |||
| 11 | 1 | __PACKAGE__->add_columns( | |
| 12 | 'id' => { | ||
| 13 | data_type => "int", | ||
| 14 | is_auto_increment => 1, | ||
| 15 | is_nullable => 0, | ||
| 16 | }, | ||
| 17 | 'value' => { | ||
| 18 | data_type => 'text', | ||
| 19 | is_nullable => 1, | ||
| 20 | }, | ||
| 21 | 'prf_owner_type_id' => { | ||
| 22 | data_type => 'integer', | ||
| 23 | is_nullable => 0, | ||
| 24 | }, | ||
| 25 | name => { | ||
| 26 | data_type => "varchar", | ||
| 27 | is_nullable => 0, | ||
| 28 | }, | ||
| 29 | display_order => | ||
| 30 | { | ||
| 31 | data_type => 'int', | ||
| 32 | is_nullable => 0, | ||
| 33 | default_value => 1, | ||
| 34 | }, | ||
| 35 | ); | ||
| 36 | |||
| 37 | 1 | __PACKAGE__->set_primary_key("id"); | |
| 38 | |||
| 39 | 1 | __PACKAGE__->belongs_to( | |
| 40 | 'field' => 'OpusVL::Preferences::Schema::Result::PrfDefault', | ||
| 41 | { | ||
| 42 | "foreign.name" => "self.name", | ||
| 43 | "foreign.prf_owner_type_id" => "self.prf_owner_type_id", | ||
| 44 | } | ||
| 45 | ); | ||
| 46 | |||
| 47 | 1 | __PACKAGE__->meta->make_immutable(); | |
| 48 | |||
| 49 | |||
| 50 | 1 | 1; | |
| 51 | |||
| 52 | __END__ | ||
| 53 | |||
| 54 | =pod | ||
| 55 | |||
| 56 | =encoding UTF-8 | ||
| 57 | |||
| 58 | =head1 NAME | ||
| 59 | |||
| 60 | OpusVL::Preferences::Schema::Result::PrfDefaultValues | ||
| 61 | |||
| 62 | =head1 VERSION | ||
| 63 | |||
| 64 | version 0.24 | ||
| 65 | |||
| 66 | =head1 DESCRIPTION | ||
| 67 | |||
| 68 | =head1 METHODS | ||
| 69 | |||
| 70 | =head1 ATTRIBUTES | ||
| 71 | |||
| 72 | =head2 field | ||
| 73 | |||
| 74 | =head2 id | ||
| 75 | |||
| 76 | =head2 value | ||
| 77 | |||
| 78 | =head2 prf_owner_type_id | ||
| 79 | |||
| 80 | =head2 name | ||
| 81 | |||
| 82 | =head1 LICENSE AND COPYRIGHT | ||
| 83 | |||
| 84 | Copyright 2012 OpusVL. | ||
| 85 | |||
| 86 | This software is licensed according to the "IP Assignment Schedule" provided with the development project. | ||
| 87 | |||
| 88 | =head1 AUTHOR | ||
| 89 | |||
| 90 | OpusVL - www.opusvl.com | ||
| 91 | |||
| 92 | =head1 COPYRIGHT AND LICENSE | ||
| 93 | |||
| 94 | This software is copyright (c) 2011 by OpusVL - www.opusvl.com. | ||
| 95 | |||
| 96 | This is free software; you can redistribute it and/or modify it under | ||
| 97 | the same terms as the Perl 5 programming language system itself. | ||
| 98 | |||
| 99 | =cut | ||