Changeset 6608
- Timestamp:
- Mar 16, 2006, 11:57:29 AM (20 years ago)
- Location:
- trunk/DataStore/lib/DataStore
- Files:
-
- 4 edited
-
File.pm (modified) (3 diffs)
-
FileSet.pm (modified) (3 diffs)
-
Product.pm (modified) (3 diffs)
-
Record.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/lib/DataStore/File.pm
r6603 r6608 1 1 # Copyright (C) 2006 Joshua Hoblitt 2 2 # 3 # $Id: File.pm,v 1. 7 2006-03-16 21:44:58jhoblitt Exp $3 # $Id: File.pm,v 1.8 2006-03-16 21:57:29 jhoblitt Exp $ 4 4 5 5 package DataStore::File; … … 112 112 my $class = shift; 113 113 114 # validates uri, ignoresother params114 # validates uri, doesn't check other params 115 115 my $self = $class->SUPER::new(@_); 116 116 117 my %p =validate(@_,117 validate(@_, 118 118 { 119 119 uri => { … … 130 130 }, 131 131 ); 132 133 $self->{fileid} = $p{fileid};134 $self->{bytes} = $p{bytes};135 $self->{md5sum} = $p{md5sum};136 $self->{type} = $p{type};137 132 138 133 return $self; -
trunk/DataStore/lib/DataStore/FileSet.pm
r6603 r6608 1 1 # Copyright (C) 2006 Joshua Hoblitt 2 2 # 3 # $Id: FileSet.pm,v 1. 5 2006-03-16 21:44:58jhoblitt Exp $3 # $Id: FileSet.pm,v 1.6 2006-03-16 21:57:29 jhoblitt Exp $ 4 4 5 5 package DataStore::FileSet; … … 104 104 my $class = shift; 105 105 106 # validates uri, ignoresother params106 # validates uri, doesn't check other params 107 107 my $self = $class->SUPER::new(@_); 108 108 109 my %p =validate(@_,109 validate(@_, 110 110 { 111 111 uri => { … … 121 121 }, 122 122 ); 123 124 $self->{fileset} = $p{fileset};125 $self->{datetime} = $p{datetime};126 $self->{type} = $p{type};127 123 128 124 return $self; -
trunk/DataStore/lib/DataStore/Product.pm
r6603 r6608 1 1 # Copyright (C) 2006 Joshua Hoblitt 2 2 # 3 # $Id: Product.pm,v 1. 5 2006-03-16 21:44:58jhoblitt Exp $3 # $Id: Product.pm,v 1.6 2006-03-16 21:57:29 jhoblitt Exp $ 4 4 5 5 package DataStore::Product; … … 95 95 my $class = shift; 96 96 97 # validates uri, ignoresother params97 # validates uri, doesn't check other params 98 98 my $self = $class->SUPER::new(@_); 99 99 100 my %p =validate(@_,100 validate(@_, 101 101 { 102 102 uri => { … … 116 116 }, 117 117 ); 118 119 $self->{last_fileset} = $p{last_fileset};120 118 121 119 return $self; -
trunk/DataStore/lib/DataStore/Record.pm
r6603 r6608 1 1 # Copyright (C) 2006 Joshua Hoblitt 2 2 # 3 # $Id: Record.pm,v 1. 5 2006-03-16 21:44:58jhoblitt Exp $3 # $Id: Record.pm,v 1.6 2006-03-16 21:57:29 jhoblitt Exp $ 4 4 5 5 package DataStore::Record; … … 69 69 ); 70 70 71 my $self = bless { uri => $p{uri} }, ref $class || $class;71 my $self = bless \%p, ref $class || $class; 72 72 73 73 return $self;
Note:
See TracChangeset
for help on using the changeset viewer.
