File Coverage

blib/lib/WE/DB/HWContent.pm
Criterion Covered Total %
statement 6 13 46.1
branch n/a
condition n/a
subroutine 2 5 40.0
pod 0 3 0.0
total 8 21 38.1


line stmt bran cond sub pod time code
1             # -*- perl -*-
2              
3             #
4             # $Id: HWContent.pm,v 1.3 2003/01/16 14:29:10 eserte Exp $
5             # Author: Slaven Rezic
6             #
7             # Copyright (C) 2001 Online Office Berlin. All rights reserved.
8             # Copyright (C) 2002 Slaven Rezic.
9             # This is free software; you can redistribute it and/or modify it under the
10             # terms of the GNU General Public License, see the file COPYING.
11              
12             #
13             # Mail: slaven@rezic.de
14             # WWW: http://we-framework.sourceforge.net
15             #
16              
17             package WE::DB::HWContent;
18              
19 1     1   1794 use strict;
  1         2  
  1         29  
20 1     1   6 use vars qw($VERSION);
  1         2  
  1         172  
21             $VERSION = sprintf("%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/);
22              
23             sub new {
24 0     0 0   my($class, $root) = @_;
25 0           my $self = {Root => $root};
26 0           bless $self, $class;
27             }
28              
29             sub store {
30 0     0 0   my($self, $obj, $content) = @_;
31 0           die "NYI";
32             }
33              
34             sub get_content {
35 0     0 0   my($self, $obj) = @_;
36             # XXX diff between HTML and text
37 0           $self->{Root}->ObjDB->HW->get_text($obj->Id);
38             }
39              
40             1;
41              
42             __END__