[system] / trunk / webwork-modperl / lib / WeBWorK / DB / Record.pm Repository:
ViewVC logotype

Diff of /trunk/webwork-modperl/lib/WeBWorK/DB/Record.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 922 Revision 923
26 26
27 bless $self, $class; 27 bless $self, $class;
28 return $self; 28 return $self;
29} 29}
30 30
31sub can($$) {
32 my ($self, $function) = @_;
33 return grep { $_ eq $function } $self->FIELDS();
34}
35
31sub AUTOLOAD($;@) { 36sub AUTOLOAD($;@) {
32 my ($self, @args) = @_; 37 my ($self, @args) = @_;
33 our $AUTOLOAD; 38 our $AUTOLOAD;
34 my ($package, $function) = $AUTOLOAD =~ m/^(.*)::(.*)$/; 39 my ($package, $function) = $AUTOLOAD =~ m/^(.*)::(.*)$/;
35 return if $function eq "DESTROY"; 40 return if $function eq "DESTROY";

Legend:
Removed from v.922  
changed lines
  Added in v.923

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9