File Coverage

blib/lib/GBPVR/CDBI/VideoArchive/ArchiveTable.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package GBPVR::CDBI::VideoArchive::ArchiveTable;
2              
3 2     2   30959 use warnings;
  2         4  
  2         76  
4 2     2   11 use strict;
  2         4  
  2         146  
5              
6             our $VERSION = '0.02';
7              
8 2     2   14 use base 'GBPVR::CDBI::VideoArchive';
  2         5  
  2         813  
9             use GBPVR::CDBI::Programme;
10              
11             __PACKAGE__->table('archivetable');
12             __PACKAGE__->columns(Primary => qw/VideoFile/ );
13             __PACKAGE__->columns(All => qw/
14             Title Description StartTime RecordDate ChannelName Viewed
15             UniqueID Genre Subtitle Runtime
16             Actors Rating Director PosterImage
17             InternetFetchCompleted YearOfRelease Tagline
18             Writer ViewerRating Votes / );
19              
20             sub programme {
21             my $obj = shift;
22             my ($prog) = GBPVR::CDBI::Programme->search( unique_identifier => $obj->UniqueID );
23             return $prog;
24             }
25              
26             1;
27             __END__