X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FInflateColumn%2FFile.pm;h=7816127ce5ad672387321dccf948d096f0be7b0a;hb=219dd7c7cc546f9929991e62f072e682b2abd5dc;hp=65fb87fe04d03078812f9feb0a75d296b3089eab;hpb=23f067d16c10318f06d060a6205bcd05a84ec06e;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/InflateColumn/File.pm b/lib/DBIx/Class/InflateColumn/File.pm index 65fb87f..7816127 100644 --- a/lib/DBIx/Class/InflateColumn/File.pm +++ b/lib/DBIx/Class/InflateColumn/File.pm @@ -113,29 +113,10 @@ sub _save_file_column { } } -=head1 METHODS - -=cut - - -=head2 _file_column_callback ($file,$ret,$target) - -method made to be overridden for callback purposes. - -=cut - -sub _file_column_callback { - my ($self,$file,$ret,$target) = @_; -} - =head1 NAME DBIx::Class::InflateColumn::File - map files from the Database to the filesystem. -=head1 DESCRIPTION - -InflateColumn::File - =head1 SYNOPSIS In your L table class: @@ -167,7 +148,8 @@ In your L table class: In your L class: -FileColumn requires a hash that contains L as handle and the file's name as name. +FileColumn requires a hash that contains L as handle and the file's +name as name. my $entry = $c->model('MyAppDB::Articles')->create({ subject => 'blah', @@ -187,9 +169,26 @@ And Place the following in your TT template File Body: [% entry.body %] -The file will be stored on the filesystem for later retrieval. -Calling delete on your resultset will delete the file from the filesystem. -Retrevial of the record automatically inflates the column back to the set hash with the IO::File handle and filename. +The file will be stored on the filesystem for later retrieval. Calling delete +on your resultset will delete the file from the filesystem. Retrevial of the +record automatically inflates the column back to the set hash with the +IO::File handle and filename. + +=head1 DESCRIPTION + +InflateColumn::File + +=head1 METHODS + +=head2 _file_column_callback ($file,$ret,$target) + +method made to be overridden for callback purposes. + +=cut + +sub _file_column_callback { + my ($self,$file,$ret,$target) = @_; +} =head1 AUTHOR