WE/DB/HWContent.pm

filter: Statementstmt 53.3% 8 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 0.0% 0 / 3 totaltotal 43.4% 10 / 23 CC 1 SCAR 4.7
CC
1
Cov
53%
new
2.0
store
2.0
get_content
2.0
CRAP 1.6
« WE_Content/IxHash.pm ↑ Summary WE_Frontend/Plugin/Null.pm »
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 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 $VERSION = sprintf("%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/);
22  
23 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
24 0 my($class, $root) = @_;
25 0 my $self = {Root => $root};
26 0 bless $self, $class;
27 }
28  
29 0 ▶sub store {
Subroutine store: not called CC=1 SCAR=6.9
Pod undocumented
30 0 my($self, $obj, $content) = @_;
31 0 die "NYI";
32 }
33  
34 0 ▶sub get_content {
Subroutine get_content: not called CC=1 SCAR=6.9
Pod undocumented
35 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 1;
41  
42 __END__
« WE_Content/IxHash.pm ↑ Summary WE_Frontend/Plugin/Null.pm »