| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Catalyst::Helper::Model::Gedcom; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 1 |  |  | 1 |  | 1796 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 46 |  | 
| 4 | 1 |  |  | 1 |  | 6 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 340 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | our $VERSION = '0.05'; | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | =head1 NAME | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | Catalyst::Helper::Model::Gedcom - Helper for Gedcom models | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 13 |  |  |  |  |  |  |  | 
| 14 |  |  |  |  |  |  | script/myapp_create.pl model Gedcom Gedcom myfamily.ged | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | Helper for the C Gedcom model. | 
| 19 |  |  |  |  |  |  |  | 
| 20 |  |  |  |  |  |  | =head1 METHODS | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head2 mk_compclass | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  | Makes the Gedcom model class. | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | =cut | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | sub mk_compclass { | 
| 29 | 0 |  |  | 0 | 1 |  | my ( $self, $helper, $filename ) = @_; | 
| 30 |  |  |  |  |  |  |  | 
| 31 | 0 | 0 |  |  |  |  | die( 'No filename specified' ) unless $filename; | 
| 32 |  |  |  |  |  |  |  | 
| 33 | 0 |  |  |  |  |  | $helper->{ filename } = $filename; | 
| 34 | 0 |  |  |  |  |  | $helper->render_file( 'modelclass', $helper->{ file } ); | 
| 35 |  |  |  |  |  |  |  | 
| 36 | 0 |  |  |  |  |  | return 1; | 
| 37 |  |  |  |  |  |  | } | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | =head2 mk_comptest | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | Makes tests for the Gedcom model. | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  | =cut | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | sub mk_comptest { | 
| 46 | 0 |  |  | 0 | 1 |  | my ( $self, $helper ) = @_; | 
| 47 |  |  |  |  |  |  |  | 
| 48 | 0 |  |  |  |  |  | $helper->render_file( 'modeltest', $helper->{ test } ); | 
| 49 |  |  |  |  |  |  | } | 
| 50 |  |  |  |  |  |  |  | 
| 51 |  |  |  |  |  |  | =head1 SEE ALSO | 
| 52 |  |  |  |  |  |  |  | 
| 53 |  |  |  |  |  |  | L, L, L | 
| 54 |  |  |  |  |  |  |  | 
| 55 |  |  |  |  |  |  | =head1 AUTHOR | 
| 56 |  |  |  |  |  |  |  | 
| 57 |  |  |  |  |  |  | Brian Cassidy Ebricas@cpan.orgE | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | =head1 COPYRIGHT AND LICENSE | 
| 60 |  |  |  |  |  |  |  | 
| 61 |  |  |  |  |  |  | Copyright 2005-2009 by Brian Cassidy | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  | This library is free software; you can redistribute it and/or modify | 
| 64 |  |  |  |  |  |  | it under the same terms as Perl itself. | 
| 65 |  |  |  |  |  |  |  | 
| 66 |  |  |  |  |  |  | =cut | 
| 67 |  |  |  |  |  |  |  | 
| 68 |  |  |  |  |  |  | 1; | 
| 69 |  |  |  |  |  |  |  | 
| 70 |  |  |  |  |  |  | __DATA__ |