[system] / trunk / webwork2 / lib / WeBWorK / DB / Driver / Null.pm Repository:
ViewVC logotype

Diff of /trunk/webwork2/lib/WeBWorK/DB/Driver/Null.pm

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

Revision 874 Revision 1167
2# WeBWorK mod_perl (c) 2000-2002 WeBWorK Project 2# WeBWorK mod_perl (c) 2000-2002 WeBWorK Project
3# $Id$ 3# $Id$
4################################################################################ 4################################################################################
5 5
6package WeBWorK::DB::Driver::Null; 6package WeBWorK::DB::Driver::Null;
7use base qw(WeBWorK::DB::Driver);
7 8
8=head1 NAME 9=head1 NAME
9 10
10WeBWorK::DB::Driver::Null - a dummy driver. 11WeBWorK::DB::Driver::Null - a dummy driver.
11 12
12=cut 13=cut
13 14
14use strict; 15use strict;
15use warnings; 16use warnings;
16use GDBM_File;
17use Carp;
18 17
19use constant STYLE => "dummy"; 18use constant STYLE => "null";
20
21################################################################################
22# static functions
23################################################################################
24
25sub style() {
26 return STYLE;
27}
28
29################################################################################
30# constructor
31################################################################################
32
33sub new($$$) {
34 my ($proto, $source, $params) = @_;
35 my $class = ref($proto) || $proto;
36 my $self = {
37 hash => {},
38 source => $source,
39 params => $params,
40 };
41 bless $self, $class;
42 return $self;
43}
44 19
45################################################################################ 20################################################################################
46# common methods 21# common methods
47################################################################################ 22################################################################################
48 23

Legend:
Removed from v.874  
changed lines
  Added in v.1167

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9