WE/Obj/DocObj.pm

filter: Statementstmt 84.6% 11 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 100% 2 / 2 totaltotal 78.9% 15 / 19 CC 1 SCAR 4.1
CC
1
Cov
85%
instantiable
2.0
insertable_types
2.0
BEGIN
1.0
CRAP 1.5
« WE_Frontend/Plugin/Null.pm ↑ Summary WE/Obj/FolderObj.pm »
1 # -*- perl -*-
2  
3 #
4 # $Id: DocObj.pm,v 1.4 2004/12/21 23:18:04 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::Obj::DocObj;
18  
19 13 require WE::Obj;
20 13 @ISA = qw(WE::Obj);
21  
22 =head1 NAME
23  
24 WE::Obj::DocObj - base class for objects holding content data
25  
26 =head1 SYNOPSIS
27  
28 This is an abstract class.
29  
30 =head1 DESCRIPTION
31  
32 This is a base class for all objects containing data.
33  
34 DocObj instances can hold the additional attribute B<ContentType> with
35 the MIME type of the document (e.g. "text/html"). Undefined documents
36 will hold "application/octet-stream".
37  
38 =cut
39  
40 13 __PACKAGE__->mk_accessors(qw(ContentType));
41  
42 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
43 13 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
44 13 $VERSION = sprintf("%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/);
45  
46 0 ▶sub instantiable { 0 }
Subroutine instantiable: not called CC=1 SCAR=6.9
Pod documented
47  
48 # document-like objects cannot hold other objects
49 0 ▶sub insertable_types { [] }
Subroutine insertable_types: not called CC=1 SCAR=6.9
Pod documented
50  
51 13 1;
52  
53 __END__
« WE_Frontend/Plugin/Null.pm ↑ Summary WE/Obj/FolderObj.pm »